Bug#509678: libmail-rfc822-address-perl: validates email addresses that are RFC822 no compliant.

Manolo Díaz damdl at pleione.es
Wed Dec 24 16:04:23 UTC 2008


Package: libmail-rfc822-address-perl
Version: 0.3-2.1
Severity: important

Hi,
	This packages validates email addresses which contains non-ascii
chars. It also permits the use of the "|" in domain-part.

	The following perl script can be used to perform a simple test:

========================================================================
#! /usr/bin/perl

use Mail::RFC822::Address qw(valid validlist);

@addresses = (
	'á@example.com',
	'ü@example.com',
	'ñ@example.com',
	'a@|example.com'
);

$list = join (', ', @addresses);

print "Testing the \"valid\" function...\n";

foreach (@addresses) {
	if (valid($_)) {
		print "\t$_ is a valid address.\n";
	} else {
		print "\t$_ is NOT a valid address.\n";
	}
}

print "\nNow testing the \"validlist\" function...\n";

if (validlist($list)) {
	print "\t\"$list\" is a valid address list.\n\n";
} else {
	print "\t\"$list\" is NOT a valid address list.\n\n";
}

========================================================================

Best Regards,
Manolo Díaz

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libmail-rfc822-address-perl depends on:
ii  perl                          5.10.0-18  Larry Wall's Practical Extraction 

libmail-rfc822-address-perl recommends no packages.

libmail-rfc822-address-perl suggests no packages.

-- no debconf information





More information about the pkg-perl-maintainers mailing list