History log of /dovecot/src/doveadm/dsync/dsync-brain.h
Revision Date Author Comments Expand
69a71891361b2b27ff68ed84b29278486628464a 27-Sep-2017 Aki Tuomi <aki.tuomi@dovecot.fi>

dsync: Add hashed_headers setting This makes it possible to configure them

a76faea3eb26c4cd67886fbe02c604f74d54be8c 17-May-2017 Timo Sirainen <timo.sirainen@dovecot.fi>

dsync: Try to commit transactions every dsync_commit_msgs_interval messages This was first attempted to be implemented by ec0cc8fa647794e44a1afaa448f495a713048dc4, but it was later partially reverted by 5973d496b16721af6d2c1fa90b016aacddf13554. This current commit should fix its problems.

4f7951e71128c120d8a502d6406cc603fcc8eb0b 01-Dec-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

dsync: When logging "Mailbox changed caused a desync", log also the reason. The reason is usually somewhere in the debug logs, but it's difficult to find from there.

ee8294dbc7bb549557f6ba1264d66b55fbef69b6 10-Oct-2016 Aki Tuomi <aki.tuomi@dovecot.fi>

doveadm-sync: Add end-date support

ae949831f1f668b5501b4b125e7f7b1767fb109b 11-Aug-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

doveadm sync/backup: Added -S <max size> parameter to skip too large mails.

afd6d387ea65843b59fb6051fb567719d2a5279c 08-Aug-2016 Aki Tuomi <aki.tuomi@dovecot.fi>

dsync: Add support for features Add empty_header_workaround as first feature

14b1d2a2634e75b988078baee1e8ad678de28a04 20-Oct-2015 Timo Sirainen <tss@iki.fi>

dsync: Added DSYNC_BRAIN_FLAG_NO_NOTIFY to enable MAILBOX_TRANSACTION_FLAG_NO_NOTIFY It's arguable that this should be enabled by default, but people might like to keep mail_log notifications for dsync.

1a1d00fd04bfcf8436b00b58d527e46b23523c9d 27-Aug-2015 Timo Sirainen <tss@iki.fi>

dsync: Added -D parameter to disable mailbox renaming. The renaming logic is annoyingly complex and there are some bugs left in it. With this parameter renames are never even attempted, but instead a rename would be done (slowly) with mailbox delete + create + fill. Although with imapc protocol mailbox renames are rarely detected anyway.

ce0e25f26d6e67480ee39b5ca0ad634fa60c4605 18-Mar-2015 Timo Sirainen <tss@iki.fi>

dsync: Use storage's mail_error to choose the doveadm exit code. Instead of always assuming that all errors are EX_TEMPFAIL.

2e652d2651b2800f99a17dcb3014a009fe4660d3 20-Jan-2015 Timo Sirainen <tss@iki.fi>

dsync: Added -F parameter to sync only mails with[out] specific flag.

70df8f39fb3db7c49b18c855178f8172176a037a 20-Jan-2015 Timo Sirainen <tss@iki.fi>

dsync: If same GUID already exists in storage, try to copy it instead of recreating the mail. This way most mailbox backends can reduce disk space by only doing a reference count update. This feature isn't enabled by default. A virtual "All Mails" mailbox needs to be configured using the virtual plugin. Then you need to give this mailbox as -a parameter, e.g.: doveadm sync -a "Virtual/All Mails" ... Currently this is implemented by reading through all the GUIDs in the virtual mailbox. This of course isn't very efficient for things like incremental replication. An upcoming conversation plugin will keep track of all the mails' GUIDs, so in future replication should be able to have this functionality efficiently as well.

3561c7bb472a78af74d755219cc0fc71c85ff5c2 19-Jan-2015 Timo Sirainen <tss@iki.fi>

dsync: Added -t <timestamp> parameter to save only mails newer than <timestamp> If one side has old mails that don't exist on the other side, they are ignored (not synced and not deleted).

d519a0449d0e536a32db93305516fdbd7db6773d 29-Sep-2014 Timo Sirainen <tss@iki.fi>

dsync: Added DSYNC_BRAIN_FLAG_NO_MAIL_PREFETCH to avoid opening mails unnecessarily.

0219a05495ca78d0ccc2a4d5dcfcf17aa859481f 15-Sep-2014 Timo Sirainen <tss@iki.fi>

