Bryce Norwood - NowSMS Support
Board Administrator Username: Bryce
Post Number: 4924 Registered: 10-2002
| | Posted on Thursday, September 15, 2005 - 11:07 pm: | |
Hi, I was about to submit this to our engineering department as a feature request, when I realised that there was a way to accomplish this today without any changes to NowSMS. Instead of a single 2-way command, define two 2-way commands. Use "*@*" as the "SMS Command Prefix" for one that has a command of "mailto:@@SMSPREFIX@@", this will catch any messages that include an "@" symbol within the first portion of the message. Then, define a second command with "*" as the "SMS Command Prefix", and define a command of "mailto:@@SMSPREFIX@@@domainname.com". This will catch any messages that don't meet the another defined criteria. The order in which these commands appear in the 2-way list is not important. The way that the 2-way command logic works is that NowSMS looks for the "SMS Command Prefix" match that contains the most characters. To use your example, if you send in the following SMS "myname@domainname.com<space> ...<followed by SMS text> ", it would match both "*" and "*@*". However, "*@*" is considered the better match because it is a longer string. -bn
|