[NBLUG/talk] has anyone else noticed a dramatic drom in spam?
E Frank Ball
frankb at frankb.us
Thu Jul 15 15:47:17 PDT 2004
On Thu, Jul 15, 2004 at 02:26:10PM -0700, Micxz wrote:
}
} I get about 10 of these "$43757" "$12546" style subjects a day. This
} account is at sonic as well (not to blame them of course).
}
} Should I just open a shell at sonic and create a file called ".procmailrc"
} and pop that recipe in. Mail not affected by the filters are processed
} as normal?
} Or is there a better way to use procmail maybe to get that mail into the
} greymail folder?
}
} Thanks' - Micxz
The recipe I posted doesn't seem to work. The procmailrc manpage said
any egrep regular expression should work. My unix in a nutshell book
says the \{ \} only works for grep, not egrep. The man pages for grep
and egrep on linux are the same page. On my debian box:
cat /bin/egrep
#!/bin/sh
exec grep -E ${1+"$@"}
Who knows?
This should work, but I haven't gotten another message yet to test it:
:0
* ^Subject: \$[0-9][0-9][0-9][0-9][0-9]$
/dev/null
If you wanted to send it to graymail:
GRAYMAIL=`/opt/protect/bin/get_graymail_dir`
:0
* ^Subject: \$[0-9][0-9][0-9][0-9][0-9]$
$GRAYMAIL
But since this is spam for sure, why bother, it's just clutter in your
graymail box (but it might be a good way to test the procmail script).
"Mail not affected by the filters are processed as normal?"
Yes.
/FrankB
} > E Frank Ball wrote:
} >On Tue, Jul 13, 2004 at 04:45:36PM -0700, Bill Kendrick wrote:
} >}
} >} On Tue, Jul 13, 2004 at 04:33:11PM -0700, sms at sonic.net wrote:
} >} <snip>
} >} > Overall, it looks like less spam is getting to my addy,
} >} > though those $12345 ones are an exception.
} >}
} >} Sounds like time for a procmail recipe. ;^)
} >
} >Does this look right? The subject is always $ followed by
} >five digits, no trailing spaces.
} >
} >:0
} >* ^Subject: \$[0-9]\{5\}$
} >/dev/null
--
E Frank Ball frankb at frankb.us
More information about the talk
mailing list