265 |
#the browser will chop it off. |
#the browser will chop it off. |
266 |
#This is unlikely, but we want to cover any |
#This is unlikely, but we want to cover any |
267 |
#eventuality. |
#eventuality. |
268 |
foreach ($pop->Head($i)) { |
my @headers=$pop->Head($i); |
269 |
|
while ($_ = shift @headers) { |
270 |
|
|
271 |
#parse out the From line from the header. |
#parse out the From line from the header. |
272 |
#Also, remove any angle brackets |
#Also, remove any angle brackets |
292 |
$replyto = $'; |
$replyto = $'; |
293 |
$replyto =~ s/\s+//; #remove intervening white space |
$replyto =~ s/\s+//; #remove intervening white space |
294 |
$replyto =~ s/\</<\;/; #make angle brackets browser safe |
$replyto =~ s/\</<\;/; #make angle brackets browser safe |
295 |
$replyto =~ s/\>/>\;/; |
$replyto =~ s/\>/>\;/; |
296 |
} |
} |
297 |
|
|
298 |
|
|
335 |
# $' PERL system function. |
# $' PERL system function. |
336 |
$to = $'; |
$to = $'; |
337 |
$to =~ s/\s+//; #remove leading white space |
$to =~ s/\s+//; #remove leading white space |
338 |
$to =~ s/\</<\;/; #make angle brackets browser safe |
#support for multi-line To: |
339 |
$to =~ s/\>/>\;/; |
while ($headers[0] =~ m/^ +/) { |
340 |
|
my $tmp = shift @headers; |
341 |
|
$tmp =~ s/\s+//; |
342 |
|
$to .= $tmp; |
343 |
|
} |
344 |
|
$to =~ s/\</<\;/g; #make angle brackets browser safe |
345 |
|
$to =~ s/\>/>\;/g; |
346 |
|
|
347 |
} |
} |
348 |
#parse out the recipient line. |
#parse out the recipient line. |
353 |
$cc = $'; |
$cc = $'; |
354 |
$cc =~ s/\s+//; #remove leading white space |
$cc =~ s/\s+//; #remove leading white space |
355 |
$cc =~ s/\</<\;/; #make angle brackets browser safe |
$cc =~ s/\</<\;/; #make angle brackets browser safe |
356 |
$to =~ s/\>/>\;/; |
$cc =~ s/\>/>\;/; |
357 |
|
|
358 |
} |
} |
359 |
} |
} |