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
-
Feb 1, 2005: I'm planning a few changes for delatt. It's been a while since I've done any development on it. It fulfills my needs most of the time, but there are some things I'd like to add or change, and other users have made similar requests:
- Switch to using the Perl MIME modules, rather than doing my own MIME parsing. No need to reinvent that wheel.
- Add support for recursive processing. I.e., forwarded messages where the forwarded message has attachments, and then is attached to another message. File attachments in those nested messages should be stripped. The MIME libraries in Perl will probably help here.
- Use temporary files, rather than storing everything in RAM. I knew this wouldn't scale well when I wrote it, but that wasn't a concern at the time.
- Nov 13, 2003: Version 1.1.3. Minor stuff.
- Nov 9, 2003: Version 1.1.2 released. Bug fix to take slashes out of attachment file names.
- Nov 8, 2003: Version 1.1.1 released. Made a minor bug fix to handle messages with improper MIME formatting.
License
delatt is copyright © 2003 by
Daniel Born (
)
and is released under
the GNU General Public
License Version 2.
Author
- Dan Born
- email:

- web page: http://danborn.net/