[Dovecot] stripping attachments

Kirill Miazine km at krot.org
Fri Jan 8 22:33:25 EET 2010


* Frank Cusack [2010-01-08 15:27]:
>there is a windows tool that strips attachments from emails on the
>server.  i think it works for exchange.  is there a tool or a way
>to do this for imap?

yes, this is doable. e.g. mutt client can delete attachments from
messages stored on imap server. in reality it would get the message,
strip attachments, upload the message witout attachments and delete the
original message with attachments.

i believe mozilla thunderbird also offers a similar option.

>i don't mean a mail filter that would strip them before the user sees
>them, i mean that the user could actively cooperate to reduce mail
>storage space, yet keep the original email on the server sans
>attachment.

right. yes, this is done by the approach described before.

or you could use the imapsize tool:

http://www.broobles.com/imapsize/imap-delete-attachments.php

regards,
kirill

-- 
#!/usr/bin/perl -w
print(&{sub{eval(qq(q(@_)))}}((join(''=>map{ord=~m(1(06|12))?uc:lc}($[=>
map{chr}(97..122))[map{int}grep{length}split(/(\d\d)/,'102119200114152'.
q(008051816051812080103110518))]))=~m(^(Just)(.+)(Perl)(.+)(?#:-)$)),$/)


More information about the dovecot mailing list