I spend time in two places, in different countries. I have a local network in each place, with IMAP servers on each network. I collect email by fetchmail from various servers, and read email on my laptop with KMail. I tried using just one IMAP server, but this proved impractical. So I have two collections of the same sub-folders, on the two servers. I have two questions: 1. Is there a simpler way of organizing my email? 2. Given the current method, is there a way of syncronizing folders on the two servers? -- Timothy Murphy gayleard /at/ eircom.net School of Mathematics, Trinity College, Dublin
On 10/10/2015 13:22, Timothy Murphy wrote:> I spend time in two places, in different countries. > I have a local network in each place, > with IMAP servers on each network. > I collect email by fetchmail from various servers, > and read email on my laptop with KMail. > > I tried using just one IMAP server, but this proved impractical. > So I have two collections of the same sub-folders, on the two servers. > > I have two questions: > 1. Is there a simpler way of organizing my email?Why was it impractical? Remote access to a single IMAP server in one location ought to be possible. We spend extended periods in several countries. I keep all my email (collected via fetchmail/exim) on an IMAP server (dovecot) at home and it's never been a problem to access it remotely from different countries and different devices.> 2. Given the current method, is there a way of syncronizing folders > on the two servers?If you are using plain maildir, then I think you could just use rsync to synchronise the two sets of folders and files. I guess you would need to exclude from the rsync operation the dovecot-specific files (indexes and so forth) and allow dovecot to update these itself to reflect the new state of each set of stored messages. -- John Allen Bofferdange, Luxembourg allen at vo.lu
On 10/10/2015 13:46, John Allen wrote:> If you are using plain maildir, then I think you could just use rsync to > synchronise the two sets of folders and files. I guess you would need to > exclude from the rsync operation the dovecot-specific files (indexes and > so forth) and allow dovecot to update these itself to reflect the new > state of each set of stored messages.Another option would be to try imapfilter. Olaf
On 10/10/15 12:22, Timothy Murphy wrote:> I spend time in two places, in different countries. > I have a local network in each place, > with IMAP servers on each network. > I collect email by fetchmail from various servers, > and read email on my laptop with KMail. > > I tried using just one IMAP server, but this proved impractical. > So I have two collections of the same sub-folders, on the two servers. > > I have two questions: > 1. Is there a simpler way of organizing my email? > 2. Given the current method, is there a way of syncronizing folders > on the two servers? >You can use bi-directional replication: http://wiki2.dovecot.org/Replication I personally use the SSL over TCP method and it works find *provided* you have a valid (ie non-self signed or otherwise correctly installed private CA) certificate to use. Dirk