Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision afc85925

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID afc859257bb51c61280c79d0d3e95f07dc1d88ed
  • Vorgänger 64be12aa
  • Nachfolger 4a14c2cd

IMAPClient: FIX: säubere den MIME-Type von Anhängen

Unterschiede anzeigen:

SL/IMAPClient.pm
my ($part) = @_;
my $filename = $part->filename;
if ($filename) {
my $content_type = $part->content_type;
my $mime_type = $part->content_type;
$mime_type =~ s/;.*//; # clean up mime_type
my $content = $part->body;
my $attachment = SL::DB::EmailJournalAttachment->new(
name => $filename,
content => $content,
mime_type => $content_type,
mime_type => $mime_type,
);
push @attachments, $attachment;
}

Auch abrufbar als: Unified diff