Hello Mark,
Show quoted text> Still cannot reproduce the error.
> Could you please have a look at error messages produced by your
> server.
$ perl t/01_connect
Using Mail::IMAPClient version 2.2.9 and perl version 5.8.8 (5.008008)
Read: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=PLAIN CRAM-MD5 CRAM-SHA1 IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2005
Double Precision, Inc. See COPYING for distribution information.
Connect: Received this from readline: 0/OUTPUT/* OK [CAPA
...
gives:
Oct 31 14:37:41 plume couriertcpd: Connection, ip=[::ffff:192.168.68.7]
Oct 31 14:37:41 plume couriertcpd: LOGIN: ip=[::ffff:192.168.68.7], command=LOGIN
Oct 31 14:37:41 plume couriertcpd: LOGIN: ip=[::ffff:192.168.68.7], username=MarkOv@est.belle
Oct 31 14:37:41 plume couriertcpd: LOGIN, user=MarkOv@est.belle, ip=[::ffff:192.168.68.7], protocol=IMAP
Oct 31 14:37:41 plume couriertcpd: LOGOUT, user=MarkOv@est.belle, ip=[::ffff:192.168.68.7], headers=0, body=0, rcvd=10, sent=80, time=0
$ perl -I Mail-IMAPClient-2.99_02/lib t/01_connect
Using Mail::IMAPClient version 2.99_02 and perl version 5.8.8 (5.008008)
NO Not connected. ...propagated at t/01_connect line 9.
gives
Oct 31 14:39:47 plume couriertcpd: Connection, ip=[::ffff:192.168.68.7]
Oct 31 14:39:47 plume couriertcpd: Disconnected, ip=[::ffff:192.168.68.7], time=0
Show quoted text> Please change the first two lines of your script into
> my $imap = Mail::IMAPClient->new(Debug => 1);
> Then we have a few more lines of output.
See above
The connect() fails.
Last lines of system calls :
$ strace -f perl -I Mail-IMAPClient-2.99_02/lib t/01_connect
...
open("/etc/host.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7be5000
read(3, "multi on\n", 4096) = 9
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7be5000, 4096) = 0
futex(0xb7f74ac0, FUTEX_WAKE, 2147483647) = 0
open("/etc/hosts", O_RDONLY) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1034, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7be5000
read(3, "# /etc/hosts\n\n127.0.0.1\tlocalhos"..., 4096) = 1034
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7be5000, 4096) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfbe8618) = -1 EINVAL (Invalid argument)
_llseek(3, 0, 0xbfbe8660, SEEK_CUR) = -1 ESPIPE (Illegal seek)
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfbe8618) = -1 EINVAL (Invalid argument)
_llseek(3, 0, 0xbfbe8660, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(143), sin_addr=inet_addr("192.168.68.7")}, 16) = 0
write(2, "NO Not connected.\t...propagated "..., 56NO Not connected. ...propagated at t/01_connect line 9.
) = 56
close(3) = 0
exit_group(29) = ?
Process 24455 detached
May be a problem with the IO::Socket
--
Au revoir, 02 99 64 31 77
06 20 79 76 06
Gilles Lamiral. France, Chavagne (35310) 09 52 27 33 66