|
SHASCO Novice
Joined: 29 May 2001 Posts: 48 Location: USA
|
Posted: Fri Jan 04, 2002 2:07 pm
trigger help Achaea mudd |
In Achaea we get messages, they can come from other people or from the system. Here is an example of a system message in the short view:
#468 (system): 12/31/10:51 "A skullcap flower has decayed to dust
What I am trying to achieve is a trigger that will be generic enough to delete any messages that I receive like this regardless of date time. The syntax to delete the message is delmsg 468. I would need to capture the 468 after the # sign and I think that is what is causing me greif. Since the # is a special character in Zmud. All messages increase numerically in Achaea. So the next message would be #469, etc. I could be incorrect and welcome any suggestions.
Thank you. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Jan 04, 2002 4:12 pm |
If it's just the system messages you want to delete, this should do it:
#TR {^~#(%d) ~(system~): } {delmsg %1}
LightBulb
All scripts untested unless otherwise noted |
|
|
|
|
|