Skip Menu |

This queue is for tickets about the Net-Server-Mail CPAN distribution.

Report information
The Basics
Id: 122468
Status: resolved
Priority: 0/
Queue: Net-Server-Mail

People
Owner: x.guimard [...] free.fr
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.23
Fixed in: 0.24



Subject: Example code - validate_recipient doesn't work
validate_recipient doesn't have the angle brackets. I added this print statement toward the start: print "$session - $recipient\n"; I telnetted in sending RCPT TO: <njh@bandsman.co.uk> and the print statement gave: Net::Server::Mail::SMTP=HASH(0x7feea31d8870) - njh@bandsman.co.uk So the regex can never work.
Le Jeu 13 Jui 2017 14:59:36, NHORNE a écrit : Show quoted text
> validate_recipient doesn't have the angle brackets. > > I added this print statement toward the start: > > print "$session - $recipient\n"; > > I telnetted in sending > RCPT TO: <njh@bandsman.co.uk> > > and the print statement gave: > > Net::Server::Mail::SMTP=HASH(0x7feea31d8870) - njh@bandsman.co.uk > > So the regex can never work.
Hello, $session is the Net::Server::Mail object that handles this connection. You can print "$session" directly but you need to use $session->get_recipients for example.
Sorry, my print statement was wrong. My report relates to your regex test of recipient, which does not work.