iMS sieve filter problem

I would like our users to be able to receive a SMS alert if an incoming e-mail's subject fits a message filter (sieve in iDA). Since sieve filters can only redirect a message to another e-mail address (but not pass the message through a program), I figure the easiest way is to redirect the message to something like sms-gateway@xxx.com and let that special account parse the message and forward the message to the SMS mobile carrier.

My current problem is that "redirect" in sieve simply forwards the message without leaving a copy for the user. Is there a way I can get sieve to "redirect" _PLUS_ leaving a copy of the email?

Many thanks!

Dave

[678 byte] By [708868] at [2007-11-25 7:08:40]
# 1

I recently solved a similar problem. A user wanted a copy of a message put into a folder. I created a "copyto" filter template. The templates are in

/../nda/nda/default/en/templates/enduser/ssr. The Admin guide says you shouldn't use the default directory for custumizations, but I cheated.:-)

It works using the "keep" command/keyword, see RFC3028. Here's the "copyto" template:

#RULE: $Template="Copy To Folder"

require "fileinto";

if header :contains # Q1

#Q2

{

keep

;

fileinto # Q3

;

}

#PRE: "This rule copies messages into a folder."

#PRE: "Choose the header line to search on"

#PRE: "And specify the phrase you wish to search for"

#Q1: header "If the header line"

#Q2: value "contains the phrase"

#Q3: folder "Then copy into the folder"

708715 at 2007-6-29 17:39:44 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

Have you tried putting 2 e-mail addresses in the redirect statement?

Example:

redirect: "address1@domain.com, address2@domain.com"

I believe the MTA should parse this correctly and treat it as 2 addresses.

Or create a mail list for each user that forwards to the users real account as well as the SMS account. Then make the redirect point to the list.

-Chris

709463 at 2007-6-29 17:39:44 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...