Re: [exim] Batch SMTP or text-files as input or text-to-queu…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Andre Turpin
CC: exim-users
Tárgy: Re: [exim] Batch SMTP or text-files as input or text-to-queue insertion
On Wed, 4 Jan 2006, Andre Turpin wrote:

> 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


<snip>

Take a look at Exim's -t option.


-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book