Hi all,

I have created two users user1 and user2 through telnet and configured
outlook for user1 to send mails to the same user.

I am using james-2.3.0 with jsieve.  when i send  a mail it reaches my inbox
but it is not filtering it as per sieve file and give me the following
error.

I am getting following error when i send  a mail from outlook. 

But i am getting the flolowing error 

Class to be loaded isrequire  class org.apache.jsieve.commands.Require 
Class to be loaded isfileinto  class
org.apache.jsieve.commands.optional.FileInto 
Class to be loaded isreject  class
org.apache.jsieve.commands.optional.Reject 
Class to be loaded isif  class org.apache.jsieve.commands.If 
Class to be loaded iselsif  class org.apache.jsieve.commands.Elsif 
Class to be loaded iselsif  class org.apache.jsieve.commands.Elsif 
Class to be loaded iselse  class org.apache.jsieve.commands.Else 
Class to be loaded isfileinto  class
org.apache.jsieve.commands.optional.FileInto 
Class to be loaded isif  class org.apache.jsieve.commands.If 

Evaluated nodes : 

Apr 11, 2007 9:10:34 PM org.apache.jsieve.SieveFactory evaluate 
SEVERE: Evaluation failed. Reason: null 
exception! javax.mail.MessagingException: Exception evaluating Sieve script; 
  nested exception is: 
        org.apache.jsieve.SieveException 

It seems there is some problem with this sieve file. 

my content of filter.sieve is 


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

# Handle messages from known mailing lists 
# Move messages from IETF filter discussion list to filter folder 
# 
if header:is "Sender" "[EMAIL PROTECTED]" 
        { 
        fileinto "filter";  # move to "filter" folder 
        } 
# 
# Keep all messages to or from people in my company 
# 
elsif address :domain :is ["From", "To"] "[EMAIL PROTECTED]" 
        { 
        keep;               # keep in "In" 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. 
# 
elsif anyof (not address :all :contains 
               ["To", "Cc", "Bcc"] "[EMAIL PROTECTED]", 
             header :matches "subject" 
               ["*make*money*fast*", "*university*dipl*mas*"]) 
        { 
        # If message header does not contain my address, 
        # it's from a list. 
        fileinto "spam";   # move to "spam" folder 
        } 
else 
        { 
        # Move all other (non-company) mail to "personal" 
        # folder. 
        fileinto "personal"; 
        } 

# 
# Reject any large messages (note that the four leading dots get 
# "stuffed" to three) 
# 
if size:over 1M 
        { 
        reject text: 
Please do not send me large attachments. 
Put your file on a server and send me the URL. 
Thank you. 
.... Fred 
. 
; 
        stop; 
        } 


Can anybody provide me some inputs. 

Thanks, 
Ketan.B.Parekh 

-- 
View this message in context: 
http://www.nabble.com/Getting-Exception-while-evaluating-Sieve-script-tf3561448.html#a9946472
Sent from the James - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to