You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Norman Maurer <nm...@spam-box.de> on 2006/02/21 13:26:22 UTC

Corrupt emails from Blackberry Server

Hi Guys,

anyone sees a problem when getting a email from a blackberry server ? We
use lattest james trunk.. 
And only getting this email code..

Maybe its a problem with charset="Windows-1252" ? No exception was found
in the logs..

thx




Message-ID: <53...@devcenter>
Content-Transfer-Encoding: 8bit
Sensitivity: Normal
Importance: Normal
To: "Herr Norman Maurer" <xx...@xxx>
Subject:
        =?Windows-1252?B?QVc6IFJlOiBXRzogW0FSQ0hJVl0gQW50d29ydDogV0c6IFAzMjI6IEFuZ2Vib3RzZXJn5G56dW5nIGVyZm9yZGVybGljaA==?=
From: "xxx - BlackBerry" <xxx>
Date: Tue, 21 Feb 2006 12:13:08 +0000 GMT
Content-Type: text/plain; charset="Windows-1252"
MIME-Version: 1.0

X-Evolution-Source: imap://nm%40byteaction.de@bamail.byteaction.de/

ZGFzIHByb2JsZW0gdHJpdHQgc2VpdCBnZXN0ZXJuIHZtIGJlaSBhbGxlbiBtYWlscyB2b3IsIG9i
IGJiLCBhZGl2YSBvZGVyIGt1bmRlbiwgaW0gdWVicmlnZW4gaGF0IHR2IGRhcyBnbGVpY2hlIHBy
b2JsZW0gb2huZSBiYiEgYml0dGUgZHJpbmdlbmQgYmVoZWJlbiwgd2lyIG11ZXNzZW4gYW5nZWJv
dGUgYWJnZWJlbiB1bmQgZWlucyBsaWVndCBzZWl0IGdlc3Rlcm4gYnJhY2ggLCBkYXMgZnVlciBk
aWUgaGVhZyBpc3QuDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogTm9ybWFuIE1h
dXJlciA8bm1AYnl0ZWFjdGlvbi5kZT4NCkRhdGU6IFR1ZSwgMjEgRmViIDIwMDYgMTI6NTg6MDYg
DQpUbzpLYXRqYSBFeXJpY2ggLSBCbGFja0JlcnJ5IDxrZUBieXRlYWN0aW9uLmRlPg0KU3ViamVj
dDogUmU6IFdHOiBbQVJDSElWXSBBbnR3b3J0OiBXRzogUDMyMjogDQoJQW5nZWJvdHNlcmfkbnp1
bmcgZXJmb3JkZXJsaWNoDQoNCkthbSBkYXMgdm9tIEJsYWNrYmVycnkgPyANCg0KDQpBbSBEaWVu
c3RhZywgZGVuIDIxLjAyLjIwMDYsIDExOjU0ICswMDAwIHNjaHJpZWIgS2F0amEgRXlyaWNoIC0N
CkJsYWNrQmVycnk6DQo
+IFlXNWlaV2tnWkdsbElHMWhhV3dzSUdScFpTQmlaV2tnYTI5eVkyRnVJ
SHBsY21semMyVnVJR0Z1YTJGdERRb3RMUzB0TFU5eWFXZHANCj4gYm1Gc0lFMWxjM05oWjJVdExT
MHRMUTBLUm5KdmJUb2dRVzV1WlhSMFpTNVRZMmh1Wldsa1pYSkFaSHBpWVc1ckxtUmxEUXBFWVhS
bA0KPiBPaUJVZFdVc0lESXhJRVpsWWlBeU1EQTJJREV3T2pJd09qVTBJQTBLVkc4NmEyVkFZbmww
WldGamRHbHZiaTVrWlEwS1UzVmlhbVZqDQo
+IGREb2dXMEZTUTBoSlZsMGdRVzUwZDI5eWREb2dW




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


Re: Corrupt emails from Blackberry Server