dsync: Moved all doveadm-specific code to doveadm-dsync.c

466d1b7778d98555bfeac1482ed9ae55df544a7a 28-Apr-2014 Timo Sirainen <tss@iki.fi>

dsync: If dsync was started via doveadm-server, show the remote client's IP address in ps output.

d487aa885845c33fb358d5b3b514eece6791db0e 25-Mar-2014 Timo Sirainen <tss@iki.fi>

dsync: Support multiple -n parameters.

d0ff92b81b05166d800e04bbd2054a664305a330 22-Sep-2013 Timo Sirainen <tss@iki.fi>

dsync: Added -P parameter to do a purge for the remote storage after syncing.

36723cf206a7b64b9d972ab0719bbfaacc9316fa 26-Jun-2013 Timo Sirainen <tss@iki.fi>

dsync: Added -1 parameter to do a "one way sync" without reverting changes. This can be useful during migration when you don't want to delete any mails, but you also don't want to send changes to the old server either.

3c73d884362b72c86753939551c94f8baa5702f8 24-Jun-2013 Timo Sirainen <tss@iki.fi>

dsync: Don't try to find mailboxes from unwanted namespaces.

47255691575e06a1c95ce78ff0a1b502199de3ab 24-Jun-2013 Timo Sirainen <tss@iki.fi>

dsync: If verbose_proctitle=yes, show the current state in it.

f40c798116d0b1d735d5eeb8db3dc2022e7e064d 05-Jun-2013 Timo Sirainen <tss@iki.fi>

dsync: If unexpected changes happened during sync, log a warning and exit with code 2. This was done by v2.1 dsync, but the code got temporarily lost in v2.2.

fd32c46c360e61de2c957c3d2241eaacab7b3eec 26-May-2013 Timo Sirainen <tss@iki.fi>

dsync: Added -x parameter to exclude mailboxes from sync. Multiple -x parameters can be added. Giving \flag as parameter means that the mailbox with the given SPECIAL-USE \flag is skipped. For example: doveadm sync -x '\All' -x '\Flagged' -x '\Important' mdbox:~/mdbox

f1a5b3a0176aa370830249ce5423bbc47fe032c7 26-May-2013 Timo Sirainen <tss@iki.fi>

dsync: Small code cleanup.

2e657dc3d6f973b13379e7c448f1ab96862799b5 08-Apr-2013 Timo Sirainen <tss@iki.fi>

dsync: -U parameter never updated replicator's full_sync state.

9f99b5c3e607c41c16a6380203d401250d9e2603 25-Mar-2013 Timo Sirainen <tss@iki.fi>

doveadm sync/backup: Added -g <guid> to sync only the specified mailbox (by GUID) Similar to -m <mailbox name>.

f48fdb57185ca68e8c079e174f3e04da36646880 21-Mar-2013 Timo Sirainen <tss@iki.fi>

dsync: -m '' parameter now syncs mailbox list, but no actual mails.

4fa4166f9b7770e11bc9969f78d66841f05e5939 19-Feb-2013 Timo Sirainen <tss@iki.fi>

dsync: Renamed -a parameter to -N. It also now skips invisible namespaces.

0e03baa885b89cd42fb76fe0282f272f035638cd 16-Feb-2013 Timo Sirainen <tss@iki.fi>

dsync: -l parameter locking is now done on the server with "lower" hostname. This allows running multi-master replication on two servers without two dsyncs mixing up changes by running at the same time.

979d89c147520f2934c14c31aeb9310fd2d62a46 10-Feb-2013 Timo Sirainen <tss@iki.fi>

dsync: Automatically figure out which mailboxes can sync with message GUIDs.

887a9fbbb2ca6afd53365ba2ccae0ef8728d6948 10-Feb-2013 Timo Sirainen <tss@iki.fi>

dsync: Renamed "guid_requests" to "mail_requests" The mails aren't necessarily requested by their GUID.

707f172cd4e4c91af86ff5bd82a60a873dec6f70 15-Dec-2012 Timo Sirainen <tss@iki.fi>

dsync: Added back support for syncing only one mailbox (-m parameter)

ec66a68735096e81df73176231b49179222ad9ce 14-Dec-2012 Timo Sirainen <tss@iki.fi>

dsync: Added -a parameter to sync all namespaces, not just the default one.

5332128f69ad688cc024897c2a92f6b37ef8d05c 14-Dec-2012 Timo Sirainen <tss@iki.fi>

dsync: Added debugging and rawlogging support.

c307328f59c963eba21091ecd36c9435d42b47d8 20-Oct-2012 Timo Sirainen <tss@iki.fi>

doveadm sync/backup: Added -s <state> parameter to do a fast stateful sync. Initially use an empty string for the input state. The output state is written to stdout.

e83126866761632b437e532dfdc30be01d14039d 21-Oct-2012 Timo Sirainen <tss@iki.fi>

doveadm: "backup" command is working again.

a85473f7c11c8734bdee9c2cbe4b767f144a18aa 07-Sep-2012 Timo Sirainen <tss@iki.fi>

dsync: Renamed "slave" to "ibc" (= inter-brain communicator)

7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29 22-May-2012 Timo Sirainen <tss@iki.fi>

Initial version of dsync rewrite. * doveadm backup not implemented at all yet * syncing mailbox renames is somewhat broken (at least renaming \noselect mailboxes) * saving/restoring "state" is implemented by dsync brain, but not by doveadm. this should be easy to do, just need to figure out how the replication code wants it.

/dovecot/src/doveadm/doveadm-settings.c Makefile.am doveadm-dsync.c dsync-brain-mailbox-tree-sync.c dsync-brain-mailbox-tree.c dsync-brain-mailbox.c dsync-brain-mails.c dsync-brain-msgs-new.c dsync-brain-msgs.c dsync-brain-private.h dsync-brain.c dsync-brain.h dsync-data.c dsync-data.h dsync-deserializer.c dsync-deserializer.h dsync-mail.c dsync-mail.h dsync-mailbox-export.c dsync-mailbox-export.h dsync-mailbox-import.c dsync-mailbox-import.h dsync-mailbox-state-export.h dsync-mailbox-state.c dsync-mailbox-state.h dsync-mailbox-tree-fill.c dsync-mailbox-tree-private.h dsync-mailbox-tree-sync.c dsync-mailbox-tree.c dsync-mailbox-tree.h dsync-mailbox.h dsync-proxy-client.c dsync-proxy-server-cmd.c dsync-proxy-server.c dsync-proxy-server.h dsync-proxy.c dsync-proxy.h dsync-serializer.c dsync-serializer.h dsync-slave-io.c dsync-slave-pipe.c dsync-slave-private.h dsync-slave.c dsync-slave.h dsync-transaction-log-scan.c dsync-transaction-log-scan.h dsync-worker-local.c dsync-worker-private.h dsync-worker.c dsync-worker.h test-dsync-brain-msgs.c test-dsync-brain.c test-dsync-common.c test-dsync-common.h test-dsync-proxy-server-cmd.c test-dsync-proxy.c test-dsync-worker.c test-dsync-worker.h
885a3c2287ae3e5827aa580ea06b231de38abb47 29-Dec-2011 Timo Sirainen <tss@iki.fi>

Merged dsync into "doveadm dsync". dsync symlink is installed for backwards compatibility.

/dovecot/.hgignore /dovecot/configure.in /dovecot/src/Makefile.am /dovecot/src/doveadm/Makefile.am /dovecot/src/doveadm/client-connection.c /dovecot/src/doveadm/doveadm-mail.c /dovecot/src/doveadm/doveadm-mail.h /dovecot/src/doveadm/doveadm-settings.c /dovecot/src/doveadm/doveadm-settings.h /dovecot/src/doveadm/doveadm.c Makefile.am doveadm-dsync.c doveadm-dsync.h dsync-brain-msgs-new.c dsync-brain-msgs.c dsync-brain-private.h dsync-brain.c dsync-brain.h dsync-data.c dsync-data.h dsync-proxy-client.c dsync-proxy-server-cmd.c dsync-proxy-server.c dsync-proxy-server.h dsync-proxy.c dsync-proxy.h dsync-worker-local.c dsync-worker-private.h dsync-worker.c dsync-worker.h test-dsync-brain-msgs.c test-dsync-brain.c test-dsync-common.c test-dsync-common.h test-dsync-proxy-server-cmd.c test-dsync-proxy.c test-dsync-worker.c test-dsync-worker.h /dovecot/src/dsync/dsync.c