Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2d7b6344

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID 2d7b6344a848136aa3910a408561a6cdbe006c4c
  • Vorgänger c4f82af8
  • Nachfolger 21e2dc57

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