Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Sieve rules too basic Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tomashastings
Newbie
Newbie


Joined: 25 November 2015
Online Status: Offline
Posts: 2
Posted: 25 November 2015 at 12:48am | IP Logged Quote tomashastings

I'm looking to move from Roundcube to AfterLogic WebMail Pro but I see two reasons not to at the moment:

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 View tomashastings's Profile Search for other posts by tomashastings
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6087
Posted: 25 November 2015 at 1:31am | IP Logged Quote Igor

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.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
tomashastings
Newbie
Newbie


Joined: 25 November 2015
Online Status: Offline
Posts: 2
Posted: 25 November 2015 at 2:49am | IP Logged Quote tomashastings

Well luckily it's fairly easy to activate the 'Move to spam' rule...

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 View tomashastings's Profile Search for other posts by tomashastings
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide