Re: [Exim] message_body_size bug?

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: Phil Chambers
CC: exim-users
Asunto: Re: [Exim] message_body_size bug?
On Wed, 19 Sep 2001, Phil Chambers wrote:

> I have encountered what looks like a bug with the $message_body_size filter
> variable, using version 3.33.


This patch should fix the bug. Please let me know if it does.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



*** exim-3.33/src/filter.c  Wed Aug 15 12:09:09 2001
--- filter.c    Mon Sep 24 12:00:37 2001
***************
*** 2566,2572 ****
  BOOL
  filter_runtest(int fd, BOOL is_system, BOOL dot_ended)
  {
! int rc, body_len, action;
  register int ch;
  BOOL yield, delivered;
  struct stat statbuf;
--- 2566,2572 ----
  BOOL
  filter_runtest(int fd, BOOL is_system, BOOL dot_ended)
  {
! int rc, body_len, action, header_size;
  register int ch;
  BOOL yield, delivered;
  struct stat statbuf;
***************
*** 2658,2663 ****
--- 2658,2664 ----
  s = message_body_end;
  body_len = 0;
  body_linecount = 0;
+ header_size = message_size;


  if (!dot_ended && !feof(stdin))
    {
***************
*** 2713,2718 ****
--- 2714,2720 ----
    }


message_body[body_len] = 0;
+ message_body_size = message_size - header_size;

/* body_len stops at message_body_visible; it if got there, we may have
wrapped round in message_body_end. */