Topic: iRedMail sieve - add flags
==== 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 ?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.