Re: disabling attachments
Daniel Liston <[email protected]> Tue, 13 May 2008 19:17:01 -0400
| Newsgroups | gmane.mail.majordomo.general |
|---|---|
| Message-ID | <[email protected]> |
No, not by default anyway. First, you should make your no attachments policy known by sending a once/month message to the list from the owner/moderator. Second, restrict posting to your list only by members of the list, or better yet, require moderator approval for postings. Violators of the policy can then be dealt with while preserving the pure ASCII content of your distributions. Third, and probably the most important way to do this is to demime or stripmime all mail coming into your list. Attachments are really just text appended to the body of your messages, with some boundaries and headers added to tell mail user agents how to deal with the message. Removing anything that is not a pattern match for "Content-Type: text/plain" is a sure fire way to kill off any attachments the message may have had. Removing contents of a message body after "Begin [octal number] [filename]" will get rid of the rest of any possible attachments. Using a moderator and restricted posting policies, the third choice is a manual process. Without a moderator, you can automate some or all of this with add-ons. http://www.phred.org/~alex/stripmime.html I can't find a working link to demime right now. Dan Liston Adam Williams wrote: > is there a way to disable attachments for some/all email lists with > majordomo? >