Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.544.126 Times

Mail::Webmail::Yahoo 0.601

  Date Added: February 11, 2010  |  Visits: 1.078

Mail::Webmail::Yahoo

Report Broken Link
Printer Friendly Version


Product Homepage
Download (80 downloads)



Mail::Webmail::Yahoo is a Perl module that enables bulk download of yahoo.com -based webmail. SYNOPSIS use Mail::Webmail::Yahoo; $yahoo = Mail::Webmail::Yahoo->new(%options); @folders = $yahoo->get_folder_list(); @messages = $yahoo->get_mail_messages(Inbox, all); # Write messages to disk here, or do something else. This module grew out of the need to download a large archive of web mail in bulk. As of the modules creation Yahoo did not provide a simple method of performing bulk operations. This module is intended to make up for that shortcoming. METHODS $yahoo = new Mail::Webmail::Yahoo(...) Creates a new Mail::Webmail::Yahoo object. Pass parameters in key => value form, and these must include, at a minimum: username password You may also pass an optional cookie file as cookie_file => /path/to/file. $yahoo->connect(); Connects the application with the site. Really this is not necessary, but its in here for hysterical raisins. $yahoo->login(); Method which performs the login stage of connecting to the site. This method can take a while to complete since there are at least several re-directs when logging in to Yahoo. Returns 0 if already logged in, 1 if successful, otherwise sets $@ and returns undef. @headers = $yahoo->get_mail_headers($folder); ***REMOVED*** @messages = $yahoo->get_mail_messages($folder); Returns an array of message headers for the $folder folder. These are mostly in Mail::Internet format, which is nice but involves constructing them from what Yahoo provides -- which aint much. When an individual message is requested, we can get more info via turning on the headers, so this method requests each method in turn (caching for future use, unless cache_messages is turned off) and builds a Mail::Internet object from each message. You can get the raw headers from get_folder_index(). Note that for reasons of efficiency this method collects headers and the full text of the message, and this is cached to avoid having to go back to the network each time. To force a refresh, set the Snagmail objects cache to 0 with $yahoo->cache_messages(0); $yahoo->cache_headers(0); Note: There used to be a $callback parameter to this method, but since it was never used it has been removed. my $msg = $yahoo->_process_message($page, $yahoo_msg_id); Extracts and returns as a Mail::Internet object the headers and message body from the provided HTML ($page). my $msg = $yahoo->_extract_headers($page, $yahoo_msg_id); Performs the actual extraction of the message headers from the given HTML in $page. Pushes the $yahoo_msg_id into the headers as X-Yahoo-MsgId. Also adds a version header. my $ok = $yahoo->_extract_body($mhdr, $page); Extracts and adds to the Mail::Internet object in $mhdr the message body, including any attachments parsed out of $page. Returns 1 to indicate success, although no error conditions are currently checked for/ handled. $page = $yahoo->download_attachment($download_uri, $mailmsg); Downloads an attachment from the specified URI. $mailmsg is a reference to a Mail::Internet object. The downloaded attachment is added to the mailmsg via add_attachment_to_message() $yahoo->add_attachment_to_message($msg, $attachment, $filename); Adds the $attachment to $msg, adjusting Content-Type and MIME-Version as necessary. $yahoo->make_multipart_boundary() Currently does nothing useful. So far all messages have had correct types. $yahoo->get_folder_action_link($mbox, $linktype, $force); Returns and stores the action link for the given $linktype. This is a URI that will cause an action to be performed on a message set, such as DELETE or MOVE. @message_headers = $yahoo->get_folder_index($folder); Returns a list of all the messages in the specified folder. These messages are stored as URIs. Logs the user in if necessary. @messages = $yahoo->_get_message_links($page) (Private instance method) Returns the actual links (as an array) needed to pull down the messages. This method is used internally and is not intended to be used from applications, since the messages returned are not in a very friendly form. This method returns only the messages referenced on a given page, and is called from get_folder_index() to build up a complete list of all messages in a folder. @folders = $yahoo->get_folder_list(); Returns a list of folders in the account. Logs the user in if necessary. Also stores the two special folders (Trash and Bulk) so they can be emptied later. $ok = $yahoo->send($to, $subject, $body, $cc, $bcc, $flags); Attempts to send a message to the recipients listed in $to, $cc, and $bcc, with the specified subject and body text. $to,$cc, and $bcc can be scalars or arrayrefs containing lists of recipients. Logs the user in if necessary. $flags may contain any combination of the constants exported by this package. Currently, these constants are: SAVE_COPY_TO_SENT_FOLDER : saves a copy of a sent message ATTACH_SIG : attaches the senders Yahoo signature SEND_AS_HTML : sends the message in HTML format. cc and bcc come after subject and body in the parameter list (instead of with to) since it is expected that send(to, subject, body) will be more common than sending to Cc or BCc recipients - at least, this is how it is in my experience. As of this version, address-book lookups are not supported. As of this version, mail attachments are not supported. $resp = $yahoo->_get_a_page($uri, $method, $params); (Private instance method) Requests and returns a page found at the specified $uri via the specified $method. If $params (an arrayref) is present it will be formatted according to the method. If method is empty or undefined, it defaults to GET. The ordering of the parameters, while seemingly counter-intuitive, allows one of the great virtues of programming (laziness) by not requiring that the method be passed for every call. Returns the response object if no error occurs, undef on error. $current_trace_level = $yahoo->trace($new_trace_level); if $new_trace_level exists, sets the new level for tracing the operation of the object. Returns the current trace level (i.e. before setting a new one). Trace levels are: 0 no tracing output; warning messages only. > 0 informative messages ("what I am doing") > 1 URIs being fetched > 2 request response codes > 3 request parameters > 4 any other extra debugging info. > 9 request response content $yahoo->debug(...); Sends debugging messages to STDERR, appended with a newline. $yahoo->make_host($uri) or Yahoo::make_host($uri) Returns a string consisting of just the scheme, host, and port parts of the URI. The URI::URL::as_string method returns the full URI (including path) but leaves out the port number, which is why its unsuitable here..

