On 6/21/07, Don Russell <don(_at_)drussell(_dot_)dnsalias(_dot_)com> wrote:
If Dovecot IMAP server is truly removing some X-Keyword: headers just
because a message is new, I'll open a bug report against it.
Ah, Dovecot.
Dovecot does not store the keywords in the X-Keywords header. It
stores them entirely outside of the mailbox, in a parallel directory
hierarchy where it maintains index files. As far as I can tell you'll
never see a non-empty X-Keywords header in a message that has been
indexed by Dovecot -- I'm not entirely sure, but I believe the only
reason it even notices that header is for compatibility with folders
that were previously maintained by UW IMAP or a UW client such as
Pine. Once it has read the keyword, it stores it in the index and
deletes it from the actual message, and the only way you can see it is
to use the IMAP protocol to ask for it.
The folders where you have "working" X-Keywords don't happen to be
read-only (e.g., owned by root) for Dovecot, do they?
I also have trouble with this theory because I don't see how Dovecot
could keep track of which messages are new and thus be subject to this
header-extraction.
External index files. If the message isn't already in the index, it's
new. Dovecot *has* to be able to keep track of which messages are
new: The IMAP protocol spec requires that it be able to report that
information to the client.
Based on Message-Id? Are you suggesting Dovecot keeps
track of every message-id it's ever seen?
No, it just keeps track of every message that's currently in one of
the folders it serves.
I could also "unsubscribe" to that particular folder and check it
"manually" with vim to see if the X-Keywords headers are there, if so,
subscribe to the folder again, and see if the X-Keywords headers are
still there.
Subscribing won't have anything directly to do with it. You just need
to look at the folder between the time a message is delivered and the
next time IMAP is used to query whether the folder has new mail.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail