Subject: | Use of uninitialized value in split at line 2629. |
Date: | Sat, 25 Mar 2006 15:18:14 -0500 |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
From: | Robert Terzi <rct [...] r-t.org> |
Version: 2.2.9
Very minor annoyance: when calling parse_headers I get the follow
warning when the IMAP fetch fails:
Use of uninitialized value in split at .../Mail/IMAPClient.pm line 2629
This is because parse_headers doesn't check that the fetch worked before
using @raw in the for on line 2629.
The reason the parse_headers is failing is because UW-IMAP is rejecting
the command line as too long (it's got an 8000 byte limit on command
line length. Even after using Range the string winds up being > 8000
bytes.
Sending: 37 UID SEARCH ALL
Sent 19 bytes
Read: * SEARCH 1 2 3 4 5 6 7 8 [...SNIP...]
Msg Range Length: 12670 List length: 49165 # my log msg
Sending: 18 UID FETCH 1:3,7,10:16,18:22, [...SNIP...] ,19127:19651
body.peek[header]
Sent 12703 bytes
Read: 18 BAD Command line too long
Use of uninitialized value in split at
/usr/lib/perl5/vendor_perl/5.8.7/Mail/IMAPClient.pm line 2629.
Thanks very much for Mail::IMAPClient it is very useful,
--Rob
-----------------------------------------------------------------
Here's some of the version/env info as requested but I don't think
you need it for this minor bug
Server: UW-IMAP on linux (x86)
Client: perl 5.8.7 on linux (x86)
# uname -a
Linux d6.r-t.org 2.6.12-12mdk #1 Fri Sep 9 18:15:22 CEST 2005 i686
Intel(R) Pentium(R) 4 CPU 2.40GHz unknown GNU/Linux
Read: * OK [CAPABILITY IMAP4 IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN]
s1.r-t.org IMAP4rev1 2000.287mdk at Sat, 25 Mar 2006 14:36:55 -05
00 (EST)
Connect: Received this from readline: 0/OUTPUT/* OK [CAPABILITY IMAP4
IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN] s1.r-t.org IMAP4rev1 200
0.287mdk at Sat, 25 Mar 2006 14:36:55 -0500 (EST)
Sending: 1 CAPABILITY
Sent 14 bytes
Read: * CAPABILITY IMAP4 IMAP4REV1 NAMESPACE IDLE MAILBOX-REFERRALS SCAN
SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND LO
GIN-REFERRALS AUTH=LOGIN
1 OK CAPABILITY completed
Sending: 2 CAPABILITY
Sent 14 bytes
Read: * CAPABILITY IMAP4 IMAP4REV1 NAMESPACE IDLE MAILBOX-REFERRALS SCAN
SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND LO
GIN-REFERRALS AUTH=LOGIN
2 OK CAPABILITY completed
# perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
Platform:
osname=linux, osvers=2.6.3-28mdk-i686-up-4gb, archname=i386-linux
uname='linux mercury.mandriva.com 2.6.3-28mdk-i686-up-4gb #1 thu
sep 29 11:26:42 mdt 2005 i686 intel(r) pentium(r) 4 cpu 3.00ghz unknown
gnulinux '
config_args='-des -Dinc_version_list=5.8.6 5.8.6/i386-linux 5.8.5
5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1 5.6.0 -Darchname=i386-linux -Dcc=gcc
-Doptimize=-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer
-march=i586 -mtune=pentiumpro -Dprefix=/usr -Dvendorprefix=/usr
-Dsiteprefix=/usr -Dsitebin=/usr/local/bin
-Dsiteman1dir=/usr/local/share/man/man1
-Dsiteman3dir=/usr/local/share/man/man3 -Dman3ext=3pm -Dcf_by=Mandriva
-Dmyhostname=localhost -Dperladmin=root@localhost
-Dcf_email=root@localhost -Dd_dosuid -Ud_csh -Duseshrplib
-Accflags=-DPERL_DISABLE_PMC'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-DPERL_DISABLE_PMC -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm',
optimize='-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer
-march=i586 -mtune=pentiumpro',
cppflags='-DPERL_DISABLE_PMC -fno-strict-aliasing -pipe
-I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='4.0.1 (4.0.1-5mdk for Mandriva Linux
release 2006.0)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.5.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.8.7/i386-linux/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Locally applied patches:
Mandriva Linux patches (cf the source RPM)
Built under linux
Compiled at Dec 6 2005 10:20:01
@INC:
/usr/lib/perl5/5.8.7/i386-linux
/usr/lib/perl5/5.8.7
/usr/lib/perl5/site_perl/5.8.7/i386-linux
/usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux
/usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl
.