[vhffs-dev] [1389] improved regexp for From splits |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1389
Author: gradator
Date: 2009-04-12 03:06:34 +0200 (Sun, 12 Apr 2009)
Log Message:
-----------
improved regexp for From splits
Modified Paths:
--------------
trunk/vhffs-listengine/src/listengine.pl
Modified: trunk/vhffs-listengine/src/listengine.pl
===================================================================
--- trunk/vhffs-listengine/src/listengine.pl 2009-04-06 17:13:14 UTC (rev 1388)
+++ trunk/vhffs-listengine/src/listengine.pl 2009-04-12 01:06:34 UTC (rev 1389)
@@ -188,7 +188,7 @@
my $header;
my $email;
my ( $message_id ) = ($mail->get( 'Message-Id' ) =~ /<(.+)>/);
- my ( $from ) = ( $mail->get('From') =~ /([^\s^<]+@[^>^\s]+)/);
+ my ( $from ) = ( $mail->get('From') =~ /([^\s<"]+@[^>\s"]+)/);
$from = lc $from;
my $directory = get_moderation_dir( $list );
my $subject = $mail->get('Subject');
@@ -805,7 +805,7 @@
my $mail = shift;
my $list = shift;
- my ( $from ) = ( $mail->get('From') =~ /([^\s^<]+@[^>^\s]+)/);
+ my ( $from ) = ( $mail->get('From') =~ /([^\s<"]+@[^>\s"]+)/);
$from = lc $from;
my $subject = $mail->get('Subject');
my $action;
@@ -1096,7 +1096,7 @@
sub get_lang
{
my $mail = shift;
- my ( $from ) = ( $mail->get('From') =~ /([^\s^<]+@[^>^\s]+)/);
+ my ( $from ) = ( $mail->get('From') =~ /([^\s<"]+@[^>\s"]+)/);
$from = lc $from;
my $lang = Vhffs::Services::MailingList::get_language_for_sub( $vhffs , $from );
@@ -1119,7 +1119,7 @@
my $list = shift;
my $mail = shift;
- my ( $from ) = ( $mail->get('From') =~ /([^\s^<]+@[^>^\s]+)/);
+ my ( $from ) = ( $mail->get('From') =~ /([^\s<"]+@[^>\s"]+)/);
exit( 0 ) unless defined $from;
exit( 0 ) if( $from eq '' );