On 21/12/14 01:27 PM, Gary Dale wrote:
On 21/12/14 10:59 AM, Lisi Reisz wrote:
Does one of the LO fans know how to insert a field in a LibreOffice
email
subject line for a bulk mailing?
Lisi
LibreOffice has its own e-mail discussion list.
I've never needed to do it because I've used a simple work-around bash
script. I use LibreOffice to produce a customized attachment (usually
a certificate for someone) then use an exported text file and the read
command to allow me to extract the custom information I need.
I can use this to build custom subject and body parts, plus add the
appropriate attachment, using a command-line mail program.
Here's a quick and dirty example of how to do it:
#! /bin/bash
cat $1.text | while read addr first last; do
echo "sending e-mail to" $first $last "at" $addr
echo "Dear" $first $last > salutation.text
cat $2.text >>salutation.text
if [[ "$4" == "" ]]; then
mutt $addr -s "$3" <salutation.text
else
mutt $addr -s "$3" -a $4.pdf <salutation.text
fi
done
Oops, sorry. That script adds a standard attachment. To add a custom
attachment, build the name using one of the read fields.
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/54972c44.4090...@torfree.net