I'm wondering what I'd need to do to get the "important" flag set on an incoming message according to a pre-specified header. I know the problem of this not being a "joined-up" feature in standard email, but in practice many MUAs set headers like X-priority etc, and IMAP has an "important" flag that is the obvious mapping. I'm not really sure where would be the best place to try to put something like this. Should it be the delivery agent (qmail in my case), the IMAP server (i.e. Dovecot), or the MUA? To me the MUA doesn't make sense, as the flag should be set before any specific MUA even gets to the message. Since the flags are coded into the filenames when using maildir, is it possible for qmail to deliver a message with the flag included in the filename, and will Dovecot recognise it? If so I might try hacking qmail. Or any other ideas - has anyone else tried this? -- Rick Jones
----- Original Message ----- From: "Rick Jones" <rick at activeservice.co.uk> To: <dovecot at dovecot.org> Sent: Friday, May 21, 2004 9:08 AM Subject: [Dovecot] "important" flag> I'm wondering what I'd need to do to get the "important" flag set on an > incoming message according to a pre-specified header. > > I know the problem of this not being a "joined-up" feature in standard > email, but in practice many MUAs set headers like X-priority etc, and IMAP > has an "important" flag that is the obvious mapping. > > I'm not really sure where would be the best place to try to put something > like this. Should it be the delivery agent (qmail in my case), the IMAP > server (i.e. Dovecot), or the MUA? To me the MUA doesn't make sense, asthe> flag should be set before any specific MUA even gets to the message. > > Since the flags are coded into the filenames when using maildir, is it > possible for qmail to deliver a message with the flag included in the > filename, and will Dovecot recognise it? If so I might try hacking qmail. > > Or any other ideas - has anyone else tried this?Probably in procmail, not in dovecot.
On Fri, 2004-05-21 at 16:08, Rick Jones wrote:> I'm wondering what I'd need to do to get the "important" flag set on an > incoming message according to a pre-specified header. > > I know the problem of this not being a "joined-up" feature in standard > email, but in practice many MUAs set headers like X-priority etc, and IMAP > has an "important" flag that is the obvious mapping. > > I'm not really sure where would be the best place to try to put something > like this. Should it be the delivery agent (qmail in my case), the IMAP > server (i.e. Dovecot), or the MUA? To me the MUA doesn't make sense, as the > flag should be set before any specific MUA even gets to the message.LDA is the correct place. Dovecot LDA with Sieve support would make this easy. Any voluenteers to write this? :) Shouldn't be too difficult using libsieve.> Since the flags are coded into the filenames when using maildir, is it > possible for qmail to deliver a message with the flag included in the > filename, and will Dovecot recognise it? If so I might try hacking qmail.If the flag is in Dovecot's .customflags file you can hack qmail to directly add the flag in the filename. Files in new/ directory shouldn't actually contain flags (Dovecot's COPY works wrong here..), but Dovecot supports them fine. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20040522/94885cd6/attachment-0001.bin>
--On 22 May 2004 05:47 +0300 Timo Sirainen <tss at iki.fi> wrote:> On Fri, 2004-05-21 at 16:08, Rick Jones wrote: >> I'm wondering what I'd need to do to get the "important" flag set on an >> incoming message according to a pre-specified header. >> ... >> Since the flags are coded into the filenames when using maildir, is it >> possible for qmail to deliver a message with the flag included in the >> filename, and will Dovecot recognise it? If so I might try hacking qmail. > > If the flag is in Dovecot's .customflags file you can hack qmail to > directly add the flag in the filename. Files in new/ directory shouldn't > actually contain flags (Dovecot's COPY works wrong here..), but Dovecot > supports them fine.I don't quite follow the significance of .customflags here, as the flag in question (important) isn't a custom one. And are you saying that adding a flag to the file in new/ only works because Dovecot doesn't actually do the right thing? :) In which case, is this likely to be fixed/broken (depending on your viewpoint) in future? Rick