[Dovecot] Setting IMAP keywords/flags on delivery
Hi there,
We've been long time users of Dovecot, and have found it a great IMAP server. I don't think we've had any serious problems in the 3-4 years of use. So great work. :)
We have a IMAP inbox that is accessed by a number of different users
from Thunderbird. We have a rule in Thunderbird to flag new emails as
"TO DO", so someone can unflag the email once it has been actioned.
This process works fairly well for a simple workflow, but problems arise
when someone connects to the inbox with a Thunderbird instance that
doesn't have the "TO DO" rule configured. The email will not be
flagged properly. :(
I'd like to be able to set this flag/keyword when the mail is delivered to the inbox, on the server side. That way the flag will be set no matter which client accesses the Inbox first. We currently use mail drop for our server-side mail filtering .... and would like to do a similar thing with this flagging process.
We're using Dovecot 1.0.15 on Debian Testing, and use Maildir storage and maildrop as our delivery agent.
I've read about how the keywords and Thunderbird labels work in the wiki article here (http://wiki.dovecot.org/MailboxFormat/Maildir). So I could probably write some sort of script to query the "dovecot-keywords" file, and rename the Maildir file to set the appropriate flag. But this sounds a like a bit of a hack, and maybe a little dangerous.
Does anyone have any recommendations as to how I could achieve something like this? I'm keen to hear any ideas, whether it's through scripting, or some sort of scriptable/command-line IMAP client.
Ideally, we'd have a way to set the flag at the time when the mail is delivered.... or when the first client retrieves any new mail?
Thanks in advance!!
-- Matt Doran PaperCut Software International Pty. Ltd. Phone: +61 (3) 9807 5767 E-mail: matt.doran@papercut.com Profile: http://www.papercut.com/about/#matt Blog: http://www.papercut.com/blog/
On Wed, January 7, 2009 8:24 pm, Matt Doran wrote:
I'd like to be able to set this flag/keyword when the mail is delivered to the inbox, on the server side.
Dovecot sieve will do exactly what you are looking for. It's described quite well in the WIKI. The operator that you're looking for is, 'setflag'.
B. Bodger Oklahoma City, OK
Bruce Bodger wrote:
On Wed, January 7, 2009 8:24 pm, Matt Doran wrote:
I'd like to be able to set this flag/keyword when the mail is delivered to the inbox, on the server side.
Dovecot sieve will do exactly what you are looking for. It's described quite well in the WIKI. The operator that you're looking for is, 'setflag'.
Thanks Bruce.
That does look interesting!
I've looked at sieve before for other reasons, but ended up not going with it because it wasn't able to deliver mail to other processes (like spamassassin and more importantly a home-grown support/ticket system we developed). Maybe that's changed since I last looked??
We're currently using maildrop for filtering and local delivery.
Do you know if there's a way to integrate the two? Possibly using maildrop to start, and then do the final delivery through sieve?
Or is there another way to achieve this?
Thanks again, Matt
On Jan 7, 2009, at 9:34 PM, Matt Doran wrote:
Dovecot sieve will do exactly what you are looking for. It's
described quite well in the WIKI. The operator that you're looking for is, 'setflag'We're currently using maildrop for filtering and local delivery.
Do you know if there's a way to integrate the two?
I'd prefer not to burden the list with this, but we highly recommend a
product called MPP (Message Processing Platform) which not only
provides a myriad of filtering and archiving features on its own but
it also acts / can act as your interface to spam and virus detectors.
You may check it out here http://www.raeinternet.com/category/mpp/mpp-home/
We've been using it for years: the support staff is terrific.
'nuff said in this forum about it.
Good luck, Bruce
participants (2)
-
Bruce Bodger
-
Matt Doran