Deliver a piece of email - simply
version 1.200
use Email::LocalDelivery; my @delivered_to = Email::LocalDelivery->deliver($mail, @boxes);
This module delivers an email to a list of mailboxes.
Achtung! You might be better off looking at Email::Sender, and at Email::Sender::Transport::Maildir and Email::Sender::Transport::Mbox. They are heavily used and more carefully monitored.
This takes an email, as a plain string, and a list of mailboxes to deliver that mail to. It returns the list of boxes actually written to. If no boxes are given, it assumes the standard Unix mailbox. (Either $ENV{MAIL}, /var/spool/mail/you, /var/mail/you, or ~you/Maildir/)
Simon Cozens
Casey West <[email protected]>
Ricardo Signes <[email protected]>
This software is copyright (c) 2003 by Simon Cozens.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.