Jump to content

encoded email body


jmr3460

Recommended Posts

Hello all,

I have a script I have been working on that retrieves my email from my mail server using some of the imap_functions. Everything works fine except for the emails that were sent from my blackberry. I have done some research and it seem to be something to do with the encoding that the blackberry uses. I have found a little bit of code that I was hoping would solve the issue.

 

My goal is to get the body content from email that was produced with my blackberry and put bits of this body into a database. Then I want to do a report from that database once a week.

 

I have developed a script that will retrieve all other message except from my blackberry. Does anyone know how blackberry encodes their body content?

 

jmr3460 

Link to comment
https://forums.phpfreaks.com/topic/232682-encoded-email-body/
Share on other sites

I have the code opening the body now but is is not readable.

It looks like this:

TmFtZTogaW4NCkxhdGl0dWRlOiAzNS4xNjQxMw0KTG9uZ2l0dWRlOiAtOTAuMTkxNTMNCkFsdGl0

dWRlOiA0Nm0NClRpbWV6b25lOiANCkRhdGU6IEFwciAzLCAyMDExIDc6MDQgUE0NCkRlc2NyaXB0

aW9uOiANCg0KQWRkcmVzczogDQpBZGRyZXNzMjogDQpDaXR5OiANClN0YXRlOiANCkNvdW50cnk6

IA0KUG9zdGFsIENvZGU6IA0KVVJMOiANClBob25lIE51bWJlcjogDQoNClNlbnQgb24gdGhlIFNw

cmludK4gTm93IE5ldHdvcmsgZnJvbSBteSBCbGFja0JlcnJ5rg==

 

This is only in the emails that were sent by my blackberry.

Link to comment
https://forums.phpfreaks.com/topic/232682-encoded-email-body/#findComment-1196918
Share on other sites

I meant the source of the whole email, with headers and everything. That seems to be base64 encoded though:

Name: in
Latitude: ---
Longitude: ---
Altitude: 46m
Timezone: 
Date: Apr 3, 2011 7:04 PM
Description: 

Address: 
Address2: 
City: 
State: 
Country: 
Postal Code: 
URL: 
Phone Number: 

Sent on the Sprint� Now Network from my BlackBerry�

Link to comment
https://forums.phpfreaks.com/topic/232682-encoded-email-body/#findComment-1196920
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.