[imapfilter-devel] Emails not copied

Lefteris Chatzimparmpas lefcha at hellug.gr
Wed Aug 25 22:34:31 EEST 2010


Hello,

It would probably help if you send us the debug output from imapfilter
when you run this configuration.  You can enable that by running
imafilter with the -d option.  A file named ~/.imapfilter/debug.XXXXXX
will be created each time you run it like this.  Send us the relevant
parts from that file so we can have a better view of what is
happening...


On 08/23/2010 04:10 PM, Paul wrote:
>
> Can anyone offer some insight into why this loop doesn't work, for
> mailboxes that don't support imap-idle?
>
> The "print" statement shows me that there are emails available. So the
> frommailbox must have been connected to in the previous step. The
> messages are not copied to the tomailbox and are not moved to the
> backupmailbox (which in real life is just another folder on the
> frommailbox imap account).
>
> I have the two logouts in the if in an attempt to make sure the
> frommailbox and tomailbox are reconnected at the beginning of the next
> loop.
>
> This is imapfilter 2.2.2
>
> Thanks,
>
> Paul
>
> =============
> function do_idle(frommailbox, tomailbox, backupmailbox)
> print ("Idling for ".. frommailbox._mailbox)
> while true do
> theerror = "0"
> print "Check status.."
> exists, unread, unseen = frommailbox:check_status()
> print ("error ".. theerror.." Exists: " .. exists .. " Unread:" ..
> unread .. " Unseen:" .. unseen)
> results = frommailbox:select_all()
> print "Copy.."
> results:copy_messages(tomailbox)
> print "Move.."
> results:move_messages(backupmailbox)
> print "Idle.."
> idlesupport = frommailbox:enter_idle()
> if(not idlesupport) then
> print "Idle not supported"
> os.execute("sleep 180")
> ifcore.logout(frommailbox._account._imap)
> ifcore.logout(tomailbox._account._imap)
> end
> end
> end
> ===================
> _______________________________________________
> Imapfilter-devel mailing list
> Imapfilter-devel at lists.hellug.gr
> http://lists.hellug.gr/mailman/listinfo/imapfilter-devel


More information about the Imapfilter-devel mailing list