Re: Sending a new email with maildrop/mailbot

Sam Varshavchik <[email protected]>
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
Larry Stone writes:

> On Dec 5, 2013, at 6:49 PM, Sam Varshavchik <[email protected]> wrote:
>
> > if (/^From:.*REDACTED/ && \
> >  /^Subject:.*key subject/ && /.*key text.*/:b)
> > {
> >     cc "| (echo 'From: [email protected]'; echo 'Subject: key'; sed -n  
> '/^From:/d;/^Subject:/d;1,/^$/p';"' echo "$MATCH") | /usr/sbin/sendmail -f  
> "" [email protected]'
> > }
>
>
> Hmmm. Never even thought about building a message on the fly and just piping  
> it to sendmail. But sure, that would work. But is something missing there? I  
> know little about sed (always found other ways to do things) but where is  
> $MATCH getting defined?

The maildropfilter man page – it describes how $MATCH gets set; also  
mentions that when running an external command, maildrop's variables get  
exported as environment variables.

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk

_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQIcBAABAgAGBQJSoSZfAAoJEGs6Yr4nnb8lYOAP/RxB0Y3VR78mfsTYNxUbAFMG
ZFD/CScDRQCrl27DmQMYdrl6xAiFt7Ata1NtHbC21M/cIFHGjI+xJAD5T+1SikDo
JlR8+uwo+Y2oRVkl7RlNr1d37ASKq5tMC2uPwVRNhoWojK/L2bTT2/1Ei1BrmzZU
lGfkz39YOl/FJJtNwfL+mEAa5nOH/1OmyvyM0V651wvVamyPZOsbqQwnKh15jrCT
Ve46HOeudBhjUrsafMN1lW/3R2ms3lxHVs9BcvcmGx8aKdW0g4oEW5lXc/01yg20
ngMFR4zTmMBRneYzlKxsv9qvhFtWrQUdN/mVcsyK+YTnfKlsl7JCBp2Sc0Jb0Xw+
unMlAs6q6jeIRkVT4cukyhVbipj8P+HWs2gIfNXcbT4Y0xCzDXlXlNIdDJ4dcOHH
l+zOV5+XDQgQHp+XyJbwNbYXJGac6A+S0gPP4PV84cT+9r+t2x8tYfVlVKo/OIgQ
BwVSGAmPK2IlJyqBUW0jyicNwM56Q3TtFUlTnRqic8ZfukN+10bQ9WlyDxM5bPx8
HuqVoromnK2OtoO2rREHqWs2Y1ix9Jh89GLBYVaEs9bE/aM71aEnOg63a8F0E8r+
KesA6e1WrW48DQ9odjbO7p3qXhh4cUn17JsRtZk8XP+1yFVllyF5UVwnmjDP9o0O
TuzYVepBbjtCJdVAFQNT
=HdK6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.