Author: Michael Mende <debian@menole.net>
Description: The e-mail syntax checker does not handle plus signs in usernames.
Let Mail::RFC822::Address do the address syntax check.
--- a/lib/Mail/SendEasy.pm
+++ b/lib/Mail/SendEasy.pm
@@ -17,6 +17,7 @@ use strict qw(vars);
 no warnings ;
 
 use vars qw($VERSION @ISA) ;
+use Mail::RFC822::Address qw(valid);
 
 $VERSION = '1.2' ;
 
@@ -444,15 +445,7 @@ sub _format {
   
   my ( $mail ) = @_ ;
   
-  my $stat = 1 ;
-  
-  if ($mail !~ /^[\w\.-]+\@localhost$/gsi) {
-    if ($mail !~ /^[\w\.-]+\@(?:[\w-]+\.)*?(?:\w+(?:-\w+)*)(?:\.\w+)+$/ ) { $stat = undef ;}
-  }
-  elsif ($mail !~ /^[\w\.-]+\@[\w-]+$/ ) { $stat = undef ;}
-  
-  return 1 if $stat ;
-  return undef ;
+  return Mail::RFC822::Address::valid($mail) ? 1 : undef;
 }
 
 ################
