savannah.gnu.org
mailutils @ Savannah: GNU mailutils version 3.20
GNU mailutils version 3.20 is available for download. New in this version:
### Movemail synchronization mode
Setting synchronization mode allows the user to keep messages in remote source mailbox, while downloading only recently received messages. The mode is defined via the **--sync** command line option or **sync** configuration statement. Allowed values are **uidnext** , **uidl** , and **all**.
When set to **uidnext** , **movemail** uses the combination of uidvalidity/uidnext values. This is useful mainly if the source mailbox is accessed via IMAP4 protocol. When using this method, **movemail** stores session metadata in files in the directory **~/.movemail.sync**. The directory location can be changed using the **--sync-dir** option or **sync-dir** configuration statement.
The **uidl** setting instructs the program to use UIDL values. This is useful if the source mailbox is accessed via the POP3 protocol.
Finally, the value **all** tells it to download all messages. This is the default behavior when no **--sync** option is given.
### Other changes in movemail
* The **--reverse** option removed. It made little sense and was never used.
* The **--max-messages** option sets the maximum number of latest messages to process.
### New Sieve test: uidnew
This test keeps track of the processed messages. It evaluates to true if the current message was not processed before. The test is implemented as an external module. To require it, use
> require "test-uidnew";
>
Sample use:
> if uidnew
> {
> fileinto "store"; keep;
> }
>
For each processed mailbox, the test keeps its state in a GDBM file **~/.uidnew.db**. The **:db** tagged argument can be used to alter this location.
### Bugfix in imap4d UID SEARCH command
The UID SEARCH command incorrectly treated message range argument as UIDs instead of as message sequence numbers.