mestolist
Version 1.3.3 (1 July 2007), copyright ©2004, 2005, 2006, 2007 Brett Scaife
Introduction
mestolist is a bash script that takes a message (a plain text file), optionally appends a signature (another plain text file) to it, and then sends it out using msmtp to each recipient listed in another plain text file with a subject line specified on the command line. A copy of the saved message will be saved to a folder you specify (either on the command line or in a configuration file.
If you have set up your configuration file and saved your message and signature then mestolist can be invoked as so:
mestolist subject
mestolist will then use msmtp to send a message to each recipient in turn and output its progress (unless you've told it to be quiet).
mestolist's default behaviour can be altered by either setting options in its configuration file or by setting command line options.
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.
A copy of the GNU General Public License is distributed with this software.
Requirements
mestolist requires msmtp
Installation
You could simply unpack the archive and copy the files you want to the locations you want them but I've written a shell script that will install the files for you. Download the archive and unpack it:
tar xjf mestolist-1.3.3.tar.bz2
Change to the mestolist-1.3.3 directory and type:
./install.sh
Detailed instructions are given in the archive file INSTALL.
Usage
The simplest way to use mestolist is to create a directory to work from. In that directory create: your message in a file called Message; your signature in a file called Signature; your recipient list in a file called Maillist; and a directory called Sentmessages to save sent messages. As long as you have a msmtp account called default then typing:
mestolist subject
whilst in that directory should have everything working out of the box. Of course, adjusting your configuration file will probably make things work more to your liking as the script is very configurable with almost all parameters easily changed from the command line or a configuration file.
Detailed instructions are given in the README file included in the archive and also in the man page which will be installed on your system along with the application.
Download
Changelog
4 April2007
v. 1.3.3
- Changed lisence to GPL v.3
4 April2007
v. 1.3.2
- Corrected behaviour where number of emails reported as being sent was always the number of addresses in the default maillist even when a different maillist was being used
11 January 2007
v. 1.3.1
- Added another exit code DATA_ERR=65, changed value of BAD_ARGS to 64 to clarify errors and standardise values.
- Corrected rc file description of the DELAY variable to describe it as being in seconds
02 August 2006
v. 1.3
- Added From: and Date: headers to messages as some mail servers were rejecting mestolist messages because of their absence
- Changed short command line option for --sentdir to -t to free up -f for --from
- Changed name of DATEFORMAT variable to DATE_FIL_FMT to make script more readable in light of new DATE_HDR_FMT variable
- Install script installs man page unzipped to allow choice of zipping to user
02 July 2005
v. 1.2
- Added a delay option to cause an optional pause between messages if mestolist is swamping the SMTP server. It's a bit unsophisticated - just an instruction to sleep for so many seconds - but it'll suffice for the moment
- Removed a couple of debug messages that were still being output
- Put a global configuration file in
/etc/mestolist - Changed install script to use install rather than mkdir and cp
11 October 2004
v. 1.01.01
- Now gives correct exit code when no arguments given on command line
17 September 2004
v. 1.01
- Changed name to mestolist as listmailer was already being used.
- Changed exit codes to meaningful values.
- Added an option to suppress error messages.
- Wasn't exiting properly when the msmtp account specified didn't exist. Fixed.
16 September 2004
v. 1.0
- Original release (as listmailer)

