<div class="gmail_quote"><div>Would be so much simpler if &quot;mailcmd&quot; acted just like &quot;externnotify&quot; or &quot;externnotify&quot; only ran when a message was left but not when someone checks their voicemail...</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">
</div></div>That&#39;s pretty much where you&#39;re at. What gets passed to STDIN is an<br>
email, it&#39;s not set up for use by a script. Remember, what you&#39;re doing<br>
is asking Asterisk to do something out of the ordinary, hence why having<br>
an email alias is typically the best solution.<br>
<div class="im"><br></div></blockquote></div>