home *** CD-ROM | disk | FTP | other *** search
- <!--- use the signature defined by the user or a default one --->
- <RCif RCPsignature ! null>
- <RC$append1 = RCPsignature>
- <RCelse>
- <RC$append1 = _______________________________________
- RCPname
- >
- <RCendif>
-
- <RC$append2 = _______________________________________________________________________
- PowerSig 1.1 - Powered by Sambar Webmail - http://www.sambar.com)>
- <!--- Sprintf is used to format the email address. --->
- <RC$append3 = RC@sprintf("Verified account: %s at nospam.%s", RCEusername, RCEmailname)>
-
- <!--- Format the append string --->
- <RC$append = RC@sprintf("%s\n%s\n%s\n", RC$append1, RC$append2, RC$append3)>
-
- <!--- Conditional Send example: disallow executables as attachments.
- This is provided as an example on how to disallow certain features in a webmail application.
- The "Right" scalar is used to retrieve the extension.
- Then a case-insensitive check is done, on the extension. --->
- <RC$extension = RC@right(RC$filename, 5)>
- <RCif RC@igrep(RC$extension, .exe) ! -1>
- <RCredirect RCShome/illegal.stm?error=attachment&detected=exe>
- <RCelseif RC@igrep(RC$extension, .bat) ! -1>
- <RCredirect RCShome/illegal.stm?error=attachment&detected=bat>
- <RCelseif RC@igrep(RC$extension, .com) ! -1>
- <RCredirect RCShome/illegal.stm?error=attachment&detected=com>
- <RCelse>
- <RCXmailto to=RC$to from=RC$from cc=RC$cc bcc=RC$bcc subj=RC$subj body=RC$body append=RC$append attach=RC$attach filename=RC$filename>
- <RCendif>
- <!--- Conditional redirect --->
- <RCif RC$popup = true>
- <RCredirect RCShome/closer.htm>
- <RCelse>
- <RCredirect RCShome/webmail.stm?start=RC$start>
- <RCendif>
-