Package: mailgraph
Version: 1.14-20
Severity: grave
Justification: renders package unusable

mailgraph no longer works after the upgrade to bookworm, and
this is probably due to the fact that it does not support the
new syslog format: /usr/sbin/mailgraph contains

sub _next_syslog($)
{
[...]
    line: while(defined (my $str = $self->_next_line)) {
        # date, time and host 
        $str =~ /^
            (\S{3})\s+(\d+)      # date  -- 1, 2
            \s
            (\d+):(\d+):(\d+)    # time  -- 3, 4, 5
            (?:\s<\w+\.\w+>)?    # FreeBSD's verbose-mode
            \s
            ([-\w\.\@:]+)        # host  -- 6
            \s+
            (?:\[LOG_[A-Z]+\]\s+)?  # FreeBSD
            (.*)                 # text  -- 7
            $/x or do
        {
            warn "WARNING: line not in syslog format: $str";
            next line;
        };

and this format is no longer correct.

There's a git repository where this bug seems to have been fixed
5 years ago:

  https://gist.github.com/mdklapwijk/4f8d2fc39f09f4aa615cbf8ffae0379a

-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-11-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mailgraph depends on:
ii  debconf [debconf-2.0]      1.5.82
ii  init-system-helpers        1.65.2
ii  libfile-tail-perl          1.3-7
ii  librrds-perl               1.7.2-4+b8
ii  lsb-base                   11.6
ii  perl                       5.36.0-7
ii  sysvinit-utils [lsb-base]  3.06-4
ii  ucf                        3.0043+nmu1

Versions of packages mailgraph recommends:
ii  apache2 [httpd]                 2.4.57-2
ii  postfix [mail-transport-agent]  3.7.6-0+deb12u2

mailgraph suggests no packages.

-- debconf information:
  mailgraph/start_on_boot: true
  mailgraph/ignore_localhost: false
  mailgraph/mail_log: /var/log/mail.log

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to