Re: [Exim] Re:TNEF Problems

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tom Kistner
Dátum:  
Címzett: Riccardo Baldanzi, 'exim-users@exim.org'
Tárgy: Re: [Exim] Re:TNEF Problems
This is a multi-part message in MIME format.
--
Riccardo Baldanzi wrote:

> Here my files. I've sent you also 2 days ago may scan dir.


OK, it does seem to crash when calling the TNEF functions on the spooled
files. I call that function on ALL files (best effort). It seems to
crash when it gets to check the .eml file for TNEF content.

The attached patch to demime.c changes it so that it only triggers on
winmail.dat files. Please apply it, then test again.

Thanks,

/tom

--
--- demime.c-org    Thu Feb 19 12:00:33 2004
+++ demime.c    Thu Feb 19 12:02:04 2004
@@ -126,7 +126,7 @@
       /* break on end of list */
       if (entry == NULL) break;
       snprintf(CS filepath,1024,"%s/%s",directory,entry->d_name);
-      if ( (Ustrcmp(entry->d_name,"..") != 0) && (Ustrcmp(entry->d_name,".") != 0) ) {
+      if ( (Ustrcmp(entry->d_name,"..") != 0) && (Ustrcmp(entry->d_name,".") != 0) && (Ustrcmp(entry->d_name,"winmail.dat") == 0) ) {
         TNEF_set_path(CS directory);
       n = TNEF_main(CS filepath);
     };
--