[imapfilter-devel] Conditional Actions in config.lua
Cyrille Lefevre
cyrille.lefevre-lists at laposte.net
Sat Apr 17 01:21:19 EEST 2010
Le 16/04/2010 01:32, Paul a écrit :
> if results:copy_messages(account2.incoming)
> results:move_messages(archive)
> end
Hi,
looking at /usr/local/share/imapfilter/mailbox.lua, it seems that
move_messages works this way, so, such construction isn't needed.
however, looking at /usr/local/share/imapfilter/set.lua, a cumulative
(well or'ed) rc seems to be missing from the Set.* functions ?
a sort of :
function Set.copy_messages(self, dest)
_check_required(dest, 'table')
local rc = 0
for mbox in pairs(_extract_mailboxes(self)) do
rc += mbox.copy_messages(mbox, dest, self)
# does |= works ?
end
return rc
end
Cordialement,
Cyrille Lefevre
--
mailto:Cyrille.Lefevre-lists at laposte.net
More information about the Imapfilter-devel
mailing list