The attached patch may help to solve your problem.  But note that
with that patch applied, exim may interpret e-mail addresses which
begin with "-" as command line aguments.

So I'd suggest, as a real fix, you complain to the exim developpers
so they support "--" as  "stop option parsing here", which is the
usual Unix convention.

On 1999-08-13 13:49:38 -0400, Fairlight wrote:
> Subject: Exim vs. Mutt (Round 1)
> To: [EMAIL PROTECTED]
> Date: Fri, 13 Aug 1999 13:49:38 -0400 (EDT)
> Content-Type: text
> From: Fairlight <[EMAIL PROTECTED]>
> 
> Hello...
> 
> I installed Mutt this morning and am having a conflict with Exim, my MTA.
> 
> Basically, Exim is almost a straight-forward sendmail drop-in replacement,
> compatible with almost every standard argument.
> 
> When sending a message, I get the following:
> 
> exim abandoned: unknown, malformed, or incomplete option --
> Error sending message, child exited 1 ().
> 
> I looked in my .muttrc at the sendmail settings and tried half a dozen
> alterations to it, to no avail...same error.
> 
> Finally I took to invoking exim by hand with the same flags as the default
> sendmail entry in .muttrc ...it works with no problem by hand.  The PROBLEM
> is that mutt is somehow (someWHY) invoking sendmail/exim with the actual
> argument "--"  ...And that's what exim is puking on.  I can reproduce the
> exact error message above manually just feeding `exim --` at a shell prompt
> (or sendmail --  ...it's a symlink).
> 
> I checked roughly through the source for sendlib.c and couldn't seem to
> find any place where it would be doing this internally.  It's NOT in the
> config file I'm using...so it must be internal.  Can someone please point
> out a solution, or at least where in the source this is happening?
> 
> Advice, anyone?
> 
> TIA...
> 
> mark->
> -- 
> Fairlight->   |||        [EMAIL PROTECTED]          | Fairlight Consulting
>   __/\__      ||| "I'm talking for free...           | http://www.fairlite.com
>  <__<>__>     |||   It's a New Religion..."          | [EMAIL PROTECTED]
>     \/        ||| PGP Public Key available via finger @iglou, or Key servers
> 
--- /home/roessler/mutt/sendlib.c       Thu Jul 29 14:10:16 1999
+++ sendlib.c   Fri Aug 13 19:59:40 1999
@@ -1671,7 +1671,6 @@
     args = add_option (args, &argslen, &argsmax, "-R");
     args = add_option (args, &argslen, &argsmax, DsnReturn);
   }
-  args = add_option (args, &argslen, &argsmax, "--");
   args = add_args (args, &argslen, &argsmax, to);
   args = add_args (args, &argslen, &argsmax, cc);
   args = add_args (args, &argslen, &argsmax, bcc);

Reply via email to