msgs with only text/html not accepted as such
This commit is contained in:
parent
14428c3122
commit
92a5ab6414
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ sub addPost {
|
|||
my $content = "";
|
||||
my $class = (ref $parent eq "WebGUI::Asset::Wobject::Collaboration") ? "WebGUI::Asset::Post::Thread" : "WebGUI::Asset::Post";
|
||||
foreach my $part (@{$message->{parts}}) {
|
||||
if (($part->{type} eq "text/plain" || $part->{type} eq "text/html") && $part->{filename} eq "") {
|
||||
if (($part->{type} =~ /^text\/plain/ || $part->{type} =~ /^text\/html/) && $part->{filename} eq "") {
|
||||
my $text = $part->{content};
|
||||
if ($part->{type} eq "text/plain") {
|
||||
$text =~ s/\n/\<br \/\>/g;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue