Skip to content

feature request #2

@ckluss

Description

@ckluss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions