[HCoop-Help] Removing large amounts of spam

John T. Settino nion at nion0.com
Sun Apr 6 15:10:47 EDT 2008


Michael Olson wrote:
> "John T. Settino" <nion at nion0.com> writes:
>
>   
>> Would "drop" be a better description? e.g. deliver to /dev/null
>>     
>
> Yep.
>
> It looks like procmail can put header values into variables, which can
> be used later on.  Here's an example of assigning those values, from
> "man procmailex":
>
>   To extract certain headers from a mail and put them into environment
>   variables you can use any of the following constructs:
>
>          SUBJECT=`formail -xSubject:`    # regular field
>          FROM=`formail -rt -xTo:`        # special case
>
> You can use these variables in regular expressions by using the
> "${VARNAME}" syntax
I'm going to have to look into this. I'll also brush up on my regexp syntax.

Quick question, when you mention "${VARNAME}" syntax, you don't actually 
mean including the quotes and curly brackets when referencing the 
variable, do you? e.g. $MSGSUBJECT and not "${MSGSUBJECT}".
Kind of stupid question but I figured I'd ask anyway.


Thanks for the help so far. :D

_______________________________________________
HCoop-Help mailing list
HCoop-Help at lists.hcoop.net
https://lists.hcoop.net/listinfo/hcoop-help




More information about the HCoop-Help mailing list