From: | "raphael langella" <raphael.langella [...] steria.com> |
To: | <bug-Mail-IMAPClient [...] rt.cpan.org> |
Subject: | F_GETFL and F_SETFL not defined under NT |
Date: | Tue, 17 Dec 2002 10:29:11 +0100 |
Hi,
I'm using IMAPClient 2.2.5 with perl 5.8.0 build 804 under Windows NT 4.0
SP6.0a (french version). I'm running a simple script that connects to an
Exchange 5.5 server and does a search. Here's the script :
use Mail::IMAPClient;
my $imap = Mail::IMAPClient->new(
Server => 'X',
User => 'X',
Password=> 'X',
Debug=> 1,
) or die "Cannot connect: $@";
#$imap->Fast_io(0);
$imap->Peek(1);
$imap->select('INBOX');
my @msgs = $imap->search(qq(UNANSWERED UNDELETED UNFLAGGED FROM "X" SUBJECT
"X")) or die "cannot search $@";
print join(', ', @msgs);
$imap->logout;
And here's the output :
Using Mail::IMAPClient version 2.2.5 and perl version 5.8.0 (5.008)
Mail::IMAPClient not using Fast_IO; not available on this platform at
test.pl line 5
Read: * OK La version 5.5.2653.23 (X) du serveur IMAP4rev1 Microsoft
Exchange est prête
Connect: Received this from readline: 0/OUTPUT/* OK La version 5.5.2653.23
(X) du serveur IMAP4rev1 Microsoft Exchange est prête
Sending: 1 Login "XXXXXX" XXXXXX
Sent 33 bytes
Read: 1 OK LOGIN terminée.
Sending: 2 SELECT INBOX
Sent 16 bytes
Read: * 48 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft)
* OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft)]
* OK [UNSEEN 2] Premier message non vu
* OK [UIDVALIDITY 83] Valeur UIDVALIDITY.
2 OK [READ-WRITE] SELECT terminée.
Sending: 3 UID SEARCH UNANSWERED UNDELETED UNFLAGGED FROM "X" SUBJECT "X"
Sent 105 bytes
Read: * SEARCH
3 OK SEARCH terminée.
cannot search Your vendor has not defined Fcntl macro F_GETFL, used at
e:/Perl/site/lib/Mail/IMAPClient.pm line 76.
I also tried to run it with Fast_io turned off (as it looks like it's not
available) and then here is my output :
Using Mail::IMAPClient version 2.2.5 and perl version 5.8.0 (5.008)
Mail::IMAPClient not using Fast_IO; not available on this platform at
test.pl line 5
Read: * OK La version 5.5.2653.23 (X) du serveur IMAP4rev1 Microsoft
Exchange est prête
Connect: Received this from readline: 0/OUTPUT/* OK La version 5.5.2653.23
(X) du serveur IMAP4rev1 Microsoft Exchange est prête
Sending: 1 Login "XXXXXX" XXXXXX
Sent 33 bytes
Read: 1 OK LOGIN terminée.
Your vendor has not defined Fcntl macro F_SETFL, used at
e:/Perl/site/lib/Mail/IMAPClient.pm line 90.
Is there any way to make it work under NT?
Thanks for your help.
Raphaël Langella