Thread Erfahrungen mit IMAP? (14 answers)
Opened by renee at 2005-06-17 10:53

esskar
 2005-06-17 14:01
#37670 #37670
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
ja; ist simple; steht in der pod:

Quote
Example:

       $Socket = $imap->Socket();
       # or:
       $imap->Socket($socket_fh);

The Socket method can be used to obtain the socket handle of the current connection (say, to do I/O on the connection that is not otherwise supported by Mail::IMAPClient) or to replace the current socket with a new handle (perhaps an SSL handle, for example).

If you supply a socket handle yourself, either by doing something like:

        $imap=Mail::IMAPClient->new(Socket=>$sock, User => ... );

or by doing something like:

        $imap=Mail::IMAPClient->new(User => $user, Password => $pass, Server => $host);
        # blah blah blah
        $imap->Socket($ssl);

then it will be up to you to establish the connection AND to authenticate, either via the the login manpage method, or the fancier the authenticate manpage, or, since you know so much anyway, by just doing raw I/O against the socket until you're logged in. If you do any of this then you should also set the the State manpage parameter yourself to reflect the current state of the object (i.e. Connected, Authenticated, etc).


und den kannst du mit CPAN:IO::Socket::SSL oder sogar mit [cpan= IO-Socket-SecureSocks] IO-Socket-SecureSocks[/cpan] erstellen!\n\n

<!--EDIT|esskar|1119002492-->

View full thread Erfahrungen mit IMAP?