Email::LocalDelivery::Store

Email::LocalDelivery::Store is a Perl module that can deliver mail via Email::Store.
Download

Email::LocalDelivery::Store Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Bowen Dwelle
  • Publisher web site:
  • http://search.cpan.org/~bdwelle/Email-LocalDelivery-Store-0.01/Store.pm

Email::LocalDelivery::Store Tags


Email::LocalDelivery::Store Description

Email::LocalDelivery::Store is a Perl module that can deliver mail via Email::Store. Email::LocalDelivery::Store is a Perl module that can deliver mail via Email::Store.SYNOPSIS use Email::LocalDelivery; use Email::FolderType::Register qw; register_type Store => sub { $_ =~ m/^DBI/i }; ... Email::LocalDelivery->deliver($mail, $dsn) or die "couldn't deliver to $dsn"; ...where $dsn is a full DBI DSN, including user= and password=, e.g. 'DBI:mysql:database=DATABASE;host=HOSTNAME;port=PORT;user=USER;password=PASSWORD'This module is an Email::LocalDelivery wrapper for Email::Store, which is a "framework for database-backed email storage."It allows you to easily swap in database email storage instead of Mbox or Maildir.Just register the "Store" FolderType, like this:and then call Email::LocalDelivery->deliver( $mail, $dsn )This module was created to allow Siesta to archive mail in MySQL.METHODSdeliver( $rfc822, @dsns )$rfc822 is an RFC822 formatted email message, and @dsns is a list of DBI DSN strings.Since Email::Store is instantiated with the DSN, and I really don't know what I'm doing, I had to eval 'use Email::Store $dsn' inside the deliver() method. I suspect that this will blow up if you try to pass more than one DSN, so I made it exit after the first one. Requirements: · Perl


Email::LocalDelivery::Store Related Software