On Thu, May 27, 2021 at 11:40:47AM -0400, post...@ptld.com wrote:

> > On 05-27-2021 11:37 am, Viktor Dukhovni wrote:
> >> On 27 May 2021, at 11:31 am, post...@ptld.com wrote:
> >> 
> >> Any other tips for parsing logs for queue ID?
> > 
> > They are non-empty strings of alphanumeric characters.  You should
> > not match the implementation more precisely than that.
> 
> But on just that logic, then "warning", "connect", "prepend" and 
> "disconnect" would be queue Id's.

Yes, that's why matching should be done in a context-sensitive way.
Those other strings don't occur in the same context as a queue-id.

For example, see the "collate" Perl code in the Postfix source distribution.

-- 
    Viktor.

Reply via email to