On 03/14/2012 10:47 AM, Emiliano Rago wrote:
> Hi,
> 
> I am trying to migrate my imap server to dbmail, and to do that I'd like
> to use "imapsync --useuid". I can't use the header as mechanism to
> synchronize, I have 700GB of stored messages and a lot of bad or
> inhexistent headers (so impasync would skip them).

If you use the right set of --useheader and --skipsize it *will* work. I
think there are some examples on the wiki.

http://www.dbmail.org/dokuwiki/doku.php/imapsync-howto


Apparently imapsync's --useuid feature (a recent addition?) is broken.

> 
> The problem is that dbmail don't assign UID according to UIDNEXT
> prediction, so imapsync's cache is wrong, and if I rerun the
> synchronization the old messages and deleted and transferred again.

So imapsync is broken! Look at this excerpt from RFC3501, and especially
the Note:

   Unless the unique
   identifier validity also changes (see below), the next unique
   identifier value MUST have the following two characteristics.  First,
   the next unique identifier value MUST NOT change unless new messages
   are added to the mailbox; and second, the next unique identifier
   value MUST change whenever new messages are added to the mailbox,
   even if those new messages are subsequently expunged.

        Note: The next unique identifier value is intended to
        provide a means for a client to determine whether any
        messages have been delivered to the mailbox since the
        previous time it checked this value.  It is not intended to
        provide any guarantee that any message will have this
        unique identifier.  A client can only assume, at the time
        that it obtains the next unique identifier value, that
        messages arriving after that time will have a UID greater
        than or equal to that value.


> Is there anything I can do?
> 
> I am using dbmail 2.2.17 on a SL6

3.0.2 is better :-)



-- 
________________________________________________________________
Paul J Stevens        pjstevns @ gmail, twitter, skype, linkedin

  * Premium Hosting Services and Web Application Consultancy *

           www.nfg.nl/i...@nfg.nl/+31.85.877.99.97
________________________________________________________________
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to