Dan Born delatt

delatt

Description

delatt: Delete attachments. delatt strips attachments from email, and can optionally save the attachments to files. It will work with either mbox or maildir files.

It's great for archiving old email without wasting space on attachments and the extra HTML message parts that some MUAs attach.

Usage

Usage: delatt --mbox|--mdir [--save <directory>] [<files>]

--mbox if the given files are mbox mail folders.

--mdir if the given files are maildir messages.

--save if you want the stripped attachments to be saved to files in the named <directory>. If a filename for an attachment is not specified in the message then it will be named attachment_year-month-day. If multiple files have the same name, they will have .<number> appended to their names. If the attachment is MIME base64 encoded, it will be decoded into the file. If it's some other encoding type, it will be written as-is. HTML "alternative" message parts are deleted. (Many clients, like Outlook, have the annoying habit of sending a text message with an HTML copy of the same message attached.)

<files> to specify the maildir message files or mbox folder files to process. If no files are specified on the command line, then either a maildir message or an mbox folder (depending on --mdir or --mbox) is read from standard input and the output is sent to standard output.

Download

tarball: delatt-1.1.3.tar.gz

News

License

delatt is copyright © 2003 by Daniel Born (dan__NOSPAM__@danborn.net) and is released under the GNU General Public License Version 2.

Author