From 5402d00be02978d0c452fbac12f82308fc8d74fe Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Wed, 30 Aug 2023 13:17:50 +0200 Subject: [PATCH] Maybe fix fetchmail when used with pop3 --- optional/fetchmail/fetchmail.py | 2 +- towncrier/newsfragments/2928.bugfix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 towncrier/newsfragments/2928.bugfix diff --git a/optional/fetchmail/fetchmail.py b/optional/fetchmail/fetchmail.py index 35b2ee22..8fad8926 100755 --- a/optional/fetchmail/fetchmail.py +++ b/optional/fetchmail/fetchmail.py @@ -64,7 +64,7 @@ def run(debug): username=escape_rc_string(fetch["username"]), password=escape_rc_string(fetch["password"]), options=options, - folders=folders, + folders='' if fetch['protocol'].lower().startswith('pop') else folders, lmtp='' if fetch['scan'] else 'lmtp', ) if debug: diff --git a/towncrier/newsfragments/2928.bugfix b/towncrier/newsfragments/2928.bugfix new file mode 100644 index 00000000..23bf644b --- /dev/null +++ b/towncrier/newsfragments/2928.bugfix @@ -0,0 +1 @@ +fix fetchmail when used with POP3: disregard "folders"