[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Need procmail recepie for >100k attachments.
- From: "Anthony E. Greene" <agreene pobox com>
- To: redhat-list redhat com
- Subject: Re: Need procmail recepie for >100k attachments.
- Date: Sat Mar 1 03:05:17 2003
On 28-Feb-2003/22:53 -0600, "Mikkel L. Ellertson" <mikkel Infinity-ltd com> 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: your own mail address' ; \
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:Anthony%20E %20Greene%20%3Cagreene pobox com%3E>
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/>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]