Mailbox-Alert
Mailbox-Alert copied to clipboard
Feature request: Add option to publish all commandline arguments as json or similar datagram.
When integrating using commandline, it would be nice to have an option of exposing all commandline arguments as a single json string.
Currently, I call my script as:
notify.py "{\"server\": \"%server\",\"originalfolder\": \"%originalfolder\",\"folder\": \"%folder\",\"countall\": \"%countall\",\"count\": \"%count\",\"subject\": \"%subject\",\"senderaddress\": \"%senderaddress\",\"sendername\": \"%sendername\",\"sender\": \"%sender\",\"recipientaddress\": \"%recipientaddress\",\"recipientname\": \"%recipientname\",\"recipient\": \"%recipient\",\"charset\": \"%charset\",\"messagebytes\": \"%messagebytes\",\"messagesize\": \"%messagesize\",\"date\": \"%date\",\"time\": \"%time\",\"enter\": \"%enter\",\"msg_uri\": \"%msg_uri\",\"msg_preview\": \"%msg_preview\"}"
Would be nice, to simply check a box and have all arguments auto added as the last argument of the specified command, or call notify.py %json