Tom Allison wrote:
I am using HTML::Mason as the basis of an IMAP webclient and was going
to see how well Mail::Box::IMAP4 and HTML::FromMail would fit into this.
I already have a number of areas where I use Mail::IMAPClient and see
that the Mail::Transporter::IMAP4 uses this module. Is there some way
that I can use the imap object(s) created in Mail::IMAPClient for
Mail::Box::IMAP4 directly or do I have to replace these calls with
Mail::Transport::IMAP4?
Gosh that was lame. Sorry I was reading the wrong fine manual...
bleah!
But I did get stuck on selecting a folder...
my $imap = Mail::IMAPClient->new(Server => $client);
$imap->User($username);
$imap->Password($password);
$imap->login;
print "IsConnected\n" if $imap->IsConnected;
print "IsAuthenticated\n" if $imap->IsAuthenticated;
my $folder = Mail::Box::IMAP4->new(imap_client => $imap,
join_connection => 1);
print $folder->name;
Normally this is thought a Mail::Box::Manager:
my $mgr = Mail::Box::Manager->new();
my $folder = $mgr->open('INBOX');
But $mgr assumes mbox format and not an IMAP connection.
|