[Dovecot] What is the recommended way to delete a message from a mailbox ?
Hi,
I'm implementing a shell-script (pseudo) solution to the missing IMAP Outbox feature in Dovecot (Courier IMAP feature http://www.inter7.com/courierimap/INSTALL.html#imapsend)
In order to remove the message from the Outbox once it is sent I have a question:
What is the recommended way to delete a message from a mailbox (from an "external" server side program - such as a shell script) ?
Can I just remove the file from the mailbox - I cannot seem to find any doveadm commands that does this task. I guess that Dovecot over time will discover that the atime and mtime of its indexes and maps does not reflect reality - or is there another (better) way to delete a message.
Thanks Uffe
-- View this message in context: http://old.nabble.com/What-is-the-recommended-way-to-delete-a-message-from-a... Sent from the Dovecot mailing list archive at Nabble.com.
Andrew Lewis-10 wrote:
On Wed, 20 Apr 2011 21:25:39 -0700 (PDT), Uffe Jakobsen wrote:
What is the recommended way to delete a message from a mailbox (from an "external" server side program - such as a shell script) ? doveadm expunge -u foo mailbox Outbox header message-id bar
ah - thx :-)
View this message in context: http://old.nabble.com/What-is-the-recommended-way-to-delete-a-message-from-a... Sent from the Dovecot mailing list archive at Nabble.com.
participants (2)
-
andrew@sybaweb.com
-
Uffe Jakobsen