Quoting Barry (barry(_at_)gslink(_dot_)com):
I want to save attachments over a certain size, say 2mb's, to a special
folder in /tmp. In place of this, i want the users recieving this mail to
get a mail from the system informing them that they recieved a large mail
and that they should call the office to arrange something.
What do you guys think? It should be pretty trivial to set up, but I was
hesitant to do something, the way that procmail is, for the whole system
without checking on this list first...
I don't see this as being "pretty trivial" at all. What formats
will you handle? How will you seperate the message from the
attachment? If you assume everything is in RFC compliant mime/
multipart it isn't too bad, but that isn't a very safe assumption.
Some people use binhex or uuencode with no mime headers at all,
others use incorrect headers. If you disregard mime entirely,
then you're making the tacit assumption that all messages are
text/plain. If you stick your message in front of a multipart,
there's no guarantee that the user's MUA will display it. If
the message is in some other format you could be corrupting
it, or it may have a strange character set that obfuscates your
Michael Stone, Sysadmin, ITRI
PGP: finger, or email with "Subject: get pgp key"