FasdUAS 1.101.10 k l  SMS Alert    SMS Alert  l  l e_ This script parses email messages and prepares a SMS files for sending with SMS Server Tools.  This script parses email messages and prepares a SMS files for sending with SMS Server Tools.   l w i I .emalcpmanull@mssg o 0 themessages theMessages X l k l!" !!Extract the desired details"##6Extract the desired details $% $r&' &n() (1  subj )o 0 themessage theMessage 'o 0 thesubject theSubject%*+ *r,- ,I. .emaleauautf8utf8 .l/ /n01 01  sndr 1o 0 themessage theMessage -o 0 thesender theSender+23 2r &45 4e $6 6n $78 72!#  rcpt 8o ! 0 themessage theMessage 5o &0messagerecipientsMessageRecipients39: 9r'-;< ;n'+=> =4(+?  cobj ?m)* >o'( &0messagerecipientsMessageRecipients <o 0firstrecipientfirstRecipient:@A @r.5BC Bl.3D Dc.3EF El.1G Gn.1HI H1/1  radd Io./ 0firstrecipientfirstRecipient Fm12  TEXT Co 0 toaddress toAddressAJK Jl66KLM Ll66NO N$Create the randomly named fileOPP<Create the randomly named fileMQR Qr69ST Sm67UUVV ~/sms/ To 0 dir_prefixRWX Wr:EYZ YI:C[ .sysoexecTEXTTEXT [b:?\] \b:=^_ ^m:;``aamktemp _o;< 0 dir_prefix ]m=>bbcc tempfiles/XXXXXX Zo 0the_fileXde dlFFefg flFFhi hOutput the messageijj$Output the messagegkl kIFMm .sysoexecTEXTTEXT mbFIno nmFGppqq0echo To: 447xxxxxxxxx > ooGH 0the_filelrs rINUt .sysoexecTEXTTEXT tbNQuv umNOwwxxecho >> voOP 0the_filesyz yIVg{ .sysoexecTEXTTEXT {bVc|} |bVa~ ~bV] mVWecho From: nW\ 1X\  strq oWX 0 thesender theSender m]` >> }oab 0the_filez Ih{ .sysoexecTEXTTEXT bhw bhu bhq mhkecho To: nkp 1lp  strq okl 0 toaddress toAddress mqt >> ouv 0the_file I| .sysoexecTEXTTEXT b| b| b| m|echo Subject: n 1  strq o 0 thesubject theSubject m >> o 0the_file l l 2,Move the text message to the spool directoryXMove the text message to the spool directory I .sysoexecTEXTTEXT b b b b mmv o 0the_file m o 0 dir_prefix moutgoing/ l -' loop through the messages sent by MailN loop through the messages sent by Mail 0 themessage theMessage o 0 themessages theMessagesemalalis2NestorA[H+Mail.appX41 ApplicationsAM4!Nestor:Applications:Mail.appMail.appNestorApplications/Mail.app/ .emalcpmanull@mssg .emalcpmanull@mssg 0 themessages theMessages 0 themessages theMessages 0 themessage theMessage 0 thesubject theSubject 0 thesender theSender &0messagerecipientsMessageRecipients 0firstrecipientfirstRecipient 0 toaddress toAddress 0 dir_prefix 0the_fileU`bpw  kocl  cobj .corecnte********  subj  sndr .emaleauautf8utf8  rcpt  radd  TEXT .sysoexecTEXTTEXT  strq[l kh,EO,j EO-EEOk/EO,&EOEO%%j EO%j O%j Oa,%a%%j Oaa,%a%%j Oaa,%a%%j Oa%a%%a%j OP[OYeascr ޭ