Next: , Up: sendmail script emacs   [Contents][Index]


A.6.5.1 Customisable variables

A customisation group called sendmail-mbfl is available to configure the library.

Customisable Variable: sendmail-mbfl-program

A string representing the name of the MBFL shell script. By default set to sendmail-mbfl.sh.

Customisable Variable: sendmail-mbfl-extra-args

A list of strings representing extra arguments for the command line of sendmail-mbfl.sh. By default set to:

("--verbose" "--debug")
Customisable Variable: sendmail-mbfl-envelope-from-function

Select a function to call to acquire, from the current buffer, the envelope email address of the sender, to be used in the MAIL FROM SMTP command.

The function is invoked with no arguments and it must return a single string representing the email address. If no suitable address is found: it must raise an error. The function may be called multiple times for the same message buffer.

The selected function is used by send-mail-with-mbfl. By default it is set to sendmail-mbfl-envelope-from.

Customisable Variable: sendmail-mbfl-envelope-to-function

Select a function to call to acquire, from the current buffer, the envelope email addresses of the receivers, to be used in the RCPT TO SMTP command.

The function is invoked with no arguments and it must return a list of strings representing email addresses. If no suitable address is found: it must raise an error. The function may be called multiple times for the same message buffer.

The selected function is used by send-mail-with-mbfl. By default it is set to sendmail-mbfl-envelope-to.

Customisable Variable: sendmail-mbfl-extract-addresses-function

Select a function to call to extract a list of email addresses from an email header. It is invoked with no arguments and the buffer narrowed to the header to examine.

The function is invoked with no arguments and it must return a list of strings representing email addresses, or nil.

The selected function is used by sendmail-mbfl-envelope-from and sendmail-mbfl-envelope-to.

Customisable Variable: sendmail-mbfl-hostname-function

Select a function to call to extract, from the current buffer, the hostname of the SMTP server to be used to send the message. The result is used as search key in the selected hostinfo file.

The function is invoked with no arguments and it must return a string representing the hostname; if it is unable to determine the hostname: it must raise an error.

The selected function is used by send-mail-with-mbfl. By default it is set to sendmail-mbfl-hostname.

Customisable Variable: sendmail-mbfl-username-function

Select a function to call to extract, from the current buffer, the username with which to login to the SMTP server. The result is used as search key in the selected authinfo file.

The function is invoked with no arguments and it must return a string representing the username; if it is unable to determine the username: it must raise an error.

The selected function is used by send-mail-with-mbfl. By default it is set to sendmail-mbfl-username.

Customisable Variable: sendmail-mbfl-host-info

The pathname of the file holding informations about known SMTP servers. Reading host informations from file.

By default it is set to ~/.mbfl-hostinfo.

Customisable Variable: sendmail-mbfl-auth-info

The pathname of the file holding informations about known accounts at SMTP servers. Reading authentication credentials from file.

By default it is set to ~/.mbfl-authinfo.

Customisable Variable: sendmail-mbfl-connector

Select the external program to use to establish the TLS transport layer. Valid values are the strings: gnutls, openssl. The default is openssl because it is more likely to be installed on any system.

Customisable Variable: sendmail-mbfl-timeout

Select the timeout in seconds for reading answers from the SMTP server. The default is 5.


Next: , Up: sendmail script emacs   [Contents][Index]

This document describes version 3.0.0-devel.0 of Marcos Bash Functions Library.