|
GNU Mailutils |
General-Purpose Mail Package |
Official GNU Software |
When given the --preserve option, movemail
retains already downloaded messages in the source inbox. This means
that called second time it will download both recently delivered
messages and the ones it has already downloaded in the previous run.
This makes little sense and a special option is provided to avoid
this.
The --sync=mode defines synchronization mode,
i.e. the algorithm that helps movemail decide whether a
particular message has already been downloaded or not. If it has,
movemail will skip that message.
The mode argument can be one of the following:
allAssume each message is new. This is what movemail does when
called without the --sync option.
uidnextimapUse the combination of uidvalidity and uidnext parameters of the source mailbox. This mode is mostly useful when the source is a remote mailbox accessed via IMAP4 protocol.
When using this method, movemail stores additional
meta-information about each ‘source-destination’ pair of
mailboxes in directory .movemail.sync, in the user’s home
directory. The location of that directory can be changed using the
--sync-dir option.
Example usage:
movemail --preserve --sync=uidnext imap://server mbox
uidlUse uidl message identifiers. This method is useful if the
source is a remote mailbox accessed via POP3 protocol.
This document was generated on December 11, 2025 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.