LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-12-2006, 11:08 AM   #1
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 298

Rep: Reputation: 30
Question How open a mime file within an e-mail?


Hi--

I am getting e-mails from a correspondent with part of them in mime format. For instance, this part starts like this:

Code:
--=_alternative 004FF9948525719D_=--

--=_mixed 004FF9928525719D_=
Content-Type: application/octet-stream; name="B&I Processing 
Guide&ApplicationChecklists MAY 06.doc"
Content-Disposition: attachment; filename="B&I Processing 
Guide&ApplicationChecklists MAY 06.doc"
Content-Transfer-Encoding: base64

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAAFAAAAXgIAAAAA
AAAAEAAAYAIAAAEAAAD+////AAAAAFUCAABWAgAAVwIAAFgCAABfAgAA////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
///////////////////////////////////spcEAIWAJBAAA8BK/AAAAAAAAEAAAAAAABgAA
JEgAAA4AYmpialytXK0AAAAAAAAAAAAAAAAAAAAAAAAJBBYAnScEAD7HAAA+xwAApz8AAAAA
AAB8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//w8AAAAAAAAAAAD//w8AAAAAAAAAAAD//w8A
AAAAAAAAAAAAAAAAAAAAAKQAAAAAABgFAAAAAAAAGAUAABgFAAAAAAAAGAUAAAAAAAAYBQAA
So how do I open and read this part?

I have found a Windoze program (xferpro) that will open it, but I shouldn't have to resort to that, right?

Thanks!
 
Old 07-12-2006, 07:12 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,140
Blog Entries: 54

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
So how do I open and read this part?
What application do you use to read email with?
Anyway. If there's no GUI or commandline mailclient that understands the format and you don't have tools like mimencode then you can always use OpenSSL since it's nearly always available.

Let's say you saved what you posted to a file called "text.raw". You'll have to strip the headers and whitelines and only save the actual MIME text to a file:
Code:
egrep -vie "(\-\-=|[A-Z].*:|^[[:blank:]])" text.raw > text.mime
and extract the (in this case) doc and you're done:
Code:
cat text.mime|openssl enc -d -a > text.doc
 
Old 07-13-2006, 09:18 AM   #3
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 298

Original Poster
Rep: Reputation: 30
Thumbs up

unSpawn--

Thanks!

I am using a DOS mail reader, Tapcis6. It is plain text only.

Oh. Had not heard of mimencode, but do not find it with a locate on my computer. Did find OpenSSL and will give that a go.

I did try importing the message (which I had saved as a .txt file) into Evolution, but its import wizard just stalled out.

Thanks unSpawn!
 
Old 07-13-2006, 08:02 PM   #4
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 298

Original Poster
Rep: Reputation: 30
Question

unSpawn--

It was a no-go.

When I ran the 1st command, it did not clean the headers and text message out as I thought so I used gedit to take that stuff out.

Then I ran the second command and got 846 pages of this stuff:
Quote:
��#ࡱ#�################>###�� #################^###########`#######����####U###V###W###X###_###����������������������������������� ���������������������������������������������������������������������������������������������������� ���������������������������������������������������������������������������������������������������� ���������������������������������������������������������������������������������������������������� �����������������������������������������������������������������������������������#!` ###�#�###############$H####bjbj\�\�################## ###�'##>�##>�##�?######|#######################��##########��##########��##################�######## #########################################################,#######�2######�2######�2##8####3##T###\3# #�###,#######�K######$4######$4##"###F4######F4######F4######%6######%6######%6######=E######?E##### #?E######?E##5###tE######�H######�K######�M##h###[P##�###�K##############################�<#
Actually, about 5 pages down I get some readable text which is part of the document.

I also tried cleaning it up first from all the header and message stuff, then running both commands against it. The first command takes a second or two, the second command returns almost instanteously.

OK, I also tried e-mailing this file to another address where I am set up to use Evolution to download the mail. No go either--it is exactly the same message I quote above, probably because the DOS e-mail client has stripped out all but the ascii text, I'm guessing.

Any idea what else to try?

Thanks for your help.

Last edited by dgermann; 07-13-2006 at 08:39 PM.
 
Old 07-14-2006, 06:01 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,140
Blog Entries: 54

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
It was a no-go.
Tapcis was built in the early eighties for Compuserve, so this wasn't totally unexpected, right?

You may need to convert or export Tapcis files to another generally readable format. I don't like to promote commercial software or shareware but unfortunately I haven't found any FOSS alternatives and I don't want to read 200 pages of http://www.dubner.com/tapubb/tapcis6.pdf. Looking around shows at least one other app to read stuff: search for the "TapCIS Message Reader for Windows.": "cisrd2.zip", and one to convert: "ForMorph Message Converter": http://www.pcworld.com/downloads/cou...0685&fileidx=1 . If you export try the "generic mail and news (RFC-822)" format first.
 
Old 07-14-2006, 03:10 PM   #6
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 298

Original Poster
Rep: Reputation: 30
Question

unSpawn--

Thanks for all the digging you have done in my behalf! What a
helpful person you are.

Yes, Tapcis was used for CompuServe mail for about 30 years I would guess.

It is pure ascii text files, so no translation is necessary. The file is
fully readable in gedit or vi.

So I am missing why it is necessary to translate the file from text
to say a Windows format before opening it. There is a dos program called
xferpro which will open the mime part of the file, so it seemed reasonable
to suspect there is a linux equivalent.

But an interesting sidelight is if I e-mail it to Evolution,
why Evolution cannot decode it....

Thanks unSpawn!
 
  


Reply

Tags
decoder, email, mime


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with basic PHP MIME mail tooparam Linux - Newbie 1 02-09-2006 10:11 AM
Webmail under Mozilla: Attachments of mime type image/jpeg do not open SkipHuffman Linux - Software 2 03-28-2005 08:12 AM
open webmail error "Can't create your user directory! 7/mail (No such file or directo ko_zlynn Linux - Networking 1 12-21-2003 04:00 AM
Perl - MIME/HTML mail Shak Programming 3 03-09-2003 07:43 PM
/etc/mail/sendmail.cf: line 0: cannot open: No such file or directory l_9_l Linux - General 2 02-10-2002 07:25 PM


All times are GMT -5. The time now is 09:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration