HOW TO SYNCH MAIL BETWEEN TWO COMPUTERS?
I use kmail (with maildir) for my e-mail. I often go on the road and take my laptop with me. My e-mail collection is very big pushing 1GB. In the past I've either ignored synchronising e-mail between my laptop and desktop machines (very bad) or I've just copied the whole lot cp -a from one machine to the other - this is very slow. Then I hit upon rsync and today I rsynced from my laptop to my desktop using the option --archive. To my horror on restarting kmail I found that all the mail that had been on the desktop that was not on the laptop had disappeared. Disaster! And more importantly this is not how rsyns is supposed to work. However it turned out that rsync had behaved properly - it hadn't deleted any of the mails that it shouldn't have. What had happened is that the index and index.id files on the desktop had been overwritten by the ones on the laptop. Kmail could no longer 'see' the files. Does anyone have a more elegant solution for synching mail between two computers (kmail or otherwise). Thanks, Jethro
* Jethro Cramp <jsc_lists@rock-tnsc.com> [01-26-03 20:02]:
I use kmail (with maildir) for my e-mail. I often go on the road and take my laptop with me. My e-mail collection is very big pushing 1GB. In the past I've either ignored synchronising e-mail between my laptop and desktop machines (very bad) or I've just copied the whole lot cp -a from one machine to the other - this is very slow.
Then I hit upon rsync and today I rsynced from my laptop to my desktop using the option --archive. To my horror on restarting kmail I found that all the mail that had been on the desktop that was not on the laptop had disappeared. Disaster! And more importantly this is not how rsyns is supposed to work.
However it turned out that rsync had behaved properly - it hadn't deleted any of the mails that it shouldn't have. What had happened is that the index and index.id files on the desktop had been overwritten by the ones on the laptop. Kmail could no longer 'see' the files.
Shouldn't cause a problem. Delete all the index files. When you restart KMail, they will be recreated. The only prominent thing that you will loose the the flags. ps. Why are you shouting ?? (Subject: line) -- Patrick Shanahan http://wahoo.no-ip.org Registered Linux User #207535 icq#173753138 @ http://counter.li.org
Am Samstag, 25. Januar 2003 19:28 schrieb Jethro Cramp:
Does anyone have a more elegant solution for synching mail between two computers (kmail or otherwise). Well, I don't know what you did , but I do use rsync without no problems to sync my whole desktop like so:
on PC: rsync --rsh=ssh --delete -avr /home/danam/ notebook:/home/danam ...and vice versa. Of course you should have backups as well, just in case, especially if you sync the wrong way :-) Regards Dan
Daniel, On Monday 27 January 2003 09:56, Daniel Amthor wrote:
Well, I don't know what you did , but I do use rsync without no problems to sync my whole desktop like so:
on PC: rsync --rsh=ssh --delete -avr /home/danam/ notebook:/home/danam ...and vice versa.
That only works if your computers don't get out of synch. IE if you receive new e-mails on both computers and then do a synch you will loose mail. I used the same command as you (but without the delete, I'm a bit more conservative) for a while and as long as I didn't have new e-mails on both machines, things worked fine. I didn't actually loose any mail. I just lost the view of it until I deleted kmail's index files. Regards, Jethro
In article <200301272048.06630.jsc_lists@rock-tnsc.com>, Jethro Cramp <jsc_lists@rock-tnsc.com> wrote:
Daniel, it is _rude_ ro shout! On Monday 27 January 2003 09:56, Daniel Amthor wrote:
Well, I don't know what you did , but I do use rsync without no problems to sync my whole desktop like so:
on PC: rsync --rsh=ssh --delete -avr /home/danam/ notebook:/home/danam ...and vice versa.
That only works if your computers don't get out of synch. IE if you receive new e-mails on both computers and then do a synch you will loose mail. I used the same command as you (but without the delete, I'm a bit more conservative) for a while and as long as I didn't have new e-mails on both machines, things worked fine.
I didn't actually loose any mail. I just lost the view of it until I deleted kmail's index files.
Regards,
Jethro
participants (4)
-
Dan Am
-
Jethro Cramp
-
Nik
-
Patrick Shanahan