HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/thread-self/root/usr/libexec/dovecot/sieve/report-ham.sieve
require ["copy", "imapsieve", "fileinto", "environment", "vnd.dovecot.execute", "variables", "regex", "editheader"];

if environment :matches "imap.mailbox" "*" {
  set "mailbox" "${1}";
}

if string "${mailbox}" "INBOX.Trash" {
  stop;
}

if environment :matches "imap.user" "*" {
  set "username" "${1}";
}

if header :regex "Subject"
	"^\\[SPAM\\] \\([0-9\\.]+\\) (.*)$" {
	addheader "Subject" "${1}";
}

if execute :pipe "learn-ham.sh" [ "${email}" ] {
	fileinto "${mailbox}";
	stop;
}