[pfx] Re: Errors in collate output
Doug Hardie via Postfix-users <[email protected]> Thu, 7 May 2026 13:37:49 -0700
| Newsgroups | gmane.mail.postfix.user |
|---|---|
| Message-ID | <[email protected]> |
> On May 7, 2026, at 03:12, Viktor Dukhovni via Postfix-users <[email protected]> wrote: > > On Wed, May 06, 2026 at 11:56:35PM -0700, Doug Hardie via Postfix-users wrote: > >> Starting this week, I am seeing errors output from collate. The simple reproduction is the one line filel >> >> mail# ./collate xxx >> Use of uninitialized value in concatenation (.) or string at ./collate line 114, <> line 1. >> May 5 09:05:34 mail postfix/bounce[58560]: 4g93JP3FQkzMw76: sender non-delivery notification: 4g93JZ0174zMw7B > > Your version appears to be slightly different from the one included with > Postfix source, there's "." concatenation on line 114. But it seems > that my personal copy has changed since and includes the below "fix": > > --- a/auxiliary/collate/collate.pl > +++ b/auxiliary/collate/collate.pl > @@ -124,4 +124,3 @@ while (<>) { > } > - $transaction{$newid} = > - $_ . $transaction{$newid}; > + $transaction{$newid} = $_ . ($transaction{$newid} // ""); > $seqno{$newid} = ++$i if (! exists $seqno{$newid}); Thanks Viktor. I didn't know that collate was included in the postfix distribution. I use the FreeBSD package system and apparently it does not include it. I got a copy from the port from postfix-3.11 and it had the same issue. I updated it with the patch above, and now it works without any errors. -- Doug _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]