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
Download (untitled) / with headers
text/plain 319b
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.
Download (untitled) / with headers
text/plain 567b
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.
Download (untitled) / with headers
text/plain 111b
Sorry, my print statement was wrong. My report relates to your regex test of recipient, which does not work.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.