Re: [Exim] stupid question

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Kai Henningsen
CC: exim-users
Assumpte: Re: [Exim] stupid question
On 27 Jul 1999, Kai Henningsen wrote:

> ph10@??? (Philip Hazel) wrote on 27.07.99 in <Pine.SOL.3.96.990727140947.10440U-100000@???>:
>
> >   if ($_ =~
> >       /^From\s+(\S+)\s+(?:[a-zA-Z]{3},?\s+)?   # Common start
> >       (?:                                      # Non-extracting bracket
> >       [a-zA-Z]{3}\s+\d?\d |                    # First form
> >       \d?\d\s+[a-zA-Z]{3}\s+\d\d(?:\d\d)?      # Second form
> >       )                                        # End alternation
> >       \s+\d\d?:\d\d?                           # Start of time
> >       /x)

>
>
> >     open(OUTPUT, "| $exim -f '$from' '$recipient'");

>
> Uh - shouldn't this use the Return-Path: header?


Could do, but it is picking $from out of the "From " line, not the From:
header, so it comes to the same thing. That way, it will work in the
absence of Return-Path: headers, which are after all optional.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.