I'm not sure what exactly qualifies as an ".eml" file, and a quick look
appears as though it's somewhat an MS Outlook format and therefore it's
questionable whether the data is being modified or not (my strongest
association is the Outlook RTF issues several years back).  I'm thinking
that regardless the .eml file is intended for a single e-mail and not a
mailbox, and I'm not sure how you're using it.  I'd suggest storing the
data in a standard mbox format or maildir setup (one or the other would
better suit the particular volume and rollback frequency you're dealing
with).   Neither one will actually modify the e-mail itself, however,
which should allow you to send the mail by just piping it back into
Mail::Sender without attaching it.  If you did want to attach it any
problems caused by modified data would be eliminated and then any other
problems would likely be solved by becoming more familiar with e-mail
and MIME formatting. 


Panda-X wrote:
> Hi list,
>
> quite new to be here. I just wondering if Perl have some quite suitable
> module to do this.
>
> I have wrote a spam filter for my office, which use Net::POP3 to get mails
> and delete() mails that don't want, the 'got()' mails is however saved at
> the other place, for 2 reasons, further study on the spam pattern and for
> rollback.
>
> My problem is on the roll back part. I stored the mail in a .eml file,
> however, I don't know how to put it back to user per request.
>
> I try to create a new mail, and attach the .eml file with Mail::Sender,
> however, the attach.eml file become raw text in the content of the email.
>
> 3 questions :
>
> 1. Is that Mail::Sender able to fit my task ?
> 2. should I consider to modify the .eml file is \r\n for each line ?
> 3. Any module is exactly design for this ?
>
> Any clues is highly appreciate =)
> Thank you very much !
>
> Panda-X
>
>   


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to