| Author |  | 
      
        | tomashastings Newbie
 
  
 
 Joined: 25 November 2015
 Online Status: Offline
 Posts: 2
 | 
          I'm looking to move from Roundcube to AfterLogic WebMail Pro but I see two reasons not to at the moment:
           | Posted: 25 November 2015 at 12:48am | IP Logged |   |  
           | 
 |  
 1: existing sieve rules from roundcube are ignored (it says there are no filters), yet when I create a new rule and save, all my previous filters are gone
 
 2: when creating a rule I can choose between 'From', 'To', and 'Subject' there is no way to select a custom header like 'X-Spam-Level' or 'X-PHP-Originating-Script', or any other custom header for that matter.
 
 A quick look in the source of libraries/afterlogic/common/managers/sieve/classes/enum.php shows the following:
 
 
 
| Code: 
 
    
    | 
      
       | class EFilterFiels extends AEnumeration
 {
 const From = 0;
 const To = 1;
 const Subject = 2;
 const XSpam = 3;
 const XVirus = 4;
 const CustomHeader = 5;
 }
 
 |  |  |  
 I was happy to see CustomHeader there, but I can't find it anywhere else in the code.
 
 So I guess my question is, how can I set up rules with custom headers or how can I get WebMail Pro to not-ignore my existing rules (which were created by roundcube).
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          There's no simple answer here. We realize that existing filters are far from perfect, and they were never meant to live together with those created by Roundcube. There is already an improvement suggestion posted here, please feel free to post additional feature requests there. We consider those suggestions when developing the product roadmap, and the more votes the idea has, the better are chances to have the feature implemented in future releases.
           | Posted: 25 November 2015 at 1:31am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | tomashastings Newbie
 
  
 
 Joined: 25 November 2015
 Online Status: Offline
 Posts: 2
 | 
          Well luckily it's fairly easy to activate the 'Move to spam' rule...
           | Posted: 25 November 2015 at 2:49am | IP Logged |   |  
           | 
 |  
 Modify templates/views/Settings/AccountFilterPartFolder.html
 - replace: $parent.action() !== 1
 - with: [1, 4].indexOf($parent.action()) == -1
 
 Modify templates/views/Settings/AccountFilterPartDependedText.html
 - replace: $parents[1].getDependedField($data, $parent) !== 1
 - with: [1, 4].indexOf($parents[1].getDependedField($data, $parent)) == -1
 
 Add some relevant code to app.js and sieve/manager.php and bob's your uncle.
 
 Now I'm trying to figure out this funky templating system to allow me to add a 'Send a copy to X' rule.
 
 When I'm done I'll post all the code for everyone.
 
 Edit: Tada!
 
   
 
 | 
       
        | Back to Top |     | 
       
       
        |  |