Re: [exim] Preserving newlines

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: David Clymer
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Preserving newlines
On Sun, 2006-11-19 at 16:29 +0100, Magnus Holmgren wrote:
> On Sunday 19 November 2006 16:06, David Clymer wrote:
> > I've set up a vacation message system where users set/unset their
> > vacation autoreply message by sending a message with a particular
> > subject to themselves. The message is stored in an SQL database.
> >
> > The problem I am having is that newlines are not being preserved, so I I
> > send a multi-line vacation message, it gets inserted into the database
> > as one big line. What sort of escaping must I do in order to get this
> > right?
>
> It's the way $message_body works. There is a wish
> (http://www.exim.org/bugzilla/show_bug.cgi?id=185) for a way to get the body
> without newlines flattened, but until then you probably have to pipe such
> mail to a script. That way you can extract an appropriate body part if a user
> sends a multipart mail, too.


Well that kinda sucks. I was hoping to do it all in exim, but it looks
like that's not really an option.

>
> Other option: Make sure some content scanning has been run; then you can
> extract the body with help from some ${perl}.


Yeah, maybe I'll try that. Judging by the age of that wishlist item,
guess I shouldn't hold my breath for the $message_body_nl feature.

Thanks,

-davidc

--
gpg-key: http://www.zettazebra.com/files/key.gpg