On 2025-01-30 09:49:40 +0100, Vincent Lefevre wrote:
> On 2025-01-30 08:13:43 +0100, Johannes Schauer Marin Rodrigues wrote:
> > If you look at mailgraph in Trixie, it still uses the same regex:
> > 
> > https://sources.debian.org/src/mailgraph/1.14-22/mailgraph.pl/#L229
> 
> You're looking at the wrong place. It should use the regexp at
> 
> https://sources.debian.org/src/mailgraph/1.14-22/mailgraph.pl/#L212
> 
>             ($year, $mon, $day, $hour, $min, $sec, $host, $text) = $str =~ /^
>                 (\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+)\S+  # datetime
>                 \s+
>                 (\S+)                                   # host
>                 \s+
>                 (.*)                                    # text
>                 $/x or do
> 
> At least this works for me on bookworm.

Well, mailgraph 1.14-22 has an additional test at

  https://sources.debian.org/src/mailgraph/1.14-22/mailgraph.pl/#L211

        if($self->{type} eq 'rsyslog') {

which was not present in my patch there:

  
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1051496;filename=mailgraph-hiprec-fmt.patch;msg=10

I don't know why the maintainer had to add this test.

My local copy on bookworm is just based on my patch.

-- 
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