Re: POP3 UTF-8 support
Charles Cazabon <[email protected]> Thu, 5 Aug 2021 14:32:22 -0600
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
Kopornoky Tamás <[email protected]> wrote: > > I'm using getmail to download mail via pop3 to an ubuntu box. I usually get > mail daemon errors like this: > ---------- > This E-mail message was determined to be Unicode-formatted > but your E-mail reader does not support Unicode E-mail. Just for the heck of it, try the attached patch against your local copy of getmail. It just onconditionally sends that UTF8 command from RFC6856 after logging in. It'll probably cause getmail to throw an exception later - I'm guessing a UnicodeDecodeError, probably - but it's worth a shot. Please report what happens. If it looks like a straightforward fix I might add this as a proper feature. Charles -- ----------------------------------------------------------------------- Charles Cazabon GPL'ed software available at: http://pyropus.ca/software/ ----------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
rfc6856.patch
(text/x-diff, 602 B)
Index: getmailcore/_retrieverbases.py
===================================================================
--- getmailcore/_retrieverbases.py (revision 1059)
+++ getmailcore/_retrieverbases.py (working copy)
@@ -1188,6 +1188,10 @@
else:
self.conn.user(self.conf['username'])
self.conn.pass_(self.conf['password'])
+
+ # Hack - see if rfc6856 works
+ self.conn._shortcmd('UTF8')
+
self._getmsglist()
self.log.debug('msgids: %s'
% sorted(self.msgnum_by_msgid.keys()) + os.linesep)