Read emails from a topica mailing list
my $topica = WWW::Topica->new( list => 'mylist', login => 'mylogin', password => 'mypass' ); while (my $mail = $topica->mail) { Email::LocalDelivery->deliver($mail, 'mylist.mbox'); }
This module screen scrapes the Topica website and fetches back \s-1RFC822\s0 text representations of all the mails posted to a given list. Where possible it fills in the from, to and date fields. It should be noted that in some cases it's impossible to get both the sender name and their email address.
Takes three options, the list name, your login account and your password;
You can also pass in \*(C`local\*(C' and \*(C`debug\*(C'. \*(C`debug\*(C' will print out various debugging messages whereas \*(C`local\*(C' will use local files for testing. \*(C`local\*(C' automatically sets \*(C`debug\*(C' to 1 unless debug is explicitly set to 0.
Furthermore if you pass in a \*(C`first\*(C' option the parsing will start from that offset. A \*(C`last\*(C' lets you set an upper bound.
Returns a mail at a time
Logs in automatically.
Logs in to Topica and stashes the cookie.
Called automatically by the first call to \*(C`mail\*(C'.
Builds the loader automatically.
Retrieve the html of the index page with the given offset.
Retrieve the html of a the message page with the given id.
Retrieve the html of a the reply page with the given id and eto.
Given a \*(C`WWW::Topic::Mail\*(C' object and a \*(C`WWW::Topica::Reply\*(C' object build up the text of an \s-1RFC822\s0 compliant email.
Set up the LWP::UserAgent object used to fetch pages.
Utility function for getting a page with various niceties.
Simon Wistow <[email protected]>
Copyright (c) 2004, Simon Wistow