Public bug reported:

When running offlineimap, it gives several SyntaxWarnings:

/usr/lib/python3/dist-packages/imaplib2.py:2472: SyntaxWarning: invalid escape 
sequence '\D'
  ('store', ('1', 'FLAGS', '(\Deleted)')),
/usr/lib/python3/dist-packages/imaplib2.py:2577: SyntaxWarning: invalid escape 
sequence '\D'
  run('uid', ('STORE', uid[-1], 'FLAGS', '(\Deleted)'))
/usr/lib/python3/dist-packages/imaplib2.py:2591: SyntaxWarning: invalid escape 
sequence '\S'
  run('store', (num, '-FLAGS', '(\Seen)'), cb=False),
/usr/lib/python3/dist-packages/imaplib2.py:2594: SyntaxWarning: invalid escape 
sequence '\D'
  run('uid', ('STORE', num, 'FLAGS', '(\Deleted)'))

I assume this results from changes in Python 3.12 where now raw strings
are used for regular expressions.

Description:    Ubuntu 24.04.1 LTS
Release:        24.04
offlineimap 7.3.3+dfsg1-1+0.0~git20231218.d29a4dc+dfsg-3ubuntu1

This has already been fixed upstream:
https://github.com/jazzband/imaplib2/pull/50
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074492

** Affects: offlineimap (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2096731

Title:
  offlineimap giving SyntaxWarnings

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/offlineimap/+bug/2096731/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to