Can sieve-script run when saving mail in Sent folder?
Gedalya
gedalya at gedalya.net
Fri Nov 19 03:42:12 UTC 2021
On 11/18/21 19:25, Kees van Vloten wrote:
> There is no trace in the logs that it did try to run the sieve-script (can I enable specific debug logging for this?)
metric sieve {
filter = category=sieve
exporter = log
}
event_exporter log {
format = json
format_args = time-rfc3339
transport = log
}
Lines from syslog, formatted with jq and redacted:
(the last event is not emitted if the condition was not met and no action is taken)
{
"event": "sieve_runtime_script_started",
"hostname": "mail",
"start_time": "2021-11-19T03:34:29.422841Z",
"end_time": "2021-11-19T03:34:29.422867Z",
"categories": [
"service:imap",
"sieve-execute",
"sieve",
"imap",
"sieve-runtime"
],
"fields": {
"user": "gedalya at gedalya.net",
"local_ip": "x.x.x.x",
"local_port": 143,
"remote_ip": "x.x.x.x",
"remote_port": 10460,
"session": "DVTs6BvR3CjAqAkK",
"duration": 13,
"message_id": "<xxxxxxxxx at xxx.gedalya.net>",
"mail_from": "",
"rcpt_to": "",
"script_name": "imap-sent",
"script_location": "/usr/local/lib/imapsieve/imap-sent.sieve",
"binary_path": "/usr/local/lib/imapsieve/imap-sent.svbin"
}
}
{
"event": "sieve_runtime_script_finished",
"hostname": "mail",
"start_time": "2021-11-19T03:34:29.422841Z",
"end_time": "2021-11-19T03:34:29.423052Z",
"categories": [
"service:imap",
"sieve-execute",
"sieve",
"imap",
"sieve-runtime"
],
"fields": {
"user": "gedalya at gedalya.net",
"local_ip": "x.x.x.x",
"local_port": 143,
"remote_ip": "x.x.x.x",
"remote_port": 10460,
"session": "DVTs6BvR3CjAqAkK",
"duration": 197,
"message_id": "<xxxxxxxxx at xxx.gedalya.net>",
"mail_from": "",
"rcpt_to": "",
"script_name": "imap-sent",
"script_location": "/usr/local/lib/imapsieve/imap-sent.sieve",
"binary_path": "/usr/local/lib/imapsieve/imap-sent.svbin"
}
}
{
"event": "sieve_action_finished",
"hostname": "mail",
"start_time": "2021-11-19T03:34:29.423031Z",
"end_time": "2021-11-19T03:34:29.426343Z",
"categories": [
"service:imap",
"sieve-execute",
"sieve",
"imap",
"sieve-action"
],
"fields": {
"user": "gedalya at gedalya.net",
"local_ip": "x.x.x.x",
"local_port": 143,
"remote_ip": "x.x.x.x",
"remote_port": 10460,
"session": "DVTs6BvR3CjAqAkK",
"duration": 3297,
"fileinto_mailbox_name": "INBOX/test",
"fileinto_mailbox": "'INBOX/test'",
"message_id": "<xxxxxxxxx at xxx.gedalya.net>",
"mail_from": "",
"rcpt_to": "",
"action_name": "fileinto",
"script_location": "imap-sent: line 4"
}
}
More information about the dovecot
mailing list