[imp] Sort by arrival problem

Michael M Slusarz slusarz at mail.curecanti.org
Thu Jul 28 21:41:15 PDT 2005


Quoting "Pallos B. Richard" <richard.pallos at gmail.com>:

> Hi All,
>
> I got a problem after migrating Maildirs from an older server to a new one.
>
> The problem is that IMP does not sort correctly the messages in the
> Maildir by the arrival index (desc: 3,2,1 OK, but asc:2,1,3 not OK!). It
> seems that the migrated letters do not get sorted at all.
> The Maildir was migrated with a simple file-system copy. Other IMAP mail
> clients (mozilla, thunderbird) work fine.
>
> From the imp/lib/Mailbox.php I found out that the sort is made by the
> PHP's imap_sort() builtin function so I checked the sort index. I got,
> that for the migrated old messages the message_id row in the array is empty.
>
> e.g.:
> New letter: [message_id] => <20050720154309.61A8620937 at hostname>
> Migrated  : [message_id] =>
>
> Is the imap_fetch_overview() gets this message_id wrong? Is it a
> c-client problem? Is it possible to sort by the [msgno] instead?

This appears to be an issue with imap_sort() and a workedaround has 
been implemented in HEAD and the forthcoming IMP 4.0.4.

michael

_______________________________________
Michael Slusarz [slusarz at curecanti.org]


More information about the imp mailing list