KZ has asked for the wisdom of the Perl Monks concerning the following question:

i need to maintain a list of the sent mails . i am using Mail::Transport::SMTP for sending mail. the list should be such that it can be imported into pine and can be viewed from there. how can i achieve this.

Replies are listed 'Best First'.
Re: sent messages list
by markov (Scribe) on Jan 28, 2004 at 11:16 UTC

    Example:

    use Mail::Box::Manager; my $mgr = Mail::Box::Manager->new; my $msg = Mail::Message->build(...); # what yoy already have $msg->send(via => 'smtp'); # calls Mail::Transport::SMTP $mgr->appendMessage('Outbox', $msg);
      i want to maintain this list locally and not on the remote machine,as i only want to store the messages that have been sent by using my email client.Is there some specific format that is used to distinguish different messages stored in a file.
        There are a few common formats (for unixy mail programs - windows programs often use their own proprietary standards): mbox, maildir, and MH. You might take a look at Mail::LocalDelivery. Or I think the Mail::Box solution suggested will do what you want (don't use Mail::Box myself).