[imapfilter-devel] Patch to add check recipients

Rob Emanuele rje at shoreis.com
Tue Aug 7 04:05:51 EEST 2007


So afer setting up imapfilter I found myself using a lot of
Mailbox:contain_to + Mailbox:contain_cc so I figured I'd add a contain
recipient.

Here's a patch to add that is you'd like.

--Rob

--- imapfilter-2.0.3/mailbox.lua        2007-07-26 23:42:58.000000000
-0700
+++ imapfilter-2.0.3.rje.1/mailbox.lua  2007-08-03 15:42:51.000000000
-0700
@@ -972,6 +972,10 @@
     return Set(self.send_query(self, 'TO "' .. string .. '"'))
 end

+function Mailbox.contain_recipient(self, string)
+            return self:contain_to(string) + self:contain_cc(string)
+end
+
 function Mailbox.contain_header(self, string)
     _check_required(string, 'string')






More information about the Imapfilter-devel mailing list