Re: [Dovecot] UIDL and message migration

2011-06-27 Thread Timo Sirainen
On Tue, 2011-06-21 at 12:17 +0100, Hugo Monteiro wrote:
 Hello,
 
 I'm in the process of migrating accounts between two dovecot servers. An 
 old server running ancient 1.0.15 and a new server running 1.2.15.
 Account migration is going to be gradual and so i would like to use 
 imapsync to move messages and subscriptions from one server to the 
 other. The only problem so far is with POP users. After doing an account 
 migration with imapsync, and although both servers share the same 
 pop3_uidl_format = %08Xu%08Xv, the client downloads every message that 
 was already on the server.

%u means IMAP UID. imapsync can't preserve those. Use either rsync on
the filesystem directly or v2.0's dsync.




Re: [Dovecot] UIDL and message migration

2011-06-21 Thread Javier
Hugo,

I have been there too.
Check if you are changing the server address in the e-mail client. If
you are doing so, most clients check uidls based on this (at least in
my tests).

If you keep the hostname intact and the uidls are the same, the
e-mails won't be downloaded again.  You can do this messing with the
hosts file in the client computer.

To check if the uidls are the same, just launch a telnet session in
both POP servers and issue a UIDL command and compare the output.

Javier

On Tue, Jun 21, 2011 at 8:17 AM, Hugo Monteiro hugo.monte...@fct.unl.pt wrote:
 Hello,

 I'm in the process of migrating accounts between two dovecot servers. An old
 server running ancient 1.0.15 and a new server running 1.2.15.
 Account migration is going to be gradual and so i would like to use imapsync
 to move messages and subscriptions from one server to the other. The only
 problem so far is with POP users. After doing an account migration with
 imapsync, and although both servers share the same pop3_uidl_format =
 %08Xu%08Xv, the client downloads every message that was already on the
 server.

 Any pointers would be very much appreciated.

 Best Regards,

 Hugo Monteiro.



Re: [Dovecot] UIDL and message migration

2011-06-21 Thread Hugo Monteiro

On 06/21/2011 08:52 PM, Javier wrote:

Hugo,

I have been there too.
Check if you are changing the server address in the e-mail client. If
you are doing so, most clients check uidls based on this (at least in
my tests).

If you keep the hostname intact and the uidls are the same, the
e-mails won't be downloaded again.  You can do this messing with the
hosts file in the client computer.

To check if the uidls are the same, just launch a telnet session in
both POP servers and issue a UIDL command and compare the output.

Javier



Hello Javier,

The hostname is intact since all pop/imap are being routed through a 
proxy. The problem is that using imapsync, for message migration, the 
uilds don't stay intact. I was hoping someone would know a tool, similar 
to imapsync, that would provide such a functionality. Alternately i can 
always scp/tar the messages from one server to the other, but for 
migration implementation reasons i would prefer imapsync, or the like.


Regards,

Hugo Monteiro.

--
fct.unl.pt:~# cat .signature

Hugo Monteiro
Email: hugo.monte...@fct.unl.pt
Telefone : +351 212948300 Ext.15307
Web  : http://hmonteiro.net

Divisão de Informática
Faculdade de Ciências e Tecnologia da
   Universidade Nova de Lisboa
Quinta da Torre   2829-516 Caparica   Portugal
Telefone: +351 212948596   Fax: +351 212948548
www.fct.unl.ptap...@fct.unl.pt

fct.unl.pt:~# _