4 Commits
Author SHA1 Message Date
Sami Samhuri c7a53d6a3b Don't silently ignore --exclude-folders when --folders is used too 2022-01-02 13:45:25 -08:00
Sami Samhuri 92cd9fb6cb Improve performance on large folders by 10x or more
IMAP allows fetching message IDs for all messages in a folder at once
and it's quite a bit faster than making individual requests. Running
this on a folder with 4441 messages takes 26s for me now compared to
over 8 minutes before this change.
2022-01-01 17:15:56 -08:00
Sami Samhuri 8a080fb076 Perform >From quoting as described by RFC 4155
https://www.rfc-editor.org/rfc/rfc4155.txt
http://qmail.org/qmail-manual-html/man5/mbox.html

> The program then copies the message, applying >From quoting
> to each line.  >From quoting ensures that the resulting
> lines are not From_ lines:  the program prepends a > to any
> From_ line, >From_ line, >>From_ line, >>>From_ line, etc.
2022-01-01 15:33:20 -08:00
Sami Samhuri 962b7adc6c Add --exclude-folders option to skip specified folders
Based on code in #36 by @C-Duv
2022-01-01 15:32:02 -08:00