Posted by Stefano Bagnara <ap...@bago.org>.
Anne S wrote:
> I'm afraid my German is a bit rusty, but this is probably your original
> message. If you want a Quick Fix, just run Blackberry sent emails through a
> base64 decoder (you can see one here:
> http://makcoder.sourceforge.net/demo/base64.php)
> 
> A long term fix would involve a bit of work. The problem could be RIM's, so
> you'll have to contact the company and send a bug report, or you could write
> a mailet to automatically do the conversion.
> 
> Could you send more information about your situation?

This could be related to the 8bitmime patch I applied a few months ago.
When we told javamail to support 8bitmime it do change the header 
transfer-encoding to "8bit" when it find 8bit chars in the body.
This should not happen if the body is handled correctly... Maybe Norman 
is adding 8bit chars to the 7bit (base64) body and javamail 
automatically add the 8bit trasfer encoding (altering the original 
base64) because it should not find 8bit chars.

Norman, can you run a test with a similar message and store the message 
somewhere (ToRepository with a filerepository is a good choice) before 
it runs in the James RemoteDelivery so we can check the actual 
body/headers? (Just add a ToRepository mailet configured with 
passThrough=>true before the RemoteDelivery mailet).

We need to know the exact content of the body before it is passed to the 
remotedelivery: I want to know wether there are ASCII chars with a code 
greater than 127 (they are not allowed in 7bit mime, but if they are 
there then you should look for an early problem)

Stefano



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


Re: Corrupt emails from Blackberry Server

Posted by Norman Maurer <nm...@spam-box.de>.
I made it.. 

Her is the email bofore run in the remotedelivery mailet:


Return-Path: null
Received: from smtp04.bwc.eu.blackberry.com ([216.9.241.84])
          by james.xxx.de (JAMES SMTP Server 2.3-dev) with SMTP ID 130
          for <bl...@xxx.de>;
          Wed, 22 Feb 2006 08:25:39 +0100 (CET)
Received: from engine24.bwc.produk.on.blackberry
(engine24.bwc.produk.on.blackberry [172.16.211.216])
        by smtp04.bwc.eu.blackberry.com (8.13.1/8.13.1) with SMTP id
k1LC8UX2013974
        for blackberry-test@byteaction.de; Wed, 22 Feb 2006 07:25:38 GMT
Message-ID:
<13...@engine24.bwc.produk.on.blackberry>
Content-Transfer-Encoding: base64
Sensitivity: Normal
Importance: Normal
To: blackberry-test@xx.de
Subject: hallo norman
From: "Katja Eyrich - BlackBerry" <ke...@xxde>
Date: Wed, 22 Feb 2006 07:25:49 +0000 GMT
Content-Type: text/plain; charset="Windows-1252"
MIME-Version: 1.0


dGFjaCBhdWNoDQogDQo9PT0NCmkuQS4gS2F0amEgRXlyaWNoDQpLZXkgQWNjb3VudCBNYW5hZ2Vy
aW4NCiANCkJ5dGVBY3Rpb24gR21iSA0KVGhlIEludGVybmV0IFNvbHV0aW9ucyBDb21wYW55DQpB
dWYgZGVyIEJldW5lIDgzLTg1IJUgRC02NDgzOSBN/G5zdGVyDQogDQp0ICs0OSAoMCkgNjAgNzEg
LSA5MiAxNiAtIDMzDQpmICs0OSAoMCkgNjAgNzEgLSA5MiAxNiAtIDIwDQpoKzQ5ICgwKSAgMSA2
MyAtIDI5IDgzIDAwNA0KQmxhY2tCZXJyeSArNDkgKDApIDE3OCAtIDY2ODQgODUwIGYgKzQ5ICgw
KSAxNzggLSA2Njg5IDg5Mg0KIA0KRS1NYWlsOiBrZUBieXRlYWN0aW9uLmRlDQpJbnRlcm5ldDog
d3d3LmJ5dGVhY3Rpb24uZGUNCj09PQ0KDQo=


Thx for all the help :-)



