manpagez: man pages & more
info bigloo
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

20.5.2 IMAP (RFC 3501)

Bigloo Mail class: imap
(class imap::mailbox
  (socket::socket read-only))
(define mbox
  (instantiate::maildir
    (label "My Remote Mailbox")
    (socket (imap-login (make-client-socket "imap.inria.fr" 993)
                        "serrano" "XXX"))))
Bigloo Mail class: &imap-parse-error
(class &imap-parse-error::&io-parse-error)
Bigloo Mail class: &imap-error
(class &imap-error::&mailbox-error)
Bigloo Mail procedure: imap-login socket user password

Log a user into an imap server. The socket must have been created first. The argument user is a string and denotes the user name. The argument password is a string too and it contains the user password. This function returns as value the socket it has received. If the operation fails the function raises a &imap-error exception.

Example:

(define mbox (imap-login (make-client-socket "imap.inria.fr" 993 :timeout 200000) "serrano" "XXX"))

(print (mailbox-folders mbox))

Bigloo Mail procedure: imap-logout socket

Closes an imap connection.

Bigloo Mail procedure: imap-capability socket

Returns the list of capabilities supported the imap server.


This document was generated on October 23, 2011 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.