
cph at oce
Jan 25, 2003, 10:33 AM
Post #4 of 6
(1434 views)
Permalink
|
|
RE: ripMIME decoding of ISO encoded filenames
[In reply to]
|
|
> Chris, can you resend those patches? I've scoured through my > email here and can't seem to find them ( Must be my day of > losing things ). Ok, it appears that you might not have received the patch which I attached to the previous message. I'll include it inline below: --- ripmime-1.2.16.21-orig/mime.c Tue Nov 12 03:05:26 2002 +++ ripmime-1.2.16.21/mime.c Tue Nov 19 18:09:12 2002 @@ -2411,8 +2411,8 @@ if ( (result != -1) && ( (strstr(hinfo->filename,".mht"))||(strstr(hinfo->name,".mht"))) ) { - fprintf(stdout,"MIME_decode_encoding: Last filename was : %s\n",hinfo->name); - snprintf(hinfo->scratch,sizeof(hinfo->scratch),"%s/%s",unpackdir,hinfo->name ); + if (MIME_DNORMAL) fprintf(stdout,"MIME_decode_encoding: Last filename was : %s\n",hinfo->filename); + snprintf(hinfo->scratch,sizeof(hinfo->scratch),"%s/%s",unpackdir,hinfo->file name); MIME_unpack( unpackdir, hinfo->scratch, (hinfo->current_recursion_level+1) ); } > By the way, this isn't yet an official release ;-) So I'll > put those in. Excellent. > > mime.c:1061: warning: `encoding_type' might be used uninitialized in > > this function > > Hrmm... rather strange, what compiler are you using? This machine is running Redhat 7.3, kernel 2.4.18, gcc-2.96 and glibc-2.2.5. When I posted the last email I hadn't tested the new version, other than compiling it. I've now found a couple of problems. First, I get a segmentation fault whenever I run ripmime -d with no output directory specified. Secondly, I get the following error: --- MIME_headers:694:MIME_headers.c: In attachment name parsing, was expecting a '=' in the start of ': cph; local time: sat jan 25 15:20:40 2003; local host: pmweb7.uk1.bibliotech.net; remote host: 193.123.80.2; referer site: www.postmaster.co.uk x-complaints-to: administrator [at] postmaster message-id: <pm.2945.1043508040 [at] pmweb7> ' --- The message is: --- Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) From: "Chris Hine" <cph [at] postmaster> Subject: test To: cph [at] oce Date: Sat, 25 Jan 2003 15:20:40 +0000 X-Postmaster: Sent from Postmaster http://www.postmaster.co.uk/, the world's premier free web-based email service, based in London, England. X-Postmaster-Trace: Account name: cph; Local time: Sat Jan 25 15:20:40 2003; Local host: pmweb7.uk1.bibliotech.net; Remote host: 10.10.10.10; Referer site: www.postmaster.co.uk X-Complaints-To: Administrator [at] postmaster Message-Id: <PM.2945.1043508040 [at] pmweb7> test --- Ripmime does correctly create a textfile0 with just 'test' in it. If you need any more details, just ask. Chris
|