Re: [Exim] NULL / filter

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Patrice Fournier
Date:  
À: exim-users, Philip Hazel
CC: Chris Edwards, exim-users
Sujet: Re: [Exim] NULL / filter
You probably want to change the 3.35 patch so that it doesn't check only
the last char of the body... (body++ does counter the len--) Here's a
manually edited patch, hope I didn't forget something (I don't generally
use that format for patches):

-----------------------------------------------------------------------
*** exim-3.35/src/expand.c  Tue Feb 19 10:10:43 2002
--- expand.c    Mon Mar 11 17:00:01 2002
***************
*** 572,580 ****
        lseek(deliver_datafile, start_offset, SEEK_SET);
        len = read(deliver_datafile, body, len);
        if (len >= 0) body[len] = 0;
!       while (*body != 0)
          {
!         if (*body == '\n') *body = ' ';
!         body++;
          }
        }
--- 572,579 ----
        lseek(deliver_datafile, start_offset, SEEK_SET);
        len = read(deliver_datafile, body, len);
        if (len >= 0) body[len] = 0;
!       while (len > 0)
          {
!         if (body[--len] == '\n' || body[len] == 0) body[len] = ' ';
          }
        }
-----------------------------------------------------------------------



--
Patrice Fournier
pfournier@???