Re: [Exim] Header rewriting - From: fields comment and phras…

Pàgina inicial
Delete this message
Reply to this message
Autor: Vadim Vygonets
Data:  
A: exim-users
Assumpte: Re: [Exim] Header rewriting - From: fields comment and phrase elements
Quoth Ray Gardener on Wed, Jan 12, 2000:
> Is it possible to rewrite the comment and phrase elements of headers
> fields using Exim?
>
> An example of a current header is
>
> from: r.a.gardener@??? (Ray Gardener)


But if you want to rewrite such header, you must insure that if
the comment contains dots or other special characters, you must
put it in quotes, as in "J. Random User" <l@???>.

> which we want rewriting to either
>
> From: <r.a.gardener@???> "Ray Gardener"


Illegal. See RFC822.

> or
>
> From: <Ray Gardener> r.a.gardener@???


Illegal. See RFC822.

First, please _DO_ read RFC822 carefully, and take care of
rewriting addresses such as < vadik (The Nicest) @ (this is an at
sign) vygo (MINE!) . (dot) net (why not?) > correctly. Where
will you put these comments, huh?

Second, please try to implement a script (first, without any Exim
specific features) which will parse RFC822 e-mail addresses
correctly and extract comments from them. Also take care to put
comments in double quotes when needed.

Third, abandon the idea. Why do you need it, anyway?

Vadik.

--
Real software engineers don't debug programs, they verify correctness.
This process doesn't necessarily involve execution of anything on a
computer, except perhaps a Correctness Verification Aid package.