Efficent method of checking for new messages

Simon Banks <[email protected]> Wed, 22 Aug 2007 17:50:20 +0100
Newsgroups gmane.mail.libetpan.user
Organization Alcatel Lucent
Message-ID <[email protected]>
Hi There,

New to the list so hello everybody..

I'm writing the backend of a Webmail system which uses libetpan for the 
IMAP4 connectivity.  However because HTTP is transaction based I can't 
keep an IMAP4 session open very long..  Can anyone suggest using the 
libetpan how I can quickly check if there are new messages to be read?.

I'm thinking that if I connect and use mailsession_message_number() and 
compare the number with the last time I preformed the action I'd be ok..

Regards
Simon

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

_______________________________________________
Libetpan-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libetpan-users
sbanks.vcf (text/x-vcard, 913 B)
begin:vcard
fn:Simon Banks
n:Banks;Simon
org:Alcatel Lucent;Professional Services
adr:Sterling Court;;LT NS UK LTD;Bracknell;READING;RG12 9GU;UK
email;internet:[email protected]
title:Staff Software Engineer
tel;work:+44-(0)-1344-827565
note;quoted-printable:This email and its attachments may be confidential and are intended solel=
	y for the use of the individual to whom it is addressed. Any views or opi=
	nions expressed are solely those of the author and do not necessarily rep=
	resent those of "Alcatel Lucent".=0D=0A=
	=0D=0A=
	If you are not the intended recipient of this email and its attachments,y=
	ou must take no action based upon them, nor must you copy or show themto=
	 anyone.=0D=0A=
	=0D=0A=
	Please contact the sender if you believe you have received this email ine=
	rror.
x-mozilla-html:TRUE
url:http://www.alcatel-lucent.com
version:2.1
end:vcard
smime.p7s (application/x-pkcs7-signature, 3.9 KB) - not displayed