On 28-Feb-2003/22:53 -0600, "Mikkel L. Ellertson" <[EMAIL PROTECTED]> wrote: >On Fri, 28 Feb 2003, Daevid Vincent wrote: > >> Anyone have a procmail recepie for those idiots who insist on sending >> large file attachments? >> >> Ideally I'd like it to reply to them a message, and then remove the >> attachment and only save the message, or else just delete the whole >> thing. Sometime people (like my sister!) send me 1MB .mov files that >> just jam up my mailbox and kill my bandwidth.
# Filter large messages/attachments into a folder and # notify the sender. 102400 = 100k SENDMAIL='/usr/sbin/sendmail' :0 * > 102400 { :0c | (formail -r -I 'Precedence: junk' \ -A 'X-Loop: [EMAIL PROTECTED]' ; \ echo -n 'Please try not to send me'; \ echo 'such large attachments.'; \ echo '-- '; \ cat $HOME/.signature \ ) | $SENDMAIL -oi -t :0 big-messages } Tony -- Anthony E. Greene <mailto:[EMAIL PROTECTED]> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux. The choice of a GNU generation <http://www.linux.org/> -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list