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

Re: using courier-imap's OUTBOX feature and sendmail="cat > /dev/null"



On Sunday, December 18 at 10:16 PM, quoth Louis-David Mitterrand:
I tried setting sendmail="/bin/cat > /dev/null" but get this error:

        Error sending message, child exited 1 ().

        cat: invalid option -- B
        Try `cat --help' for more information.

Is there another way of disabling "sendmail"?

Is there a catch or better way in what I am trying to do?

The catch is that mutt appends arguments to the string you specify in $sendmail. One way to do it is like so:

   set sendmail="/bin/echo >/dev/null"

But I haven't tested that. If mutt complains or seems to freeze while sending (entirely possible) you may want to write a small shell script, like so (named "~/.nullmail.sh"):

   #!/bin/sh
   /bin/cat - >/dev/null

And then:

   set sendmail="~/.nullmail.sh"

That way it ignores whatever arguments mutt appends to it.

But the obvious to me would be:

   set sendmail=""

Does that not work?

~Kyle
--
Scientists have shown that the moon is moving away at a tiny, although measurable distance from earth every year. If you do the math, you can calculate that 65 million years ago, the moon was orbiting at a distance of about 35 feet from the earth's surface. This would explain the death of the dinosaurs . . . the tallest ones, anyway.
                                                             -- Unknown

Attachment: pgpih6AW2nQ45.pgp
Description: PGP signature