From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 15 Feb 2009 15:22:58 -0800 Message-ID: Subject: Re: [9fans] yahoo calendar spam From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: a12903c8-ead4-11e9-9d60-3106f5b1d025 On Sun, Feb 15, 2009 at 9:25 AM, erik quanstrom wrote: > i'm getting 100-200 connections per hour from > yahoo calendar with nigerian spam stuff. here's > the least aggressive patch fix i could think of > without modifying smtpd to also get the reply-to > address. unfortunately, this means that all mail > from yahoo calendar is blocked. but it's better > than blocking all of yahoo. > > this change is in /n/sources/contrib/quanstro/src/nupas. > > the funky eval is to allow regular expressions in the list. i assume you mean shell wildcards, which are not regular expressions in the regexp(6) sense of the word. >> dropuser=(reply.yahoo.com!calendar-invite) >> >> if(eval ~ $dom!$addr $dropuser) >> exit 'member of dropuser list' despite your comment i don't understand why you are messing with eval here. using eval is almost always wrong. ; dropuser=(reply.yahoo.com!calendar-invite) ; addr=reply.yahoo.com!calendar-invite ; if(~ $addr $dropuser) echo drop drop ; russ