<div class="gmail_quote"><div>Would be so much simpler if "mailcmd" acted just like "externnotify" or "externnotify" 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's pretty much where you're at. What gets passed to STDIN is an<br>
email, it's not set up for use by a script. Remember, what you'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>