Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add STARTTLS modes, source-mailbox flag, IMAP IDLE for destination, progress messages, and more error handling #13

Merged
merged 3 commits into from
Sep 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

In our company we often have to copy mailboxes from one to another server. For this we used
[IMAPCopy](http://www.ardiehl.de/imapcopy/) as so far. Due to compatibility issues, first of all the missing
SSL/TLS support i wrote my own python-based version. I hope you like it!
SSL/TLS and STARTTLS support i wrote my own python-based version. I hope you like it!

## Features
- Copies folders and subfolders
- Copies mails even with flags (seen, answered, ...)
- Connecting via SSL/TLS (by default)
- Connecting via SSL/TLS (by default), or optionally use STARTTLS
- Supports incremental copy (copies only new mails/folders)
- User specific redirections (with wildcard support)
- Auto subscribe new folders (by default)
Expand Down Expand Up @@ -85,6 +85,9 @@ You could change the buffer size with `-b`/`--buffer-size` to increase the downl
If you know the source mailbox has a lot of small mails use a higher size. In the case of lager mails use a lower size
to counter timeouts. For bad internet connections you also should use a lower sized buffer.

#### Use of source-mailbox argument
As a further optimization you can target specific mailboxes you want to sync to the destination (versus the default of everything). Use `--source-mailbox <NAME>` to only sync that one mailbox. The flag can be specified multiple times to indicate multiple mailboxes to sync. The flag is NOT recursive and will only sync the contents of the folder.

## Microsoft Exchange Server IMAP bug
If your destination is an Exchange Server (EX) you'll properly get an `bad command` exception while coping some mails.
This happens because the EX analyse (and in some cases modify) new mails. There is a bug in this lookup process (since
Expand Down
Loading