On Fri, 26 Aug 2016 at 19:36:31 +0900, Roger Shimizu wrote:
> 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.

Indeed I should have tried it myself, sorry :-P  The error message is
cryptic but Mail::Mailer's documentation is clear that the TYPE argument
(corresponding to caff's $CONFIG{'mailer-send'}->[0]) must be one of
‘sendmail’, ‘smtp’, ‘smtps’, ‘qmail’, or ‘testfile’.  However
Mail::Mailer doesn't validate this, and croaks with the above error when
the TYPE argument contains slash characters ‘/’.

I just modified the manpage to show how to use an alternative sendmail
binary:

    
https://anonscm.debian.org/viewvc/pgp-tools/trunk/caff/caff?r1=876&r2=875&pathrev=876

Cheers,
-- 
Guilhem.

Attachment: signature.asc
Description: PGP signature

Reply via email to