<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>42236</bug_id>
          
          <creation_ts>2022-03-24 14:06:51 +0300</creation_ts>
          <short_desc>offlineimap неработоспособен</short_desc>
          <delta_ts>2022-08-31 09:56:29 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>offlineimap</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=39793</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Sheplyakov">asheplyakov</reporter>
          <assigned_to name="asheplyakov@altlinux.org">asheplyakov</assigned_to>
          <cc>asheplyakov</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>208835</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2022-03-24 14:06:51 +0300</bug_when>
    <thetext>$ offlineimap -c ~/.config/offlineimap/offlineimap.conf 
/usr/lib/python3/site-packages/offlineimap/repository/IMAP.py:548: SyntaxWarning: &quot;is&quot; with a literal. Did you mean &quot;==&quot;?
  if foldername is &apos;&apos;:
/usr/lib/python3/site-packages/offlineimap/imapserver.py:105: SyntaxWarning: &quot;is not&quot; with a literal. Did you mean &quot;!=&quot;?
  and self.tlslevel is not &quot;tls_compat&quot; \
OfflineIMAP 7.3.3
  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v2.101 (bundled), Python v3.9.6, OpenSSL 1.1.1n  15 Mar 2022
Account sync basealt:
 *** Processing account basealt
 Establishing connection to air.basealt.ru:993 (basealt-imap)
 ERROR: While attempting to sync account &apos;basealt&apos;
  IMAP4 protocol error: program error: &lt;class &apos;TypeError&apos;&gt; - cannot use a bytes pattern on a string-like object
 *** Finished account &apos;basealt&apos; in 0:00
ERROR: can&apos;t have text and binary mode at once
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account &apos;basealt&apos;
  IMAP4 protocol error: program error: &lt;class &apos;TypeError&apos;&gt; - cannot use a bytes pattern on a string-like object

Traceback:
  File &quot;/usr/lib/python3/site-packages/offlineimap/accounts.py&quot;, line 293, in syncrunner
    self.__sync()
  File &quot;/usr/lib/python3/site-packages/offlineimap/accounts.py&quot;, line 372, in __sync
    remoterepos.getfolders()
  File &quot;/usr/lib/python3/site-packages/offlineimap/repository/IMAP.py&quot;, line 452, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File &quot;/usr/lib/python3/site-packages/offlineimap/imapserver.py&quot;, line 557, in acquireconnection
    imapobj = imaplibutil.WrappedIMAP4_SSL(
  File &quot;/usr/lib/python3/site-packages/offlineimap/imaplibutil.py&quot;, line 202, in __init__
    super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)
  File &quot;/usr/lib/python3/site-packages/offlineimap/bundled_imaplib2.py&quot;, line 2191, in __init__
    IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)
  File &quot;/usr/lib/python3/site-packages/offlineimap/bundled_imaplib2.py&quot;, line 399, in __init__
    self.welcome = self._request_push(name=&apos;welcome&apos;, tag=&apos;continuation&apos;).get_response(&apos;IMAP4 protocol error: %s&apos;)[1]
  File &quot;/usr/lib/python3/site-packages/offlineimap/bundled_imaplib2.py&quot;, line 200, in get_response
    raise typ(exc_fmt % str(val))

ERROR: can&apos;t have text and binary mode at once</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214251</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2022-08-31 09:56:29 +0300</bug_when>
    <thetext>offlineimap-8.0.0-alt1 -&gt; sisyphus:

 * Wed Aug 31 2022 Alexey Sheplyakov &lt;asheplyakov@altlinux&gt; 8.0.0-alt1
 - Revived offlineimap, version 8.0.0 (Closes: #42236, #39793, #33735)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>