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


A.6.5.3 Message inspection functions

Function: sendmail-mbfl-envelope-from
Function: sendmail-mbfl-envelope-from/message

sendmail-mbfl-envelope-from interprets the current buffer as an email message and searches the contents for an email address to be used as envelope sender.

It examines the headers From and Sender, in this order and it returns a single string representing the email address; if no suitable address is found: it raises an error. The address is extracted from the headers using the function selected by the customisable variable sendmail-mbfl-extract-addresses-function.

sendmail-mbfl-envelope-from/message is an interactive wrapper for sendmail-mbfl-envelope-from that prints the result to the *Message* buffer.

Function: sendmail-mbfl-envelope-to
Function: sendmail-mbfl-envelope-to/message

sendmail-mbfl-envelope-to interprets the current buffer as an email message and searches the contents for email addresses to be used as envelope receivers.

It examines the headers To, Cc and Bcc and it returns a list of strings representing email addresses; if no suitable address is found: it raises an error. The addresses are extracted from the headers using the function selected by the customisable variable sendmail-mbfl-extract-addresses-function.

sendmail-mbfl-envelope-to/message is an interactive wrapper for sendmail-mbfl-envelope-to that prints the result to the *Message* buffer.

Function: sendmail-mbfl-extract-addresses

Extract a list of email addresses from the current buffer. It must be invoked with the buffer narrowed to the header to examine. Return a list of email addresses as strings, or nil if no address is found.

Function: sendmail-mbfl-hostname
Function: sendmail-mbfl-hostname/message

sendmail-mbfl-hostname extracts, 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.

It returns a string representing the hostname else, if unable to determine the hostname, it raises an error. The hostname is the hostname part of the value returned by sendmail-mbfl-envelope-from.

sendmail-mbfl-hostname/message is an interactive wrapper for sendmail-mbfl-hostname that prints the result to the *Message* buffer.

Function: sendmail-mbfl-username
Function: sendmail-mbfl-username/message

sendmail-mbfl-username extracts, from the current buffer, the username with which login to the SMTP server. The result is used as search key in the selected authinfo file.

It returns a string representing the username else, if unable to determine the username, it raises an error. The username is the username part of the value returned by sendmail-mbfl-envelope-from.

sendmail-mbfl-username/message is an interactive wrapper for sendmail-mbfl-username that prints the result to the *Message* buffer.


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

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