[Mailman-Users] Administering Question - large attachments

alex wetmore alex at phred.org
Tue Feb 8 19:28:14 CET 2000


From: "Steve Metcalfe" <metcas at gatwick.geco-prakla.slb.com>
> I use Mailman v 1.1 under Solaris 2.6 to manage a helpdesk.
>
> Requests for assistance are emailed by users to the mail list and then
> archived and forwarded to the helpdesk staff (subscribers to the mail
> list)
>
> In some instances large attachments are present which trigger an
> administrative request via the file size limit.
>
> I would like to be able to pass the body of the email on to the
> subscribers without the attachments but the complete incoming mail
> should be archived.
> Ideally I would like a 4th option in the
>
> 'Administrative requests for ????? mailing list '
>
> page to allow for an edit function.
>
> Before I go ahead an suggest an enhancement has anyone any suggestions
> as to how I could do this with the current version?

http://www.phred.org/~alex/stripmime.pl is a small Perl script that I've
written to strip attachments from MIME messages.  It is currently
alpha-level code, but it is running on my production mail server.  It
doesn't have a way to save mail before stripping it, but that would be
pretty easy to add.  The large commented out block towards the end is
designed to wrap long lines, but is pretty buggy (causes my perl to
coredump) and I haven't had time to work on it, so it is disabled.

Installation is simple.  In your /etc/aliases insert this before the wrapper
program.  As an example the entries for my touring list are:
touring:
"|/usr/local/bin/stripmime.pl|/usr2/local/mailman/mail/wrapper post touring"
touring-admin:           "|/usr2/local/mailman/mail/wrapper mailowner
touring"
touring-request:         "|/usr2/local/mailman/mail/wrapper mailcmd touring"
owner-touring:           touring-admin
touring-owner:           touring-admin

I would love to see something like this built into Mailman, but for now my
script is working quite well.

alex





More information about the Mailman-Users mailing list