mail: add optional whitespace to regex

This commit is contained in:
Christophe Siraut 2020-09-10 16:55:12 +02:00
parent 8e4088be2a
commit b6d0c87fa9
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ patterns = {'ignore': re.compile('([\d-]+) ([\d:]+)? .*(Start queue run|End queu
'|TLS error|log string overflowed|cancelled by timeout|PRDR'
'|Key usage violation in certificate has been detected.: delivering unencrypted'
'|SIGHUP received: re-exec daemon).*'),
'match': re.compile('(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d)? ([\w\d\-]+) (<=|=>|->|==|\*\*|Completed|SMTP error|Message is frozen|Frozen|Unfrozen)\s*(.*)$'),
'match': re.compile('(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d)? ?([\w\d\-]+) (<=|=>|->|==|\*\*|Completed|SMTP error|Message is frozen|Frozen|Unfrozen)\s*(.*)$'),
}