On Mon, Aug 22, 2016 at 6:51 AM, Guilhem Moulin <guil...@guilhem.org> wrote:
> You don't need to set ‘$CONFIG{'mailer-send'}’ on debian, as the method
> already defaults to 'sendmail'.  An alternative is to set ‘mailer-send’
> to a custom command, as follows:
>
>     $CONFIG{'mailer-send'} = [ '/usr/bin/msmtp' ];
>
> (This didn't work in Ryan's case due to the missing quotes: caff's
> configuration file is Perl code.)

skipping setting of 'mailer-send' is OK.
However, when set it to the example you gave:

>     $CONFIG{'mailer-send'} = [ '/usr/bin/msmtp' ];

it will return the following error:

Bareword "usr" not allowed while "strict subs" in use at (eval 269)
line 1, <TTY> line 2.
Bareword "bin" not allowed while "strict subs" in use at (eval 269)
line 1, <TTY> line 2.
Bareword "msmtp" not allowed while "strict subs" in use at (eval 269)
line 1, <TTY> line 2.

>> In this way, we may add MUA support if we write an MTA wrapper.
>
> However this requires a MUA that is able to work in batch mode, taking a
> raw RFC822 body on the standard input and parsing the header to find the
> recipients.  (In particular, it shouldn't mess up with the header or
> with the MIME parts).  In other words, a sendmail-like MTA :-P

Yes, it should requires so.
So I was just mentioning a possible fix for this bug, if there's no
other better choice.

Cheers,
-- 
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 4096R/6C6ACD6417B3ACB1

Reply via email to