<div dir="ltr">I doubt there is a way to do that when using the SOGo web UI.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 30 Oct 2020 at 15:57, Tom Talpey <<a href="mailto:tom@talpey.com">tom@talpey.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You might consider adding "stop;" after the fileinto, otherwise<br>
a second match might process the message again, moving it<br>
elsewhere, etc.<br>
<br>
Tom.<br>
<br>
On 10/30/2020 5:47 AM, Odhiambo Washington wrote:<br>
> <br>
> Answering to myself,<br>
> <br>
> The issue was as a result of a config parameter for SOGo:<br>
> <br>
> Changed<br>
> NGImap4ConnectionStringSeparator = "/";<br>
> <br>
> to<br>
> <br>
> NGImap4ConnectionStringSeparator = ".";<br>
> <br>
> and the problem is solved.<br>
> <br>
> <br>
> On Fri, 30 Oct 2020 at 11:43, Odhiambo Washington <<a href="mailto:odhiambo@gmail.com" target="_blank">odhiambo@gmail.com</a> <br>
> <mailto:<a href="mailto:odhiambo@gmail.com" target="_blank">odhiambo@gmail.com</a>>> wrote:<br>
> <br>
> Hello good people,<br>
> <br>
> I have dovecot- 2.3.7.2 (Ubuntu Ubuntu 20.04.1 LTS) running fine.<br>
> However, I have a hitch with mail filtering.<br>
> <br>
> Using SOGo as the webmail UI, I created a filter rule which resulted<br>
> into the rule below:<br>
> <br>
> require ["fileinto"];<br>
> if allof (address :contains "from" "odhiambo") {<br>
> fileinto "INBOX/Odhiambo";<br>
> }<br>
> <br>
> However, the test mail I sent did not end up the folder expected.<br>
> <br>
> lda.log contains this info:<br>
> Oct 30 07:39:07 lda(wash@mydomain)<2415266><tSKSHhvDm1+i2iQA9H6eMA>:<br>
> Info: sieve:<br>
> msgid=<CAAdA2WNqXpG1qmOmKp_pJPS6iQrEPeS6=vM_=<a href="mailto:o8UnvR152x54Q@mail.gmail.com" target="_blank">o8UnvR152x54Q@mail.gmail.com</a><br>
> <mailto:<a href="mailto:o8UnvR152x54Q@mail.gmail.com" target="_blank">o8UnvR152x54Q@mail.gmail.com</a>>>: stored mail into mailbox 'INBOX'<br>
> Oct 30 07:39:07 lda(wash@mydomain)<2415266><tSKSHhvDm1+i2iQA9H6eMA>:<br>
> Info: sieve: Execution of script<br>
> /var/spool/virtual/mydomain/wash/.dovecot.sieve failed, but implicit<br>
> keep was successful (user logfile<br>
> /var/spool/virtual/mydomain/wash/.dovecot.sieve.log may reveal<br>
> additional details)<br>
> <br>
> And the .dovecot.sieve.log contains:<br>
> sieve: info: started log at Oct 30 07:39:07.<br>
> error:<br>
> msgid=<CAAdA2WNqXpG1qmOmKp_pJPS6iQrEPeS6=vM_=<a href="mailto:o8UnvR152x54Q@mail.gmail.com" target="_blank">o8UnvR152x54Q@mail.gmail.com</a><br>
> <mailto:<a href="mailto:o8UnvR152x54Q@mail.gmail.com" target="_blank">o8UnvR152x54Q@mail.gmail.com</a>>>: failed to store into mailbox<br>
> 'INBOX/Odhiambo': *Invalid mailbox name: Name must not have '/'<br>
> characters.*<br>
> *<br>
> *<br>
> What might be the problem here??<br>
> <br>
> <br>
> dovecot -n output is below:<br>
> <br>
> # 2.3.7.2 (3c910f64b): /etc/dovecot/dovecot.conf<br>
> # Pigeonhole version 0.5.7.2 ()<br>
> # OS: Linux 5.4.0-29-generic x86_64 Ubuntu 20.04.1 LTS ext4<br>
> # Hostname: jp.mydomain<br>
> auth_mechanisms = plain login<br>
> auth_socket_path = /var/run/dovecot/auth-userdb<br>
> debug_log_path = /var/log/dovecot/debug.log<br>
> default_login_user = dovecot<br>
> default_vsz_limit = 2 G<br>
> disable_plaintext_auth = no<br>
> first_valid_uid = 110<br>
> hostname = gw.mydomain<br>
> info_log_path = /var/log/dovecot/info.log<br>
> log_path = /var/log/dovecot/error.log<br>
> mail_gid = Debian-exim<br>
> mail_location = maildir:/var/spool/virtual/%d/%n/Maildir:INDEX=/var/spool/virtual/indexes/%d/%1n/%n<br>
> mail_plugins = fts<br>
> mail_privileged_group = mail<br>
> mail_server_admin = postmaster@mydomain<br>
> mail_uid = Debian-exim<br>
> managesieve_notify_capability = mailto<br>
> managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext imapsieve vnd.dovecot.imapsieve<br>
> namespace inbox {<br>
> inbox = yes<br>
> location =<br>
> mailbox Drafts {<br>
> special_use = \Drafts<br>
> }<br>
> mailbox Junk {<br>
> special_use = \Junk<br>
> }<br>
> mailbox Sent {<br>
> special_use = \Sent<br>
> }<br>
> mailbox "Sent Messages" {<br>
> special_use = \Sent<br>
> }<br>
> mailbox Trash {<br>
> special_use = \Trash<br>
> }<br>
> prefix =<br>
> }<br>
> passdb {<br>
> args = /etc/dovecot/dovecot-sql.conf.ext<br>
> driver = sql<br>
> }<br>
> plugin {<br>
> fts_autoindex = yes<br>
> fts_autoindex_exclude = \Junk<br>
> fts_autoindex_exclude2 = \Trash<br>
> fts_autoindex_exclude3 = \Drafts<br>
> fts_autoindex_exclude4 = \Spam<br>
> fts_enforced = yes<br>
> imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve<br>
> imapsieve_mailbox1_causes = COPY<br>
> imapsieve_mailbox1_name = Spam<br>
> imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve<br>
> imapsieve_mailbox2_causes = COPY<br>
> imapsieve_mailbox2_from = Spam<br>
> imapsieve_mailbox2_name = *<br>
> plugin = fts managesieve sieve<br>
> sieve = file:~/sieve;active=~/.dovecot.sieve<br>
> sieve_execute_bin_dir = /usr/lib/dovecot/sieve-execute<br>
> sieve_filter_bin_dir = /usr/lib/dovecot/sieve-filter<br>
> sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment<br>
> sieve_pipe_bin_dir = /usr/lib/dovecot/sieve<br>
> sieve_plugins = sieve_imapsieve sieve_extprograms<br>
> }<br>
> postmaster_address = postmaster@mydomain<br>
> protocols = imap lmtp sieve<br>
> service auth {<br>
> unix_listener auth-client {<br>
> mode = 0600<br>
> user = Debian-exim<br>
> }<br>
> unix_listener auth-userdb {<br>
> group = Debian-exim<br>
> user = Debian-exim<br>
> }<br>
> }<br>
> service stats {<br>
> unix_listener stats-reader {<br>
> user = Debian-exim<br>
> }<br>
> unix_listener stats-writer {<br>
> user = Debian-exim<br>
> }<br>
> }<br>
> service submission-login {<br>
> inet_listener submission {<br>
> port = 2587<br>
> }<br>
> }<br>
> ssl_cert = </etc/letsencrypt/live/mydomain/fullchain.pem<br>
> ssl_client_ca_dir = /etc/ssl/certs<br>
> ssl_dh = # hidden, use -P to show it<br>
> ssl_key = # hidden, use -P to show it<br>
> userdb {<br>
> args = /etc/dovecot/dovecot-sql.conf.ext<br>
> driver = sql<br>
> }<br>
> protocol lmtp {<br>
> info_log_path = /var/log/dovecot/lmtp.log<br>
> log_path = /var/log/dovecot/lmtp-errors.log<br>
> mail_plugins = fts sieve<br>
> postmaster_address = postmaster@mydomain<br>
> }<br>
> protocol lda {<br>
> info_log_path = /var/log/dovecot/lda.log<br>
> log_path = /var/log/dovecot/lda-errors.log<br>
> mail_plugins = fts sieve<br>
> }<br>
> <br>
> <br>
> -- <br>
> Best regards,<br>
> Odhiambo WASHINGTON,<br>
> Nairobi,KE<br>
> +254 7 3200 0004/+254 7 2274 3223<br>
> "Oh, the cruft.", grep ^[^#] :-)<br>
> <br>
> <br>
> <br>
> -- <br>
> Best regards,<br>
> Odhiambo WASHINGTON,<br>
> Nairobi,KE<br>
> +254 7 3200 0004/+254 7 2274 3223<br>
> "Oh, the cruft.", grep ^[^#] :-)<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>"<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">", </span><span style="font-size:12.8px">grep ^[^#] :-)</span></div></div></div></div></div>