develooper Front page | perl.qpsmtpd | Postings from June 2006

new patch for 251/551 (~/.redirect)

Thread Previous | Thread Next
From:
Robert Millan
Date:
June 22, 2006 12:18
Subject:
new patch for 251/551 (~/.redirect)
Message ID:
20060622191717.GA3100@khazad.dyndns.org
On Mon, Jun 19, 2006 at 10:53:08AM -0400, Matt Sergeant wrote:
> On 19-Jun-06, at 7:31 AM, Peter J. Holzer wrote:
> 
> >Which reminds me: I think we should move to a more flexible system of
> >return codes
> 
> We do. $self->qp->respond(CODE, @MESSAGE); return DONE;
> 
> (that's why we have the DONE return code).

New patch.  This time using $self->qp->respond to avoid modifying the core.

Taking advantage of this, I also implemented code 251, just for completeness
(when ~/.forward exists, it'll return 251.  Otherwise 551).

-- 
Robert Millan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About