Wydawca |
|
Release Submission Daemon |
Sergey Poznyakoff |
module-config
for mod_mailutils
When mod_mailutils
is used in the notify-event
block, the following statements can be used in module-config
to configure it:
notify-event { module mailutils; # module configuration module-config { # Notify this recipient recipient who; # Sign message with this key gpg-sign key; # Text of the notification or identifier of a defined message # template message text-or-id; } }
Determines who should receive the notification. The following values for who are allowed:
read
message
Read recipients from the ‘To’, ‘Cc’ and ‘Bcc’ headers of the message. This is the default.
admin
The system administrator, as defined in admin-address
statement
(see admin-address).
owner
Administrators of the project for which the files where uploaded. Their addresses are retrieved from the ‘project-owner’ dictionary (see dictionaries).
user
User name of the user who uploaded files.
If this statement is present, the message will be signed using the supplied GPG key. The key is looked up in the GPG home directory (see gpg-homedir).
Define the message text. The argument is either the message text
template, or a reference to a template previously defined by a
define-message
(see templates).
The following macro-variables are expanded in the message texts:
Variable | Replaced with |
---|---|
project | Project system name. |
url | URL of the distribution site. |
spool | Name of the spool (see spool). |
dir | Directory (relative to the project distribution root) where the files where uploaded. |
dest-dir | Value of the destination keyword.
|
source-dir | Value of the source keyword.
|
triplet:dist | File name of the main distribution file. |
triplet:sig | File name of the detached signature file. |
triplet:dir | File name of the directive file. |
triplet:ls:full | A full listing of the uploaded triplet8. |
triplet:ls:upload | Listing of the uploaded files (see below). |
triplet:ls:dist | Listing of the main distribution file (see below). |
triplet:ls:sig | Listing of the detached signature file (see below). |
triplet:ls:dir | Listing of the directive file (see below). |
user | System name of the user who uploaded the triplet. |
user:name | System name of the user who uploaded the triplet. |
user:real-name | Real name of the user who uploaded the triplet. |
user:email | Email of the user who uploaded the triplet. |
email:admin | Full9. email address of the systems administrator, as set by the ‘admin-address’ (see admin-address). |
email:owner | Full email address of the project administrator (owner). |
email:user | Full email address of the user who did the upload. Equivalent to ‘"${user:real-name}" <${user:email}>’. |
check:result | Code returned by external checker, in decimal. See check-result, for a detailed description. |
check:diagn | Diagnostics text returned by external checker. See verification, for a detailed description. |
Listings referred to in the table above, are similar to those
produced by the ls
command, and include information
on file permissions, ownership, size and modification date. For
example, here is a possible ${triplet:ls:full}
listing:
-rw-r--r-- gray users 2707278 2007-09-06 22:14:35 tar-1.18.tar.gz -rw-r--r-- gray users 189 2007-09-06 22:14:35 tar-1.18.tar.gz.sig -rw-r--r-- gray user 62 2007-09-06 22:14:35 tar-1.18.tar.gz.directive.asc
The example in the following subsection shows how to configure success notification for the user.
It is equivalent to:
${triplet:ls:dist} ${triplet:ls:sig} ${triplet:ls:dir}
Full here means an email address with eventual personal part
This document was generated on January 6, 2021 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.