Quantcast
Channel: iRedMail — iRedMail Support
Viewing all articles
Browse latest Browse all 43483

iRedMail sieve - add flags

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I want to add some 'custom' flags and found that setflag does not work unless addflag is used first
So I used this at top of sieve config file
===
require ["fileinto", "reject", "envelope", "variables", "imap4flags", "vacation", "regex", "relational", "comparator-i;ascii-numeric"];

addflag "MyFlags" "\\iRedSieve";

if address :is "From" "[XXXX|xxxx]@\\d+\.club$" {
        setflag "MyFlags" "\\iRedSieve";
}

===

1.  Do I have to leave addflag after initial use?

2.  If I leave it in, will this lead to multiple instances of the custom flag ?

3.  Where are these custom flags stored ? How can I view list of flags in MyFlags ?  Or in default list ?


Viewing all articles
Browse latest Browse all 43483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>