Changeset 4224
- Timestamp:
- 2003-05-05T12:07:08+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/EMAILPlug.pm
r4089 r4224 584 584 $part_content_type="message/rfc822"; 585 585 } 586 if ($part_header =~ m@^content\-type:\s*([\w\.\-/]+)\s* \;?\s*(.*?)\s*$@mi) {586 if ($part_header =~ m@^content\-type:\s*([\w\.\-/]+)\s*(\;.*)?$@mi) { 587 587 $part_content_type=$1; $part_content_type =~ tr/A-Z/a-z/; 588 588 $part_content_info=$2; 589 if (!defined($part_content_info)) { 590 $part_content_info=""; 591 } else { 592 $part_content_info =~ s/^\;\s*//; 593 $part_content_info =~ s/\s*$//; 594 } 589 595 } 590 596 my $filename=""; … … 626 632 my $rfc822_formatted_body=""; # put result in here 627 633 if ($message_part_headers =~ 628 /^content\-type:\s*([\w\.\-\/]+)\s* \;?\s*(.*?)\s*$/ims)634 /^content\-type:\s*([\w\.\-\/]+)\s*(\;.*)?$/ims) 629 635 { 630 636 # The message header uses MIME flags … … 633 639 if (!defined($message_content_info)) { 634 640 $message_content_info=""; 641 } else { 642 $message_content_info =~ s/^\;\s*//; 643 $message_content_info =~ s/\s*$//; 635 644 } 636 645 $message_content_type =~ tr/A-Z/a-z/;
Note:
See TracChangeset
for help on using the changeset viewer.