You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ketanbparekh <ta...@yahoo.com> on 2007/04/16 15:56:14 UTC

infinite loop mails sent on reject by sieve script

Hi All,

I am using james-2.3.0 server integrated with jsieve. I have written a sieve
script which rejects a mail if the subject contains
"*make*money*fast*,*university*dipl*mas*". 

When I send a mail from user1 to user2, user2 first recieves the mail and
then reject mail is send to the user. I am then getting reject mails every
few seconds and it goes on until I comment the reject statement and restart
the james server.

Can anybody provide me solution how can this infinite mailing be stopped.


here's my sieve script which I am using.


#
# Example Sieve Filter
# Declare any optional features or extension used by the script
#
require["fileinto","redirect","reject","discard"];
#

# Handle messages from known mailing lists
# Move messages from IETF filter discussion list to filter folder
#

#
# Try and catch unsolicited email.  If a message is not to me,
# or it contains a subject known to be spam, file it away.
#
#if anyof (not address :all :contains
#              ["To", "Cc", "Bcc"] "user1@a3-ketanp.com",
#             header :matches "subject"
#               ["*make*money*fast*", "*university*dipl*mas*"])
#        {
#        # If message header does not contain my address,
#        # it's from a list.
#        fileinto "spam1";   # move to "spam" folder
#        }
#if header :contains ["To"] ["user3@a3-ketanp.com"]
#{

#	discard;
	#redirect "user2@a3-ketanp.com";	
	#stop;
       #reject "We just wont to block you for testing purposes:";              
# keep in "In" folder
#}

#if header :matches "Subject" ["*money*","*Viagra*"]{

	#reject "Don't send Spam Mails.";
#	stop;
#}


if header :contains "Subject" ["*make*money*fast*","*university*dipl*mas*"]
{
	
	reject "This is a test mail to see how Rejects work.";
}



Thanks,
Ketan.B,Parekh

-- 
View this message in context: http://www.nabble.com/infinite-loop-mails-sent-on-reject-by-sieve-script-tf3584592.html#a10016536
Sent from the James - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org