Re: [asterisk-users] Passing arguments to the 'mailcmd' option in voicemail.conf

2018-07-06 Thread Richard Mudgett
On Fri, Jul 6, 2018 at 10:57 AM, Tech Support 
wrote:

> All;
>
> I’d like to change the default command that is used to send email when
> a person has a new voicemail. I believe that’s set in voicemail.conf as the
> ‘mailcmd’ option. The default is to use the /usr/sbin/sendmail –t command.
> I wrote a quick test script to see what arguments are passed to the command
> (@ARGV), but no arguments were sent. So my question is this, how are
> arguments sent to the ‘mailcmd’ command?
>

>From the source there are no arguments, the email body is sent to the
command from stdin.
( mailcmd < temp-email-body-file ; rm -f temp-email-body-file ) &

Richard
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Passing arguments to the 'mailcmd' option in voicemail.conf

2018-07-06 Thread Tech Support
All;

I'd like to change the default command that is used to send email when a
person has a new voicemail. I believe that's set in voicemail.conf as the
'mailcmd' option. The default is to use the /usr/sbin/sendmail -t command. I
wrote a quick test script to see what arguments are passed to the command
(@ARGV), but no arguments were sent. So my question is this, how are
arguments sent to the 'mailcmd' command?

Thanks in Advance;

John V.

 

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users