Subject: | intermittent migration function error |
Date: | Mon, 05 Jan 2009 20:23:24 -0800 |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
From: | Dan <dan [...] rx.sharpr.net> |
I'm having a problem Migrating mail, below is the info you request,
please let me know if you need more.
Perl v5.8.8 built for i386-linux-thread-multi
Mail::IMAPClient 3.12
courier-imap 3.0.8-cos5.build83071218.19
CentoOS Linux example.com 2.6.9-023stab044.4-smp #1 SMP Thu May 24
17:20:37 MSD 2007 i686 i686 i386 GNU/Linux
What are you doing?
I am migrating a message from one IMAP mailbox to another.
What happens?
Most all migrations work fine with this script. only some fail,
I think it might have to do with dashes in the email address, but I
really dont know, I wonder if its some sort of
badly formatted mail message. I hope you can identify without much effort.
When the migrate line of code executes (below) these errors are displayed...
and then the script hangs until I kill or ctrl-C.
[Mon Jan 5 20:40:31 2009] userlist.pl: Use of uninitialized value in
string eq at /usr/lib/perl5/site_perl/5.8.8/Mail/IMAPClient.pm line 790.
[Mon Jan 5 20:40:31 2009] userlist.pl: Use of uninitialized value in
pattern match (m//) at /usr/lib/perl5/site_perl/5.8.8/Mail/IMAPClient.pm
line 790.
Have you found a work-around?
No.
Line of code.... (the code works nearly all the time)
my $result = $hold->migrate($imap2, $h_uid, undef )
or die $log = "error line: 255\n";
$hold = Mail::IMAPClient->new
$imap2 = Mail::IMAPClient->new
$h_uid = message UID - the UID parameter is true
Debug:
Sending: 2 SELECT inbox
Sent 16 bytes
Read: * FLAGS ($MDNSent NonJunk $Forwarded \Draft \Answered \Flagged
\Deleted \Seen \Recent)
* OK [PERMANENTFLAGS ($MDNSent NonJunk $Forwarded \* \Draft
\Answered \Flagged \Deleted \Seen)] Limited
* 119 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1189036698] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
2 OK [READ-WRITE] Ok
Sending: 3 STATUS INBOX (MESSAGES)
Sent 27 bytes
Read: * STATUS "INBOX" (MESSAGES 119)
3 OK STATUS Completed.
Migrating the following msgs from INBOX: 66104
Migrating message 66104 in folder INBOX
Sending: 3 UID FETCH 66104 (RFC822.SIZE)
Sent 33 bytes
Read: * 66 FETCH (UID 66104 RFC822.SIZE 11212)
3 OK FETCH completed.
Sending: 4 UID FETCH 66104 INTERNALDATE
Sent 32 bytes
Read: * 66 FETCH (UID 66104 INTERNALDATE "05-Jan-2009 08:12:59 -0700")
4 OK FETCH completed.
Sending: 5 UID FETCH 66104 FLAGS
Sent 25 bytes
Read: * 66 FETCH (UID 66104 FLAGS (\Seen NonJunk))
5 OK FETCH completed.
flags: line = '5 UID FETCH 66104 FLAGS'
flags: line = '* 66 FETCH (UID 66104 FLAGS (\Seen NonJunk))
'
flags: line = '5 OK FETCH completed.
'
Sending: 7 CAPABILITY
Sent 14 bytes
Read: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
7 OK CAPABILITY completed
About to issue APPEND command to peer for msg 66104
Sending: 4 APPEND INBOX (\Seen NonJunk) "05-Jan-2009 08:12:59 -0700" {11212}
Sent 69 bytes
INBOX: received + OK
from server
[Mon Jan 5 20:40:31 2009] userlist.pl: Use of uninitialized value in
string eq at /usr/lib/perl5/site_perl/5.8.8/Mail/IMAPClient.pm line 790.
[Mon Jan 5 20:40:31 2009] userlist.pl: Use of uninitialized value in
pattern match (m//) at /usr/lib/perl5/site_perl/5.8.8/Mail/IMAPClient.pm
line 790.
INBOX: received * BYE Disconnected for inactivity.
from server
INBOX: received * BYE [ALERT] Fatal error: INTERNAL ERROR: Keyword
hashtable memory corruption.: Input/output error
from server