Re: Attachements with iso-8859-15



Le 26.01.2005 18:02:41, Peter Bloomfield a écrit :
On 2005.01.26 10:39, Jean-Luc Coulon (f5ibh) wrote:
Hi Peter,

Le 26.01.2005 15:45:22, Peter Bloomfield a écrit :
Ouch--that patch had some stray stuff--here's the one I wanted to send!

Peter

No, it doesnt work.

If the attachement is utf-8, it is fine
if the attachementis iso-8859-1 (or -15) it says that the message is not US-ASCII nor UTF-8 and ask for the encoding.

Oh, right...I didn't read your mail carefully enough! That patch handles only text in the message body--quoted, included, or whatever.

I assume you're attaching a file that contains an email message, not attaching a message from a Balsa mailbox, is that correct? Balsa

No I create an email and attach a file which is a 'fr.po' file

Here is the beginning of such a file


# translation of fr.po to
# translation of fr.po to
#
#    Translators, if you are not familiar with the PO format, gettext
#    documentation is worth reading, especially sections dedicated to
#    this format, e.g. by running:
#         info -n '(gettext)PO Files'
#         info -n '(gettext)Header Entry'
#    Some information specific to po-debconf are available at
#            /usr/share/doc/po-debconf/README-trans
#         or http://www.debian.org/intl/l10n/po-debconf/README-trans#
#    Developers do not need to manually edit POT or PO files.
# , 2005.
# , 2005.
#
msgid ""
msgstr ""
"Project-Id-Version: greylistd 0.8.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-01-17 16:10-0800\n"
"PO-Revision-Date: 2005-01-20 17:54+0100\n"
"Last-Translator: Jean-Luc Coulon (f5ibh) <jean-luc coulon wanadoo fr>\n"
"Language-Team:  French <debian-l10n-french lists debian org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-15\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.9.1\n"

#. Type: boolean
#. Description
#: ../templates:4
msgid "Restart Exim after adding it to the greylist group?"
msgstr ""
"Faut-il redémarrer Exim après l'avoir ajouté au groupe « greylist » ?"

#. Type: boolean
#. Description
#: ../templates:4
msgid "You are using Exim 4 as your Mail Transport Agent (MTA).  Great!"
msgstr ""
"Votre agent de transport du courrier (« MTA : Mail Transport Agent ») est "
"Exim4."


uses gnome_vfs_get_file_info to find out what's in a file, and tries to find a charset only if it's text/*, so apparently gnome_vfs_get_file_info is saying it's text/* instead of message/*. Perhaps we should replace GNOME_VFS_FILE_INFO_GET_MIME_TYPE with GNOME_VFS_FILE_INFO_FORCE_SLOW_MIME_TYPE--could you try that?

Tried without success.


Best,

Peter

J-L

Attachment: pgpfhpYXTayZ4.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]