# Python Example Script to echo\_and\_quit.py listens to DeltaChat initiated Chats only

**URL:** <https://forum.delta.chat/t/python-example-script-to-echo-and-quit-py-listens-to-deltachat-initiated-chats-only/1348>\
**Category:** Mutual Help\
**Created:** [December 31, 2020, 12:30am UTC](https://forum.delta.chat/t/python-example-script-to-echo-and-quit-py-listens-to-deltachat-initiated-chats-only/1348 "2020-12-31T00:30:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![servas089](https://forum.delta.chat/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@servas089](https://forum.delta.chat/u/servas089)\
**Post date:** [December 31, 2020, 12:30am UTC](https://forum.delta.chat/t/python-example-script-to-echo-and-quit-py-listens-to-deltachat-initiated-chats-only/1348/1 "2020-12-31T00:30:33Z")

</div>

Hi there,

maybe someone of you are using DeltaChat and python. I have tried to read through the src python codings but I could not manage to find the settings or coding where my issue is generated.  
Thanks in advance. Happy new year!

**Delta Chat version**

1.4 and pyhton binding, running on a raspberry pi 4

**Expected behavior**

Nut sure, if feature or bug…  
When a DeltaChat registered E-Mail account receives for the first time an E-Mail from a non DeltaChat contact or non contact, this will be displayed in the Android App as a New Conversation and can be accepted.

When running the python example codings (echo\_and\_quit.py) these E-Mails are not getting fetched by the listener (?) and are therefore not taken into account for further coding usage.

Expected, due to the system settings “all folders are taken into account for listening from all known and unknown contacts” also E-Mails initated by non DeltaChat Users should be processed by Python Coding

**Actual behavior**

When running the python example codings (echo\_and\_quit.py) incoming E-Mails from non DeltaChat users are not getting fetched by the listener (?) and are therefore not taken into account for further coding usage.

**Steps to reproduce the problem**

1. … Run echo\_and\_quit.py with yout email settings
2. … Send an text email from any email client to your DeltaChat Account
3. … Check python log, no email was fetched during the process.

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [December 31, 2020, 5:46pm UTC](https://forum.delta.chat/t/python-example-script-to-echo-and-quit-py-listens-to-deltachat-initiated-chats-only/1348/2 "2020-12-31T17:46:44Z")

</div>

you need to set the config option `show_emails` to 2 (DC\_SHOW\_EMAILS\_ALL) [https://c.delta.chat/classdc\_\_context\_\_t.html#aff3b894f6cfca46cab5248fdffdf083d](https://c.delta.chat/classdc __context__ t.html#aff3b894f6cfca46cab5248fdffdf083d)

```auto
account.set_config('show_emails', 2)

```

[https://py.delta.chat/api.html#account](https://py.delta.chat/api.html#account)

---

<div class="post-metadata">

**Author:** ![servas089](https://forum.delta.chat/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@servas089](https://forum.delta.chat/u/servas089)\
**Post date:** [January 1, 2021, 6:47pm UTC](https://forum.delta.chat/t/python-example-script-to-echo-and-quit-py-listens-to-deltachat-initiated-chats-only/1348/3 "2021-01-01T18:47:58Z")

</div>

Thanks a lot Simon… Got it

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:03pm UTC](https://forum.delta.chat/t/python-example-script-to-echo-and-quit-py-listens-to-deltachat-initiated-chats-only/1348/4 "2026-10-06T15:03:11Z")

</div>


