[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] send all email from certain From: addresses into a spam



On Sun, Jul 07, 2019 at 07:47:58AM -0400, rhkramer@gmail.com wrote:
> On Friday, July 05, 2019 02:35:46 AM Reco wrote:

[...]

> > > > if ( /^From:.*recoverym4n@enotuniq.net/:h )
> > > > 
> > > > 	to /dev/null
> > > > 
> > > > if ( /^References:.*enotuniq.net/:h )
> > > > 
> > > > 	to /dev/null

[...]

> I haven't been following this thread carefully, nor do I understand the syntax 
> used above, but couldn't the * be replaced with a specific name to limit which 
> emails get sent to /dev/null?

Nor have I, but those look suspiciously like regular expressions. In that case
you want to substitute the ".*" (with the dot). Also you might want to take
into acount that there may be some whitespace after the header label. Thus
perhaps

  /^References:\s+foo@enotunia.net/

assuming Perl flavour regexps (as I said, I followed things only cursorily).

Cheers
-- t

Attachment: signature.asc
Description: Digital signature


Reply to: