<<< Date Index >>>     <<< Thread Index >>>

Re: synchronization of two maildirs



On Tue, Oct 28, 2008 at 09:42:35PM -0500, Kyle Wheeler wrote:
> On Tuesday, October 28 at 06:01 PM, quoth malahal@xxxxxxxxxx:
> >Andrew Haninger [ahaning@xxxxxxxxxxxxxx] wrote:
> >> On Tue, Oct 28, 2008 at 5:53 PM,  <malahal@xxxxxxxxxx> wrote:
> >> > So I am looking at programs that would synchronize two maildirs.
> >> Correct me if I'm wrong, but isn't maildir just a directory of tiny
> >> files, each one an email?
> >> 
> >> What's wrong with rsync?
> >
> >If I read and delete an email from my laptop, I would like it to be
> >deleted at the desktop too. For that, I need to run rsync otherway but
> >that could delete the new mail arrived at the desktop.
> 
> An additional issue with rsync is that it can't track maildir flag 
> changes - if you change a file name (e.g. by reading a message), that 
> means the full message must be re-transferred.

I use unison for this. IIRC it uses the rsync protocol, but it's
bidirectional, and can tell when files are the same (so if a file is
moved on the server, it'll move it on the client rather than
retransferring).

www.cis.upenn.edu/~bcpierce/unison/

-- 
Benjamin M. A'Lee || mail: bma@xxxxxxxxxxxxxx
web: http://subvert.org.uk/~bma/ || gpg: 0xBB6D2FA0
"By the power of truth, I, while living, have conquered the universe." --
Christopher Marlowe, The Tragical History of Dr. Faustus