Package: graphdefang
Version: 2.84-3+b2
Severity: normal
Tags: newcomer patch

Dear Maintainer,

I use mimedefang to filter mail for postfix as my MTS, and the packaged event 
filter in 
/usr/share/graphdefang/event/mimedefang.pl/general assumes that the system MTS 
is sendmail.

Sendmail uses 14-character mail ID strings and postfix uses 9-character ID 
strings.

Attached is a patch that changes the mimedefang.pl/general file to accept both 
sendmail
and postfix strings logged by mimedefang.pl

I don't know what other MTS/mimedefang combinations exist so....


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages graphdefang depends on:
ii  libfile-readbackwards-perl  1.05-2
ii  libgd-graph-perl            1.54~ds-2
ii  libgd-text-perl             0.86-9
ii  libmldbm-perl               2.05-2
ii  libtimedate-perl            2.3000-2
ii  perl [libstorable-perl]     5.30.0-9

Versions of packages graphdefang recommends:
ii  php           2:7.3+69
ii  php7.0 [php]  7.0.31-1
ii  php7.2 [php]  7.2.11-3
ii  php7.3 [php]  7.3.12-1

Versions of packages graphdefang suggests:
ii  mimedefang  2.84-3+b2

-- Configuration Files:
/etc/graphdefang/graphdefang-config changed [not included]

-- no debconf information
*** general.dpkg-dist   2019-12-10 13:07:53.707823878 -0600
--- general     2019-12-10 13:23:07.296896371 -0600
***************
*** 10,16 ****
  
  $event{'mimedefang.pl'}{'general'} = 
  sub {
!       if ($text =~ 
m/^[A-Za-z0-9]{14}:\s*MDLOG,\S+?,(\S+?),(\S*?),(\S*?),(.*?),(.*?),(.*)$/ ) {
  
                # get values from regular expression
  
--- 10,16 ----
  
  $event{'mimedefang.pl'}{'general'} = 
  sub {
!       if ($text =~ 
m/(?:^[A-Za-z0-9]{9}|^[A-Za-z0-9]{14}):\s*MDLOG,\S+?,(\S+?),(\S*?),(\S*?),(.*?),(.*?),(.*)$/
 ) {
  
                # get values from regular expression
  

Reply via email to