| Author | 
         | 
         
      
        
         
         philipnewmannz Newbie 
          
  
  Joined: 25 April 2022 Location: New Zealand
 Online Status: Offline Posts: 1
          | 
        
         
          
           | Posted: 25 April 2022 at 5:42pm | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi there,
 
 When the webmail saves the sieve file the order is:
 
 * Forward
 * Auto Reply
 * Filters
 
 Is there away to make it:
 
 * Filters
 * Auto Reply
 * Forward
 
 Reason I ask this is when an item is marked as spam it still forwards even when you've set up a filter to move it to a SPAM folder.
 
 It would be good to have the option to stop the filter once its complete so that the auto reply/forward is no longer triggered.
 
 Phil
         | 
       
       
        | Back to Top | 
         
          
          
         | 
       
       
       
        |   | 
      
        
         
         Igor AfterLogic Support 
          
 
  Joined: 24 June 2008 Location: United States
 Online Status: Offline Posts: 6168
          | 
        
         
          
           | Posted: 26 April 2022 at 1:05am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hello,
 
 The order is defined in modules/Mail/Managers/Sieve/Manager.php file:
 
 
Code: 
   
    
    
      
       $this->aSectionsOrders = array(
      'forward',
      'autoresponder',
      'filters',
      'allow_block_lists'
 ); | 
       
       | 
    
    | 
 
 
 
 Try changing it to:
 
 
Code: 
   
    
    
      
       $this->aSectionsOrders = array(
      'filters',
      'autoresponder',
      'forward',
      'allow_block_lists'
 ); | 
       
       | 
    
    | 
 
 
 
 In the future, we'll probably make this order adjustable via configuration file.
 
 --
 Regards,
 Igor, Afterlogic Support
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |