<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/elspy/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/elspy/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 09 Jun 2004 22:19:42 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/elspy/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>match_recipients() utility function</title><link>https://sourceforge.net/p/elspy/patches/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;From an elspy-users post by Andrew Kuchling:&lt;/p&gt;
&lt;p&gt;I've found the following function handy for checking if&lt;br /&gt;
a given recipient is&lt;br /&gt;
present in the envelope-to.  Perhaps it's a candidate&lt;br /&gt;
for the elspy library?&lt;/p&gt;
&lt;p&gt;Examples:&lt;br /&gt;
To reject all mail which is addressed to&lt;br /&gt;
spamtrap@example.com.&lt;/p&gt;
&lt;p&gt;if match_recipients(info.recipients_list,&lt;br /&gt;
'spamtrap', 'example.com'):&lt;br /&gt;
raise RejectMessage("Spam not wanted here")&lt;/p&gt;
&lt;p&gt;To allow only 'barb' and 'amk' local parts:&lt;/p&gt;
&lt;p&gt;info.recipients_list =&lt;br /&gt;
match_recipients(info.recipients_list,&lt;br /&gt;
['barb', 'amk'],&lt;br /&gt;
'example.com')&lt;/p&gt;
&lt;p&gt;--amk&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Ward</dc:creator><pubDate>Wed, 09 Jun 2004 22:19:42 -0000</pubDate><guid>https://sourceforge.net30314a839c958069b598d28be65b033cd6a49f06</guid></item></channel></rss>