milter.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Index: Sendmail-PMilter-0.95/lib/Sendmail/PMilter/Context.pm
  2. --- Sendmail-PMilter-0.95/lib/Sendmail/PMilter/Context.pm.orig 2004-08-04 19:07:51 +0200
  3. +++ Sendmail-PMilter-0.95/lib/Sendmail/PMilter/Context.pm 2007-02-13 22:36:55 +0100
  4. @@ -245,6 +245,12 @@
  5. $this->{symbols}{$code}{$name} = $value;
  6. }
  7. } elsif ($cmd eq SMFIC_BODYEOB) {
  8. + # SMFIC_BODYEOB is a single MILTER protocol
  9. + # command, but is carries two MILTER API
  10. + # semantics and hence (also closely following
  11. + # Sendmail's libmilter) we have to call both
  12. + # the MILTER API 'body' and 'eom' callbacks!
  13. + $this->call_hooks('body', $buf, length($buf)) if (length($buf) > 0);
  14. $this->call_hooks('eom');
  15. } elsif ($cmd eq SMFIC_HELO) {
  16. my $helo = &$split_buf;
  17. Index: sendmail-8.14.3/include/libmilter/mfapi.h
  18. --- sendmail-8.14.3/include/libmilter/mfapi.h.orig 2006-11-02 03:44:07 +0100
  19. +++ sendmail-8.14.3/include/libmilter/mfapi.h 2007-02-13 22:37:32 +0100
  20. @@ -28,7 +28,7 @@
  21. # include <sys/types.h>
  22. # include <sys/socket.h>
  23. -#include "libmilter/mfdef.h"
  24. +#include "milter/mfdef.h"
  25. # define LIBMILTER_API extern
  26. Index: sendmail-8.14.3/include/libmilter/milter.h
  27. --- sendmail-8.14.3/include/libmilter/milter.h.orig 2006-05-23 01:23:55 +0200
  28. +++ sendmail-8.14.3/include/libmilter/milter.h 2007-02-13 22:37:42 +0100
  29. @@ -18,7 +18,7 @@
  30. # define _LIBMILTER_MILTER_H 1
  31. #include "sendmail.h"
  32. -#include "libmilter/mfapi.h"
  33. +#include "milter/mfapi.h"
  34. /* socket and thread portability */
  35. # include <pthread.h>