On 29 Dec 2017, at 15:15 (-0500), Eero Volotinen wrote:
Hi list,
A bit offtopic, but I need cli-tool to remove attachments from
specific
maildir messages, so how to do that?
You're on the wrong list. I don't know what the right one for this query
would be, but it's going to depend on what you have reading your
maildirs (i.e. your POP, IMAP, or webmail server, NOT Postfix) because
that's the side you risk confusing by doing that.
As a general rule, I'd say that you would be better off reconsidering
your problem from its root and finding an alternative mechanism.
Modifying message files in a maildir after they've been delivered rarely
ends well. You'd be better off using something like MIMEDefang to lop
off the attachments before delivery or an IMAP client to do the surgery
by reconstructing a new message sans attachment and deleting the
original.
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Currently Seeking Steady Work: https://linkedin.com/in/billcole