over my head again ...

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
hamei
Posts: 10004
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

over my head again ...

Unread postby hamei » Thu Oct 25, 2012 8:12 pm

Trying to read some winmail.dat files, tnef should do it ?

http://tnef.sourceforge.net/

Code: Select all

cc-1196 cc: WARNING File = tnef.c, Line = 373
  The indicated function is declared implicitly.

          free_bodies(body.text_body, 1);
          ^

cc-1196 cc: WARNING File = tnef.c, Line = 378
  The indicated function is declared implicitly.

          free_bodies(body.rtf_bodies, rtf_size);
          ^

cc-1196 cc: WARNING File = tnef.c, Line = 383
  The indicated function is declared implicitly.

          free_bodies(body.html_bodies, html_size);
          ^

cc-1153 cc: ERROR File = tnef.c, Line = 389
  Declaration is incompatible with previous "free_bodies" (declared at line 373).

  void free_bodies(VarLenData **bodies, int len)
       ^


Cecil, where are you ?

User avatar
mia
Posts: 976
Joined: Wed Feb 19, 2003 1:54 pm

Re: over my head again ...

Unread postby mia » Thu Oct 25, 2012 9:20 pm

Attached is a tnef binary and a slightly modified tnef.c

Cheers.
Attachments
tnef.gz
(38.45 KiB) Downloaded 29 times
tnef.c
(8.51 KiB) Downloaded 30 times
:Onyx2:

hamei
Posts: 10004
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: over my head again ...

Unread postby hamei » Thu Oct 25, 2012 10:57 pm

mia wrote:Attached is a tnef binary and a slightly modified tnef.c

Works like a charm, thank you.

If you have a moment to explain what you did I might get a little smarter. Or then again, maybe not :P

Maybe I should try to make a nekodist ... this is a useful mail utility.

User avatar
mia
Posts: 976
Joined: Wed Feb 19, 2003 1:54 pm

Re: over my head again ...

Unread postby mia » Thu Oct 25, 2012 11:21 pm

I have no idea what it does...
I didn't do much, just moved a few things around really. 2-3 lines diff.
:Onyx2:

hamei
Posts: 10004
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: over my head again ...

Unread postby hamei » Thu Oct 25, 2012 11:41 pm

mia wrote:I have no idea what it does ...

tnef ? When you get emails with winmail.dat attachments that nothing but Outlook can read, this decodes them. Works nicely, I already exposed several forwarded attachments.

Thanks again.

User avatar
geo
Posts: 525
Joined: Tue Jul 21, 2009 5:07 am
Location: Shenzhen, P.R.C

Re: over my head again ...

Unread postby geo » Thu Oct 25, 2012 11:53 pm

i think he just added

Code: Select all

void free_bodies(VarLenData **, int);
to address the warnings and error
gcc is not so strict than mipspro :)

also

Code: Select all

char *mime;
was moved to proper location ;)
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 1 guest