Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

problem in the Subject field when sending an email using Arabic Language

Quote Reply
problem in the Subject field when sending an email using Arabic Language
Greetings,
I have gmail-3.0.1 set and working on my website , but I am facing a language problem in the Subject field when sending an email
containing Arabic language,the problem that I will describe below happens only in the Subject field and only when sending an
email ,I have no problem when receiving emails:
problem details:
When an email is sent containing two words in the subject field, the person who receive the message reads the two word as if it
was one word, having all the characters squeezed in together, I tried putting two spaces between the two words but the problem
remains.
Please help solve this issue?

thank you very much in advance,
Quote Reply
Re: [nass1] problem in the Subject field when sending an email using Arabic Language In reply to
Can you e-mail me an example of this problem? My e-mail address is in my profile. Thanks.

Adrian
Quote Reply
Re: [brewt] problem in the Subject field when sending an email using Arabic Language In reply to
Hello,

Please check your email,

Thanks,
Quote Reply
Re: [nass1] problem in the Subject field when sending an email using Arabic Language In reply to
Can you send me another one, but this time put what it should look like and what it does look like in the body? Thanks.

Adrian
Quote Reply
Re: [brewt] problem in the Subject field when sending an email using Arabic Language In reply to
Hello Adrian,

Ok, I have sent you another email just like you requested,
Thank you very much,
Quote Reply
Re: [nass1] problem in the Subject field when sending an email using Arabic Language In reply to
Here's a patch to GT::Mail::Parts that should fix your problem.

Code:
diff -u -r1.81 Parts.pm
--- Parts.pm 21 Oct 2005 03:22:09 -0000 1.81
+++ Parts.pm 20 May 2006 00:13:04 -0000
@@ -526,10 +526,12 @@
}
$ret;
- }oeg;
+ }eg;
+# Spaces between encoded words need to be encoded as well, or they won't show up
+ $words =~ s/\?=( +)=\?/"?= =?$charset?Q?" . ("=20" x length $1) . "?= =?"/eg;
return $words;
}

Adrian

Last edited by:

brewt: May 19, 2006, 6:31 PM
Quote Reply
Re: [brewt] problem in the Subject field when sending an email using Arabic Language In reply to
In what line number should I add the code?

Thanks,
Quote Reply
Re: [nass1] problem in the Subject field when sending an email using Arabic Language In reply to
Do you know how to read the diff? It's around line 526, remove the lines with - in front and add the lines with + in front.

Adrian
Post deleted by nass1 In reply to
Quote Reply
Re: [brewt] problem in the Subject field when sending an email using Arabic Language In reply to
I am not sure how to do this,
here is what I have starting from line 522 and ending with line 530:

Code:

# As per rfc2047 section 2, we can not have lines more then 75 characters long
# we must seperate long encodings with a CRLF and space.
if (length $word == 18 and substr($words, pos($words) + 18, 1) =~ /\S/) {
$ret .= $CRLF . " ";
}
$ret;
}oeg;
return $words;
}

please modify the code,

Thanks,
Quote Reply
Re: [nass1] problem in the Subject field when sending an email using Arabic Language In reply to
Change it to:
Code:
# As per rfc2047 section 2, we can not have lines more then 75 characters long
# we must seperate long encodings with a CRLF and space.
if (length $word == 18 and substr($words, pos($words) + 18, 1) =~ /\S/) {
$ret .= $CRLF . " ";
}
$ret;
}eg;
# Spaces between encoded words need to be encoded as well, or they won't show up
$words =~ s/\?=( +)=\?/"?= =?$charset?Q?" . ("=20" x length $1) . "?= =?"/eg;
return $words;

Adrian
Quote Reply
Re: [brewt] problem in the Subject field when sending an email using Arabic Language In reply to
Thank you very much,

the issue has been resolved,


Best Regards,
Post deleted by edu242 In reply to