Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 573 #599
i
i
i
i
i
i
i
i
23
File Synchronization
mailsync uses the msinfo file to keep track of the messages that have al-
ready been synchronized.
The command mailsync folder does the following:
Expands the mailbox pattern on both sides.
Removes the prefix from the resulting folder names.
Synchronizes the folders in pairs (or creates them if they do not exist).
Accordingly, the folder INBOX.sent-mail on the IMAP server is syn-
chronized with the local folder Mail/sent-mail (provided the defini-
tions explained above exist). The synchronization between the individual
folder is performed as follows:
If a message already exists on both sides, nothing happens.
If the message is missing on one side and is new (not listed in the
msinfo file), it is transmitted there.
If the message merely exists on one side and is old (already listed in
the msinfo file), it is deleted there (because the message that had ob-
viously existed on the other side was deleted).
To know in advance which messages will be transmitted and which will
be deleted during a synchronization, start mailsync with a channel and a
store with mailsync folder localdir. This command produces a list
of all messages that are new on the local host as well as a list of all mes-
sages that would be deleted on the IMAP side during a synchronization.
Similarly, the command mailsync folder imapdir produces a list of
all messages that are new on the IMAP side and a list of all messages that
would be deleted on the local host during a synchronization.
23.7.2 Possible Problems
In the event of a data loss, the safest method is to delete the relevant chan-
nel log file msinfo. Accordingly, all messages that only exist on one side
are viewed as new and are therefore transmitted during the next synchro-
nization.
573SUSE LINUX Enterprise Server