[imapfilter-devel] delete_messages by uid
green
greenfreedom10 at gmail.com
Wed Jun 1 19:21:10 EEST 2011
I would like to deliver a group of messages locally and delete them
individually. I do not want to delete them after they all have been
delivered because then duplicates will be downloaded if it is interrupted.
What should I use after the pipe_to line?
Thanks
results = myaccount.INBOX:select_all()
for _, mesg in ipairs(results) do
mbox, uid = unpack(mesg)
text = mbox[uid]:fetch_message()
if (pipe_to('/usr/sbin/sendmail user', text) == 0) then
mesg:delete_messages()
end
end
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20110601/55ea9f9b/attachment.pgp>
More information about the Imapfilter-devel
mailing list