Re: [exim] Preserving newlines

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Magnus Holmgren
Date:  
À: exim-users
Sujet: Re: [exim] Preserving newlines
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.

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

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)