[imapfilter-devel] Emails not copied

Paul imapfilter at airbred.com
Thu Aug 26 02:36:12 EEST 2010


  I don't know why I didn't check that in the first place...

Here is the output:

======================
sending command (5):
10E8 LOGOUT
getting response (5):
* BYE IMAP4rev1 Server logging out
10E8 OK LOGOUT completed
getting response (5):
* OK IMAP4rev1 SmarterMail
sending command (5):
10E9 NOOP
getting response (5):
10E9 OK NOOP completed
sending command (5):
10EA CAPABILITY
getting response (5):
* CAPABILITY IMAP4 IMAP4rev1
getting response (5):
10EA OK CAPABILITY completed
sending command (5):
10EB LOGIN "loginname" *
getting response (5):
10EB OK LOGIN completed
sending command (5):
10EC STATUS "INBOX" (MESSAGES RECENT UNSEEN)
getting response (5):
* STATUS INBOX (MESSAGES 1 RECENT 1 UNSEEN 1)
getting response (5):
10EC OK STATUS completed
sending command (5):
10ED UID SEARCH ALL
getting response (5):
10ED BAD UID not allowed in Authenticated state
======================

That last error message only appears once in a google search, for a code 
snippet.

Any ideas what it means?

Paul


On 26/08/10 05:34, Lefteris Chatzimparmpas wrote:
> 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