[Dovecot] How Can I Add New Flags
Hi all,
I am new in Dovecot. I wanna use Dovecot in the big mail system about 4 million active or passive users. We use recently Courier Imap, but search mails process is so slowly. I tried Dovecot that it is better then Courier so much. But I have a problem with integration Dovecot to my system. I am using some extra flags in mails to mark them from others. For example I use a private flag "M" to understand it that this mail come from us as newsletter. I make some changes in code, but unfortunately I could'nt add this flag to Dovecot correctly. Please help me it that how can add this flag.
I use maildir type
Thanks, Sezai
Sezai KARATOZ wrote:
I am new in Dovecot. I wanna use Dovecot in the big mail system about 4 million active or passive users. We use recently Courier Imap, but search mails process is so slowly. I tried Dovecot that it is better then Courier so much. But I have a problem with integration Dovecot to my system. I am using some extra flags in mails to mark them from others. For example I use a private flag "M" to understand it that this mail come from us as newsletter. I make some changes in code, but unfortunately I could'nt add this flag to Dovecot correctly. Please help me it that how can add this flag.
If you're talking about marking some message with IMAP flag (I mean with IMAP "store" command), I beleive that dovecot supports arbitrary flag names - notice that it includes "\*" in the PERMANENTFLAGS untagged response...
Cheers, -jkt
-- cd /local/pub && more beer > /dev/mouth
If you're talking about marking some message with IMAP flag (I mean with IMAP "store" command), I beleive that dovecot supports arbitrary flag names - notice that it includes "\*" in the PERMANENTFLAGS untagged response...
Cheers, -jkt
I add some IMAP flags manually. For example, file name is "1130254412.14251.devsearch:2,", i add "M" flag to file physical by using "mv" command in linux. I want to add this flag to Dovecot to understand this. Is there a way by using .keywords file.
Thanks, Sezai
Sezai KARATOZ wrote:
I add some IMAP flags manually. For example, file name is "1130254412.14251.devsearch:2,", i add "M" flag to file physical by using "mv" command in linux. I want to add this flag to Dovecot to understand this. Is there a way by using .keywords file.
Why don't you let dovecot now about that and give it a chance to update its indexes etc?
Cheers, -jkt
-- cd /local/pub && more beer > /dev/mouth
Because I use Dovecot and Courier together. At this moment I wanna test it in my system. So in courier I used .customflags file to define new flags. But In dovecot this case has changed. I use dovecot-1.0.beta3 version.
Sezai KARATOZ wrote:
Because I use Dovecot and Courier together. At this moment I wanna test it in my system. So in courier I used .customflags file to define new flags. But In dovecot this case has changed. I use dovecot-1.0.beta3 version.
Using two IMAP servers for accessing one shared copy of data doesn't seem wise to me.
Cheers, -jkt
-- cd /local/pub && more beer > /dev/mouth
I know it that is bad choice. But we have use Courier imap for 5 years. It is so stable and giving no problem to us. I want to use Dovecot partially in our system. Because in any problem, we must reply so much customer email :) So It is better to use together them until adapt Dovecot to us.
Thanks, Sezai
On Thu, 2006-03-16 at 10:18 +0200, Sezai KARATOZ wrote:
If you're talking about marking some message with IMAP flag (I mean with IMAP "store" command), I beleive that dovecot supports arbitrary flag names - notice that it includes "\*" in the PERMANENTFLAGS untagged response...
Cheers, -jkt
I add some IMAP flags manually. For example, file name is "1130254412.14251.devsearch:2,", i add "M" flag to file physical by using "mv" command in linux. I want to add this flag to Dovecot to understand this. Is there a way by using .keywords file.
Well, there isn't any simple way to do this. Either you'd have to change the Dovecot's code to hardcode the "M" flag in there (maybe not too difficult), or you could try using Dovecot's keywords instead. The keywords use letters a..z in the filename, so you could set eg. "a" instead of the "M", and make sure each mailbox has dovecot-keywords file with the first keyword being set to "newsletter".
Hmm. I assume you meant anyway that this flag should show up to IMAP clients in some way?
participants (3)
-
Jan Kundrát
-
Sezai KARATOZ
-
Timo Sirainen