Next: , Previous: , Up: Submit   [Contents][Index]


2.2 Message

The minimal message headers are:

From: sender
To: robot-address
Subject: TP-Robot canonical-name
X-Mailer: wyslij-po 3.3

Where:

sender

The email of the sender. Unless otherwise specified, it is constructed by concatenating the actual user name, a ‘@’ sign, and the host name of the local host.

This value can be set explicitly using --from (-F) command line option. When used without additional arguments, as in:

$ wyslij-po -F pl.po

this option instructs wyslij-po to extract sender name from the value of Last-Translator PO header. This is equivalent to setting from-po true in the configuration file (see from-po).

This option can also be used with an explicit argument, which specifies the email to be used as a sender address. It is important to remember that when the short option form is used, this argument must follow the option letter immediately, without any intervening whitespace. If the long option form is used, this argument must be delimited from the option name by an equals sign with no extra whitespace on either side of it. The following invocations illustrate this:

wyslij-po -Ftrans@gnu.org.ua
wyslij-po --from=trans@gnu.org.ua

This can be requested in configuration file by using from statement (see from).

robot-address

The email of the TP robot. By default it is:

robot@translationproject.org

It can be changed using --to (-t) command line option, or to configuration statement (see to).

canonical-name

The canonical name of the PO file. It is determined as described in canonical-name.

Additionally, you can require the message to be copied to any number of emails by using --cc command line option or cc configuration statement. In both cases, the argument is a string containing a comma-separated list of valid email addresses, as in:

$ wyslij-po --cc "tp-keeper@dom.ain,root@remote.org"

If you wish to make those additional addresses invisible, use the --bcc command line option (or bcc configuration statement) instead.

The --fcc option specifies the folder to store the copy of the message into. Its argument is any mailbox URL supported by Mailutils (see URL in GNU Mailutils Manual). For example, the following option will place copies of the PO files in the MH folder Mail/sent:

$ wyslij-po --fcc mh://Mail/sent

In configuration file, this is done via the fcc statement (see fcc).

The PO file contents is by default sent in compressed form. To produce it, gzip program is used (see Overview in Gzip Manual). Notice, that the gzip binary must be in your PATH, otherwise wyslij-po won’t be able to find it. You can specify the full path to the binary and/or supply any additional options by using the --gzip (--compress) command line option. For example, to use /usr/bin/gzip with the highest possible compression level, use:

$ wyslij-po --gzip "/usr/bin/gzip -c --best"

Use the compress statement to set the compression command from the configuration file (see compress).

Notice, that when setting compression command (either from command line or from configuration file), you must always include -c option in the gzip command line.


Next: , Previous: , Up: Submit   [Contents][Index]