Michael and Moritz, Thank you very much. issue resolved. see attached example. .muttrc set sendmail="/usr/bin/msfetch-wrapper" ----------------------------------------------- #!/usr/bin/perl use strict; use warnings; my $strEmail = ""; ExecuteMTA(); open (MYMAIL, '>email.test'); print MAIL $strEmail; close (MAIL); exit 0; sub ExecuteMTA { while (<STDIN>) { $strEmail = $strEmail.$_; } } ----------------------------------------------- -- Paul Greenberg PGP key: 0xEF9DE0D8 The information contained in this e-mail, and any attachment, is confidential and is intended solely for the use of the intended recipient. Access, copying or re-use of the e-mail or any attachment, or any information contained therein, by any other person is not authorized. If you are not the intended recipient please return the e-mail to the sender and delete it from your computer. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses. On Thu, Mar 25, 2010 at 12:22:23AM +0100, Moritz Barsnick wrote: > > If I correctly understand you, I need my msfech-send to be able to capture > > the DATA portion of SMTP communications? > > Kind of "expect" pattern? I will need to emulate that kind of behaviour? > > That's incorrect. Though sendmail can do SMTP, mutt's "sendmail" > interface is totally different to mutt's "SMTP" interface. Michael > suggested you to write a script which handles the short command line he > gave in the example. The main part of the script is of course up to > you, on how to interface with OWA. Getting the details out of the > content mutt hands to this script by far the easiest part. > > I think Michael hinted that msfetch-send already seems to do the right > thing. I didn't read that much into it yet. > > Moritz
Attachment:
pgpAazFCdlDH3.pgp
Description: PGP signature