You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Craig Raw <cr...@quirk.biz> on 2007/02/08 13:28:28 UTC

Subject line problem

Hi,

I'm having a problem in James that I'm hoping one of the knowledgeable people on this list can help 
with. Certain emails received by James are coming through with strange subject lines.

For example, an email sent with
Subject: Get a date/Got a date ? Axe become viral vigilantes

ends up in the inbox table with
Subject: =?ANSI_X3.4-1968?Q?Get_a_date/Got_a_date_=3F_Axe_become_viral_vigilantes?=

This same email works fine in Gmail. I imagine it has something to do with strange characters or 
escaping the question mark - which was a dash originally, probably one of the unusual ones generated 
by Microsoft Word.

Anyone?

Thanks,
Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Subject line problem

Posted by Michael Weissenbacher <mw...@dermichi.com>.
Hi,
which OS are you using? Have you defined a default locale?

try:
java -Dfile.encoding=UTF-8
or
java -Dfile.encoding=CP1252

Michael

Craig Raw schrieb:
> Hi,
> 
> I'm having a problem in James that I'm hoping one of the knowledgeable 
> people on this list can help with. Certain emails received by James are 
> coming through with strange subject lines.
> 
> For example, an email sent with
> Subject: Get a date/Got a date ? Axe become viral vigilantes
> 
> ends up in the inbox table with
> Subject: 
> =?ANSI_X3.4-1968?Q?Get_a_date/Got_a_date_=3F_Axe_become_viral_vigilantes?=
> 
> This same email works fine in Gmail. I imagine it has something to do 
> with strange characters or escaping the question mark - which was a dash 
> originally, probably one of the unusual ones generated by Microsoft Word.
> 
> Anyone?
> 
> Thanks,
> Craig
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re[2]: Subject line problem

Posted by Dima Retov <di...@axisway.com>.
Hi,

Does this email is created by james?

I think ANSI_X3.4-1968 is ASCII.

Dima


Friday, February 9, 2007, 10:58:39 AM, you wrote:

MW> Hi,
 >> It is encoded according to following standard.
 >>
 >> http://www.faqs.org/rfcs/rfc2047.html
 >>
 >> I think everything is Ok.
MW> that's theoritically true. But in practice there are some email programs
MW> out there (like MS Outlook or Mozilla Thunderbird IIRC) that don't know
MW> about "ANSI_X3.4-1968", which is also an very unusual character 
MW> encoding. Ususally it should use something like ISO-8859-1 or UTF-8
MW> which displays fine in most email clients. Look at this subject line:
MW> hallo test mit subject =?ISO-8859-15?Q?=E4=F6=FC?=
MW> which is a correct encoding for:
MW> hallo test mit subject äöü
MW> and displays fine in both Thunderbird and Outlook.

MW> Michael

MW> ---------------------------------------------------------------------
MW> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
MW> For additional commands, e-mail: server-user-help@james.apache.org




-- 
Best regards,
 Dima                            mailto:dima@axisway.com



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Subject line problem

Posted by Michael Weissenbacher <mw...@dermichi.com>.
Hi,
 > It is encoded according to following standard.
 >
 > http://www.faqs.org/rfcs/rfc2047.html
 >
 > I think everything is Ok.
that's theoritically true. But in practice there are some email programs 
out there (like MS Outlook or Mozilla Thunderbird IIRC) that don't know 
about "ANSI_X3.4-1968", which is also an very unusual character 
encoding. Ususally it should use something like ISO-8859-1 or UTF-8 
which displays fine in most email clients. Look at this subject line:
hallo test mit subject =?ISO-8859-15?Q?=E4=F6=FC?=
which is a correct encoding for:
hallo test mit subject äöü
and displays fine in both Thunderbird and Outlook.

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Subject line problem

Posted by Michael Weissenbacher <mw...@dermichi.com>.
Hi,
 > Anyone have any ideas how I go about changing the encoding that James
 > uses, which defaults to the ANSI one? I've tried the JVM params
 > -Dfile.encoding=8859_1 -Dmail.mime.charset=iso-8859-15, with no change
 > in the result.
Have you tried what i suggested yesterday?
java -Dfile.encoding=UTF-8
or
java -Dfile.encoding=CP1252

Recent JVM's seem to ignore this parameter though, so you should try to 
set the default locale on the OS level.

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Subject line problem

Posted by Craig Raw <cr...@quirk.biz>.
Ok, this is great information, thanks.

Anyone have any ideas how I go about changing the encoding that James uses, which defaults to the 
ANSI one? I've tried the JVM params -Dfile.encoding=8859_1 -Dmail.mime.charset=iso-8859-15, with no 
change in the result.

Thanks,
Craig


Michael Weissenbacher wrote:
> Hi,
>  > It is encoded according to following standard.
>  >
>  > http://www.faqs.org/rfcs/rfc2047.html
>  >
>  > I think everything is Ok.
> that's theoritically true. But in practice there are some email programs 
> out there (like MS Outlook or Mozilla Thunderbird IIRC) that don't know 
> about "ANSI_X3.4-1968", which is also an very unusual character 
> encoding. Ususally it should use something like ISO-8859-1 or UTF-8 
> which displays fine in most email clients. Look at this subject line:
> hallo test mit subject =?ISO-8859-15?Q?=E4=F6=FC?=
> which is a correct encoding for:
> hallo test mit subject äöü
> and displays fine in both Thunderbird and Outlook.
> 
> Michael
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Subject line problem

Posted by Dima Retov <di...@axisway.com>.
Hi,

It is encoded according to following standard.

http://www.faqs.org/rfcs/rfc2047.html

I think everything is Ok.



Thursday, February 8, 2007, 2:28:28 PM, you wrote:

CR> Hi,

CR> I'm having a problem in James that I'm hoping one of the
CR> knowledgeable people on this list can help 
CR> with. Certain emails received by James are coming through with strange subject lines.

CR> For example, an email sent with
CR> Subject: Get a date/Got a date ? Axe become viral vigilantes

CR> ends up in the inbox table with
CR> Subject:
CR> =?ANSI_X3.4-1968?Q?Get_a_date/Got_a_date_=3F_Axe_become_viral_vigilantes?=

CR> This same email works fine in Gmail. I imagine it has
CR> something to do with strange characters or 
CR> escaping the question mark - which was a dash originally,
CR> probably one of the unusual ones generated 
CR> by Microsoft Word.

CR> Anyone?

CR> Thanks,
CR> Craig

CR> ---------------------------------------------------------------------
CR> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
CR> For additional commands, e-mail: server-user-help@james.apache.org




-- 
Best regards,
 Dima                            mailto:dima@axisway.com



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org