<<< Date Index >>>     <<< Thread Index >>>

Re: Help with mutt integration



On Wed, Mar 24, 2010 at 01:15:15PM -0400, Paul Greenberg wrote:
> What if I want mutt on "y" (send) to send composed e-mail to my application?

Your choices are either to write a sendmail-compatible command line
interface I described in my previous message, or write a gateway daemon
that speaks SMTP.  Mutt has no other mechanism for sending mail.

> > Example: $sendmail -B8BITMIME -f me@xxxxxxxxxxx -- mutt-dev@xxxxxxxx
> This will not be a great fit, because I want to accomplish the task without 
> need to parse the actual message.
> Native OWA processes will take care of parsing, all I need to do is to submit 
> mutt composed e-mail.

I do not understand how piping the message to your script manually is
different.  It seems to me something really minimal like this should
work given what you've described:

#!/bin/sh
# wrapper script to ignore command line arguments
# header+body are delivered via stdin
exec msfetch-send


me

Attachment: pgpwlD4AcI0w1.pgp
Description: PGP signature