Am Dienstag, den 21.02.2006, 17:55 +0100 schrieb Stefano Bagnara:
> Anne S wrote:
> > I'm afraid my German is a bit rusty, but this is probably your original
> > message. If you want a Quick Fix, just run Blackberry sent emails through a
> > base64 decoder (you can see one here:
> > http://makcoder.sourceforge.net/demo/base64.php)
> > 
> > A long term fix would involve a bit of work. The problem could be RIM's, so
> > you'll have to contact the company and send a bug report, or you could write
> > a mailet to automatically do the conversion.
> > 
> > Could you send more information about your situation?
> 
> This could be related to the 8bitmime patch I applied a few months ago.
> When we told javamail to support 8bitmime it do change the header 
> transfer-encoding to "8bit" when it find 8bit chars in the body.
> This should not happen if the body is handled correctly... Maybe Norman 
> is adding 8bit chars to the 7bit (base64) body and javamail 
> automatically add the 8bit trasfer encoding (altering the original 
> base64) because it should not find 8bit chars.
> 
> Norman, can you run a test with a similar message and store the message 
> somewhere (ToRepository with a filerepository is a good choice) before 
> it runs in the James RemoteDelivery so we can check the actual 
> body/headers? (Just add a ToRepository mailet configured with 
> passThrough=>true before the RemoteDelivery mailet).
> 
> We need to know the exact content of the body before it is passed to the 
> remotedelivery: I want to know wether there are ASCII chars with a code 
> greater than 127 (they are not allowed in 7bit mime, but if they are 
> there then you should look for an early problem)
> 
> Stefano
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 
> 



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


Re: Corrupt emails from Blackberry Server

Posted by Anne S <hy...@gmail.com>.
There is no such thing as "email code". Emails are sent in plain text.

However, you are correct in that parts of messages (read: attachments) may
be "coded" in order to facilitate easier transfer. When this is done, binary
attachments are coded in the base64 format.

If I take your block of random looking letters and feed them into a base64
decoder, I get the following:

----Message Starts-----
das problem tritt seit gestern vm bei allen mails vor, ob bb, adiva oder
kunden, im uebrigen hat tv das gleiche problem ohne bb! bitte dringend
beheben, wir muessen angebote abgeben und eins liegt seit gestern brach ,
das fuer die heag ist.

-----Original Message-----
From: Norman Maurer <nm...@byteaction.de>
Date: Tue, 21 Feb 2006 12:58:06
To:Katja Eyrich - BlackBerry < ke@byteaction.de>
Subject: Re: WG: [ARCHIV] Antwort: WG: P322:
    Angebotsergänzung erforderlich

Kam das vom Blackberry ?
Am Dienstag, den 21.02.2006, 11:54 +0000 schrieb Katja Eyrich -
BlackBerry:
>
YW5iZWkgZGllIG1haWwsIGRpZSBiZWkga29yY2FuIHplcmlzc2VuIGFua2FtDQotLS0tLU9yaWdp
>
bmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogQW5uZXR0ZS5TY2huZWlkZXJAZHpiYW5rLmRlDQpEYXRl
>
OiBUdWUsIDIxIEZlYiAyMDA2IDEwOjIwOjU0IA0KVG86a2VAYnl0ZWFjdGlvbi5kZQ0KU3ViamVj

> dDogW0FSQ0hJVl0gQW50d29ydDogV
--Message Ends---

I'm afraid my German is a bit rusty, but this is probably your original
message. If you want a Quick Fix, just run Blackberry sent emails through a
base64 decoder (you can see one here:
http://makcoder.sourceforge.net/demo/base64.php)

A long term fix would involve a bit of work. The problem could be RIM's, so
you'll have to contact the company and send a bug report, or you could write
a mailet to automatically do the conversion.

Could you send more information about your situation?

-Anne S


On 2/21/06, Norman Maurer <nm@spam-box.de > wrote:
>
> Hi Guys,
>
> anyone sees a problem when getting a email from a blackberry server ? We
> use lattest james trunk..
> And only getting this email code..
>
> Maybe its a problem with charset="Windows-1252" ? No exception was found
> in the logs..
>
> thx
>
>
>
>
> Message-ID: < 537372540.1140523980321.JavaMail.root@devcenter>
> Content-Transfer-Encoding: 8bit
> Sensitivity: Normal
> Importance: Normal
> To: "Herr Norman Maurer" <xx...@xxx>
> Subject:
>         =?Windows-1252?B?QVc6IFJlOiBXRzogW0FSQ0hJVl0gQW50d29ydDogV0c6IFAzMjI6IEFuZ2Vib3RzZXJn5G56dW5nIGVyZm9yZGVybGljaA==?=
>
> From: "xxx - BlackBerry" <xxx>
> Date: Tue, 21 Feb 2006 12:13:08 +0000 GMT
> Content-Type: text/plain; charset="Windows-1252"
> MIME-Version: 1.0
>
> X-Evolution-Source: imap://nm%40byteaction.de@bamail.byteaction.de/
>
>
> ZGFzIHByb2JsZW0gdHJpdHQgc2VpdCBnZXN0ZXJuIHZtIGJlaSBhbGxlbiBtYWlscyB2b3IsIG9i
>
> IGJiLCBhZGl2YSBvZGVyIGt1bmRlbiwgaW0gdWVicmlnZW4gaGF0IHR2IGRhcyBnbGVpY2hlIHBy
> b2JsZW0gb2huZSBiYiEgYml0dGUgZHJpbmdlbmQgYmVoZWJlbiwgd2lyIG11ZXNzZW4gYW5nZWJv
>
>
> dGUgYWJnZWJlbiB1bmQgZWlucyBsaWVndCBzZWl0IGdlc3Rlcm4gYnJhY2ggLCBkYXMgZnVlciBk
>
> aWUgaGVhZyBpc3QuDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogTm9ybWFuIE1h
> dXJlciA8bm1AYnl0ZWFjdGlvbi5kZT4NCkRhdGU6IFR1ZSwgMjEgRmViIDIwMDYgMTI6NTg6MDYg
>
>
> DQpUbzpLYXRqYSBFeXJpY2ggLSBCbGFja0JlcnJ5IDxrZUBieXRlYWN0aW9uLmRlPg0KU3ViamVj
>
> dDogUmU6IFdHOiBbQVJDSElWXSBBbnR3b3J0OiBXRzogUDMyMjogDQoJQW5nZWJvdHNlcmfkbnp1
> bmcgZXJmb3JkZXJsaWNoDQoNCkthbSBkYXMgdm9tIEJsYWNrYmVycnkgPyANCg0KDQpBbSBEaWVu
>
>
> c3RhZywgZGVuIDIxLjAyLjIwMDYsIDExOjU0ICswMDAwIHNjaHJpZWIgS2F0amEgRXlyaWNoIC0N
> CkJsYWNrQmVycnk6DQo
> +IFlXNWlaV2tnWkdsbElHMWhhV3dzSUdScFpTQmlaV2tnYTI5eVkyRnVJ
> SHBsY21semMyVnVJR0Z1YTJGdERRb3RMUzB0TFU5eWFXZHANCj4gYm1Gc0lFMWxjM05oWjJVdExT
>
>
> MHRMUTBLUm5KdmJUb2dRVzV1WlhSMFpTNVRZMmh1Wldsa1pYSkFaSHBpWVc1ckxtUmxEUXBFWVhS
>
> bA0KPiBPaUJVZFdVc0lESXhJRVpsWWlBeU1EQTJJREV3T2pJd09qVTBJQTBLVkc4NmEyVkFZbmww
> WldGamRHbHZiaTVrWlEwS1UzVmlhbVZqDQo
> +IGREb2dXMEZTUTBoSlZsMGdRVzUwZDI5eWREb2dW
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>