On Fri, Jun 06, 2003 at 03:44:47AM -0000, rajeev sahni wrote:
> How can I list the folders ? Can you tell me the key word for
> that
Here is the IMAP transaction. Programming it left as an exercise.
You might want to check out Net::IMAP on CPAN.
* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc. See
COPYING for distribution information.
a LOGIN xxxxxx xxxxxx
a OK LOGIN Ok.
b NAMESPACE
* NAMESPACE (("INBOX." ".")) NIL (("shared." "."))
b OK NAMESPACE completed.
c LIST "" "*"
* LIST (\HasNoChildren) "." "INBOX.Sent.2003.05-May"
* LIST (\HasNoChildren) "." "INBOX.Sent.2003.04-Apr"
* LIST (\HasNoChildren) "." "INBOX.Sent.2003.03-Mar"
* LIST (\HasNoChildren) "." "INBOX.spam"
* LIST (\HasNoChildren) "." "INBOX.Sent.2003.02-Feb"
* LIST (\HasNoChildren) "." "INBOX.Test"
* LIST (\HasNoChildren) "." "INBOX.Sent.2003.01-Jan"
* LIST (\HasNoChildren) "." "INBOX.Sent.2002.12-Dec"
* LIST (\HasNoChildren) "." "INBOX.Sent.2002.11-Nov"
* LIST (\HasNoChildren) "." "INBOX.alerts"
* LIST (\HasNoChildren) "." "INBOX.Sent.2002.10-Oct"
* LIST (\HasNoChildren) "." "INBOX.Saved"
* LIST (\HasNoChildren) "." "INBOX.Sent.2002.09-Sep"
* LIST (\HasChildren) "." "INBOX.Sent"
* LIST (\HasNoChildren) "." "INBOX.Drafts"
* LIST (\HasNoChildren) "." "INBOX.Trash"
* LIST (\Marked \HasChildren) "." "INBOX"
* LIST (\Noselect \HasChildren) "." "INBOX.Sent.2003"
* LIST (\Noselect \HasChildren) "." "INBOX.Sent.2002"
c OK LIST completed
d LOGOUT
* BYE Courier-IMAP server shutting down
d OK LOGOUT completed
Binand
--
Russian Roulette with Unix:
while :; do kill $RANDOM &> /dev/null && break || sleep 1; done
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help