Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Alternative Modules
Hello,

we are currently using the Mail::Audit module to resend piped incoming email
s to
a particular domain then sends it to various aliases emails from a database.
 I'm
trying locate a similar module but doesn't put alot of the header garbage in
to
the body of the email. Then Mail::Audit doesn't really remove certain header
s
from the actual body of the email.

Is there a module that works similar as the Mail::Audit, but extracts the ac
tual
body content of the email without some of the headers included in it??

TIA
--
Mike(mickalo)Blezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://thunder-rain.com/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Report this thread to moderator Post Follow-up to this message
Old Post
Mike Blezien
04-27-05 08:55 AM


Re: Alternative Modules
Mike Blezien wrote:
> Hello,
>
> we are currently using the Mail::Audit module to resend piped incoming
> emails to a particular domain then sends it to various aliases emails
> from a database. I'm trying locate a similar module but doesn't put alot
> of the header garbage into the body of the email. Then Mail::Audit
> doesn't really remove certain headers from the actual body of the email.
>
> Is there a module that works similar as the Mail::Audit, but extracts
> the actual body content of the email without some of the headers
> included in it??
>
> TIA

This is a rather confusing description of what you are doing, if you can
clean it up a bit we might be able to give you a better solution.

Although it has a very steep learning curve, there isn't a lot that the
Mail::Box suite can't do.  If I wanted to do anything remotely complex
with mail (and I have) I would use it hands down.  It has incredible
documentation, though that too has a little bit of a learning curve :-).

http://perl.overmeer.net/mailbox/

There is also a mailing list...

http://danconia.org

Report this thread to moderator Post Follow-up to this message
Old Post
Wiggins d'Anconia
04-27-05 08:55 PM


Re: Alternative Modules
Wiggins d'Anconia wrote:
> Mike Blezien wrote:
> 
>
>
> This is a rather confusing description of what you are doing, if you can
>  clean it up a bit we might be able to give you a better solution.
>
> Although it has a very steep learning curve, there isn't a lot that the
> Mail::Box suite can't do.  If I wanted to do anything remotely complex
> with mail (and I have) I would use it hands down.  It has incredible
> documentation, though that too has a little bit of a learning curve :-).
>
> http://perl.overmeer.net/mailbox/

The Mail::Box is bit more then needed for this type of application. The
Mail::Audit module works nicely, but when extracting the "body" of the email
messages, there's alot of this at the top of messages with HTML formatted
messages which we don't want in the email body:

# remove this content from body
------=_Part_51_25736473.1114566301654
Content-Type: text/html
Content-Transfer-Encoding: 7bit

..... then the content of the email body.
...... end of email message


snip of our code:
######################
my $mail         = Mail::Audit->new(log => "$logfile");
my $fromaddress  = $mail->from();
my $fwdto        = $mail->to();
my $subject      = $mail->subject();
my $body         = $mail->body();
my @mailbody     = defined($body) ? @{$body} : "No Message Received";

I've tried various regrex to remove unwanted strings in the @mailbody before
sending but it doesn't work. So I was wondering if there is a way to remove
unwanted headers like this.

The "$fwdto" is an aliases which is checked and extracted from a MySQL datab
ase
and the "real emailaddress" is located, associated with the aliases in the d
b,
and then sent to the real address.

Hope this explains it better.

TIA,
--
Mike(mickalo)Blezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://thunder-rain.com/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Report this thread to moderator Post Follow-up to this message
Old Post
Mike Blezien
04-27-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL CGI Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:35 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.