Erstellt vor 6 Jahren
Geschlossen vor 6 Jahren
#883 closed Fehler (fixed)
Falscher Zeichensatz bei E-Mail-Attachment
| Erstellt von: | Axel.Rau@… | Verantwortlicher: | p.reetz@… |
|---|---|---|---|
| Priorität: | normal | Meilenstein: | |
| Komponente: | kivitendo ERP | Version: | 2.6.2 unstable |
| Schweregrad: | schwerwiegend | Stichworte: | Verkauf |
| Beobachter: | hli@…, s.schoeling@… |
Beschreibung
Problem: Einige MUAs (z.B. NetMail?) liefern einen leeren PDF-Anhang aus.
Diagnose: charset=UTF-8 ist sinnfrei bei base64-Kodierung.
Der Mime prolog eines attachments im PDF-Format sieht so aus:
--LxOffice?-2.6.0 beta 1-1226502552-29646-1
Content-Disposition: attachment;
filename=Angebot_1006.pdf
Content-Type: application/pdf;
name=Angebot_1006.pdf;
charset=UTF-8
Content-Transfer-Encoding: base64
Mit folgendem Patch
--- SL/Mailer.pm (revision 3408)
+++ SL/Mailer.pm (working copy)
@@ -194,7 +194,7 @@
}
print OUT qq${boundary}
-Content-Type: $application/$self->{format}; name="$filename"; charset="$self->{charset}"
+Content-Type: $application/$self->{format}; name="$filename"
Content-Transfer-Encoding: BASE64
Content-Disposition: attachment; filename="$filename"\n\n|;
ist das Problem behoben:
--LxOffice?-2.6.0 beta 1-1226503605-29764-1
Content-Disposition: attachment;
filename=Angebot_1006.pdf
Content-Type: application/pdf;
name=Angebot_1006.pdf
Content-Transfer-Encoding: base64
Axel
Änderungshistorie (2)
comment:1 Geändert vor 6 Jahren durch Axel.Rau@…
- Beobachter hli@… hinzugefügt
comment:2 Geändert vor 6 Jahren durch s.schoeling@…
- Beobachter s.schoeling@… hinzugefügt
- Lösung auf fixed gesetzt
- Status von new nach closed geändert

Beinahe.
Anhänge im Typ 'text/xyz' brauchen natürlich ein charset.
Eine entsprechende Weiche ist ab -r3629 im Mailer.