50 |
while ($response =~ /^2\d\d-(.+)/) { |
while ($response =~ /^2\d\d-(.+)/) { |
51 |
my $rest=$1; |
my $rest=$1; |
52 |
print "# $response\n" if ($debug); |
print "# $response\n" if ($debug); |
53 |
if ($rest=~/[\d\. ]+([^<]+) <\\*(\w+)\@$remote>/) { |
if ($rest=~/[\d\. ]+([^<]+) <\\*(\w+)\@($remote[^>]*)>/) { |
54 |
print "# $2:$1:auth_pop3:$2\@$remote\n"; |
print "# $2:$1:auth_pop3:$2\@$3\n"; |
55 |
} |
} |
56 |
$response=<SOCK>; |
$response=<SOCK>; |
57 |
}; |
}; |
58 |
print "# $response\n" if ($debug); |
print "# $response\n" if ($debug); |
59 |
if ($response =~ /^2\d\d (.+)/) { |
if ($response =~ /^2\d\d (.+)/) { |
60 |
my $rest=$1; |
my $rest=$1; |
61 |
if ($rest=~/[\d\. ]+([^<]+) <\\*(\w+)\@$remote>/) { |
if ($rest=~/[\d\. ]+([^<]+) <\\*(\w+)\@($remote[^>]*)>/) { |
62 |
print "$2:$1:auth_pop3:$2\@$remote\n"; |
print "$2:$1:auth_pop3:$2\@$3\n"; |
63 |
} |
} |
64 |
} else { |
} else { |
65 |
print "# can't add e-mail address $login\n"; |
print "# can't add e-mail address $login\n"; |
68 |
} |
} |
69 |
} |
} |
70 |
|
|
71 |
while(<>) { |
while(<STDIN>) { |
72 |
chomp; |
chomp; |
73 |
next if (/^#/ || /^$/); |
next if (/^#/ || /^$/); |
74 |
try_expn($_); |
try_expn($_); |