Hi @AlexanderWillner
thank you for providing the MailboxCleanup source!
Some small issues that may be good for a futur version
with Ubuntu Linux I had to use
self.imap.sock.setsockopt(socket.IPPROTO_TCP, TCP_KEEPALIVE, 1)
instead of 3 as last parameter and sometime I get error messages like
File "/src/mailbox_message.py", line 346, in convert_filename
filename = filename.replace("\r", "").replace("\n", "")
TypeError: a bytes-like object is required, not 'str'
File "/src/mailbox_imap.py", line 328, in get_msg
result, len(body) / 1024)
TypeError: object of type 'int' has no len()
would be great if the run then not aborts but only the mail is ignored.
With --all sometime not all subfolders are recursively processed, at least some mails are ignored, but I'd have to check this more closely.
Thank you again and best wishes
Christof
Hi @AlexanderWillner
thank you for providing the MailboxCleanup source!
Some small issues that may be good for a futur version
with Ubuntu Linux I had to use
self.imap.sock.setsockopt(socket.IPPROTO_TCP, TCP_KEEPALIVE, 1)instead of 3 as last parameter and sometime I get error messages like
would be great if the run then not aborts but only the mail is ignored.
With
--allsometime not all subfolders are recursively processed, at least some mails are ignored, but I'd have to check this more closely.Thank you again and best wishes
Christof