OfflineIMAP / offlineimap3

Read/sync your IMAP mailboxes (python3)
Other
455 stars 64 forks source link

offlineimap.conf: use raw strings in regex examples #206

Open lucrocha opened 2 months ago

lucrocha commented 2 months ago

Newer pythons are strict on the escape sequences allowed in normal strings, which can cause issues with regular expressions as most of them do include escape sequences that are not allowed. In those cases, the process will exit with the confusing warning: <string>:1: SyntaxWarning: invalid escape sequence '\.'

To help prevent such cases, have the sample configuration use raw strings when using regular expressions.

This PR

Add character x [x].

Additional information

Tested with my own configuration which uses regular expressions with \. escaped.

etbuira commented 2 months ago

Thanks, applied in https://github.com/IMAPMirror/imapmirror