Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f460556b
Kaydet (Commit)
f460556b
authored
Tem 13, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#66761 we want the bytes, not a str representation of them
Change-Id: I3c268b0c51f7e1ddd2fa6588f40412a33f316b52
üst
82937ce3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mailmerge.py
scripting/source/pyprov/mailmerge.py
+3
-1
No files found.
scripting/source/pyprov/mailmerge.py
Dosyayı görüntüle @
f460556b
...
@@ -183,9 +183,11 @@ class PyMailSMTPService(unohelper.Base, XSmtpService):
...
@@ -183,9 +183,11 @@ class PyMailSMTPService(unohelper.Base, XSmtpService):
textmsg
[
'MIME-Version'
]
=
'1.0'
textmsg
[
'MIME-Version'
]
=
'1.0'
try
:
try
:
#it's a string, get it as utf-8 bytes
textbody
=
textbody
.
encode
(
'utf-8'
)
textbody
=
textbody
.
encode
(
'utf-8'
)
except
:
except
:
textbody
=
str
(
textbody
.
value
)
.
encode
(
'utf-8'
)
#it's a bytesequence, get raw bytes
textbody
=
textbody
.
value
if
sys
.
version
>=
'3'
:
if
sys
.
version
>=
'3'
:
#http://stackoverflow.com/questions/9403265/how-do-i-use-python-3-2-email-module-to-send-unicode-messages-encoded-in-utf-8-w
#http://stackoverflow.com/questions/9403265/how-do-i-use-python-3-2-email-module-to-send-unicode-messages-encoded-in-utf-8-w
textbody
=
textbody
.
decode
(
'iso8859-1'
)
textbody
=
textbody
.
decode
(
'iso8859-1'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment