[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-mailutils] mailutils, message uids & maildir
From: |
Stephen Bylo |
Subject: |
[bug-mailutils] mailutils, message uids & maildir |
Date: |
20 Nov 2003 21:05:53 +0800 |
I see there is a function provided called
message_get_uid(message_t, int* ).
My questions:
(1)
Why is there not any function to retrieve a message_t given a uid ?
or have i not been able to find it.
Right now we loop through all mails looking for the uid (using
libmu_mbox) and then use mailbox_get_message( m_mbox, msgno, &msg ) to
retrieve message_t using the "running" number!
Q: Can we do this in a better way?
(2)
We want now to convert from mbox to maildir (we submitted a patch
recently!).
It seems that only mbox implements the uid "feature" (ie. puts X-UID
into email headers). We are thinking of using the first 2 fields of the
email's file name to create a uid (in this case a string) to identify
the emails at later stages. Of course an int might be better, but we
are in a hurry.
Q: Is this the right way to go to correctly identify emails when using a
maildir folder?
We are using version 0.4 with our maildir patch applied.
Thanxs for any help!
Steve
- [bug-mailutils] mailutils, message uids & maildir,
Stephen Bylo <=