1

Topic: Problem with fileinto :create

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====


1.6.4 PGSQL edition.

Sieve filter:
require ["body","copy","fileinto","mailbox"];
# rule:[test1]
if anyof (body :text :contains "testvar1", header :contains "to" "testvar1")
{
    redirect :copy "admin@mydomain.net";
    fileinto :create "INBOX.newfoldername";
}

Hi!
Is the action of creating a folder currently supported? (fileinto :create)
How to prepare the right filter?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Problem with fileinto :create

Just write `fileinto`, not `:create` required:

fileinto "INBOX.newfoldername"

3

Re: Problem with fileinto :create

ZhangHuangbin wrote:

Just write `fileinto`, not `:create` required:

fileinto "INBOX.newfoldername"

Thanks for the suggestions.
In your example, the message is moved to the previously created folder.
I need an action to create a folder automatically when a message arrives.

doc.dovecot.org/configuration_manual/sieve/examples/
part: Archiving a Mailinglist by Date

Using the :create argument for the fileinto command, the indicated folder is created automatically if it doesn’t exist. The :create argument is provided by the mailbox RFC 5490#section-3 extension

datatracker.ietf.org/doc/html/rfc5490.html#section-3.2

Question - is :create supported in iRedMail and how to use it?

Regards!

4

Re: Problem with fileinto :create

thats related to dovecot, not iredmail