On Sun, 3 Aug 2003, Carl Cotner wrote:
>I have successfully installed the Binc IMAP 1.1.8 port on FreeBSD 5.2
>and am experiencing an unexpected problem. I linked some IMAPdirs to
>previously existing maildirs which contain messages with filenames of
>the forms:
>  1045709940.62283_38.freebsd:2,S
>and
>  _fnM+P0X3-.freebsd.nitanee.net:2,S

The last message filename, is from what I understand, completely broken.

>From the spec: http://cr.yp.to/proto/maildir.html

"A unique name has three pieces, separated by dots. On the left is the 
result of time() or the second counter from gettimeofday()."

So the first message is right, the second message seems like a serious bug
in some app. It has only two pieces, and the first is not an integer (from
time(0) or gettimeofday).

A way to work around this is by creating a script that renames all files
of this format to an appropriate name, perhaps by using the creation time
of the file as first part, a random number as second part and the hostname
as the third part (and keep the flags!).

Remember to stop all delivery to this/these mailbox(es) when you're
running the script, or you might lose mails when renaming.

Andy :-)

-- 
Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP    | "It is better not to do something
                       |  than to do it poorly."

Reply via email to