Requirements: No special requirements
Platforms: Linux
Keyword: Folder Headers Html Libraries Mailwebmailyahoo Message Messages Method Perl Module Programming Returns Uri
Users rating: 0/10

License: Freeware Size: 28.67 KB
USER REVIEWS
More Reviews or Write Review


MAIL::WEBMAIL::YAHOO RELATED
Libraries  -  ebXML::Message 0.03
ebXML::Message is a Perl module to encapsulate an ebMS message. SYNOPSIS use ebXML::Message; # create new message my $message = ebXML::Message->new ( CPAId => http://www.you.org/cpa/123456, Action => NewPurchaseOrder, MessageId => 12,...
14.34 KB  
Libraries  -  Debug::Message 1.00
Debug::Message is a Perl module that eases the use of debug print with level, indentation and color. SYNOPSIS use Debug::Message; use Log::Dispatch; use Log::Dispatch::Screen; my $dispatcher = Log::Dispatch->new; $dispatcher->add(...
4.1 KB  
Libraries  -  HTML::CGIChecker 0.90
HTML::CGIChecker is a Perl module to detect dangerous HTML code. SYNOPSIS use HTML::CGIChecker; $feedback = One column " Arrays & variables " Dough > Hi, how are you ?...
14.34 KB  
Libraries  -  HTML::Widget 1.09
HTML::Widget is a Perl module with HTML Widget And Validation Framework. SYNOPSIS use HTML::Widget; # Create a widget my $w = HTML::Widget->new(widget)->method(get)->action(/); # Add a fieldset to contain the elements my $fs =...
67.58 KB  
Libraries  -  HTML::QuickTable 1.12
HTML::QuickTable is a Perl module to quickly create fairly complex HTML tables. SYNOPSIS use HTML::QuickTable; my $qt = HTML::QuickTable->new( table_width => 95%, # opt method 1 td => {bgcolor => gray}, # opt method 2 font_face => arial,...
14.34 KB  
Libraries  -  Net::DBus::Error 0.33.4
Net::DBus::Error is a Perl module with error details for remote method invocation. SYNOPSIS package Music::Player::UnknownFormat; use base qw(Net::DBus::Error); # Define an error type for unknown track encoding type # for a music player...
94.21 KB  
Libraries  -  HTML::Embperl 1.3.6
HTML::Embperl is a Perl module for building dynamic Websites with Perl. SYNOPSIS Embperl is a Perl extension module which gives you the power to embed Perl code directly in your HTML documents (like server-side includes for shell commands)....
358.4 KB  
Libraries  -  HTML::Latex 1.1
HTML::Latex is a Perl module that creates a Latex file from an HTML file. SYNOPSIS use HTML::Latex my $parser = new HTML::Latex($conffile); $parser->set_option(%options); $parser->add_package(@packages); $parser->ban_tag(@banned);...
48.13 KB  
Libraries  -  HTML::Widgets::DateEntry 1.5
HTML::Widgets::DateEntry is a Perl module that creates date entry widgets for HTML forms. SYNOPSIS use HTML::Widgets::DateEntry; $de = new HTML::Widgets::DateEntry( year => [date_year, $date_year], month => [date_month, $date_month], day...
4.1 KB  
Libraries  -  Debian::Package::HTML 0.1
Debian::Package::HTML is a Perl module that generates a webpage information (and Linda/Lintian checks) about a Debian binary or source package using HTML::Template SYNOPSIS use strict; use Debian::Package::HTML; my $package =...
5.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB