[exim] Batch SMTP or text-files as input or text-to-queue in…

Góra strony
Delete this message
Reply to this message
Autor: Andre Turpin
Data:  
Dla: exim-users
Temat: [exim] Batch SMTP or text-files as input or text-to-queue insertion
I've got some text files outputted from our billing systems that are rather
pretty, and I'm looking to email these to each customer. They look like the
following. Don't make too much fun, but we used to use a program called Sims
on a Macintosh, and we could just drop the text files in the queue directory
and it would process them and send them off (slowly...but it worked). Now
I'm trying to do something similar with Exim 4.54. I've been fighting with
sed to mung the files the way that the command-line "exim4 -bs < file" wants
it but it's freaking impossible (for someone as challenged as I). Is there a
clever (fast, simple) way that anyone would do this? Assume about 100-150 of
these text files, and they don't have a trailing '.' at the end of the file.

Begin file snip:

From: New North Networks <xxxxxx@???>
To: xxxxxx@???
Subject: Cellular Account Statement
Invoice No: C17264
Date: 01/01/06


New North Networks                             RES: 1234
PO Box 2338, Inuvik, NT  X0E0T0                BUS: 1234
Ph 867 777-2111 Fax 867 777-3412          CELL NO.: 1234567890
More bill details
blah
blah


:End file snip