pmg-docs/pmg-rule-macros.adoc
Maximiliano Sandoval bc08755447 fix typos in documentation
Found with typos-cli (`cargo install typos-cli`):

```
typos --exclude .git --exclude tests --exclude images \
 --exclude changelog
```

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
[S.I.: add typos-cli reference]
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2024-08-08 13:59:12 +02:00

30 lines
1.3 KiB
Plaintext

[[rule_system_macros]]
Available Macros for the Rule System
------------------------------------
It is possible to use macros inside most fields of action objects.
That way it is possible to access and include data contained in the
original mail, get envelope sender and receivers addresses or include
additional information about Viruses and Spam. Currently the
following macros are defined:
[cols="l,3d",options="header"]
|======
|Macro |Comment
|__SENDER__ |(envelope) sender mail address
|__RECEIVERS__ |(envelope) receiver mail address list
|__ADMIN__ |Email address of the administrator
|__TARGETS__ |Subset of receivers matched by the rule
|__SUBJECT__ |Subject of the message
|__MSGID__ |The message ID
|__RULE__ |Name of the matching rule
|__RULE_INFO__ |Additional information about the matching rule
|__VIRUS_INFO__ |Additional information about detected viruses
|__SPAMLEVEL__ |Computed spam level
|__SPAM_INFO__ |Additional information why message is spam
|__SENDER_IP__ |IP address of sending host
|__VERSION__ |The current software version (proxmox mail gateway)
|__FILENAME__ |Attachment file name
|__SPAMSTARS__ |A series of "*" characters where each one represents a full score (__SPAMLEVEL__) point
|======