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

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

    <bug>
          <bug_id>48791</bug_id>
          
          <creation_ts>2023-12-13 15:59:24 +0300</creation_ts>
          <short_desc>getmail не запускается...</short_desc>
          <delta_ts>2026-09-06 17:50:01 +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>getmail</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Иван">pidgin</reporter>
          <assigned_to name="real@altlinux.org">real</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>glebfm</cc>
    
    <cc>kotopesutility</cc>
    
    <cc>rider</cc>
    
    <cc>root</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>238948</commentid>
    <comment_count>0</comment_count>
    <who name="Иван">pidgin</who>
    <bug_when>2023-12-13 15:59:24 +0300</bug_when>
    <thetext>altlinux ~ $ getmail
/usr/lib/python3/site-packages/getmailcore/utilities.py:588: SyntaxWarning: &quot;is&quot; with a literal. Did you mean &quot;==&quot;?
  if ssl_fingerprints is ():

Exception: please read docs/BUGS and include the following information in any bug report:

  getmail version 5.14
  Python version 3.9.16 (main, Mar 21 2023, 10:12:38) 
[GCC 10.3.1 20210703 (ALT Sisyphus 10.3.1-alt2)]

Unhandled exception follows:
    File &quot;/usr/bin/getmail&quot;, line 833, in main
    except configparser.NoSectionError as o:
  UnboundLocalError: local variable &apos;configparser&apos; referenced before assignment

Please also include configuration information from running getmail
with your normal options plus &quot;--dump&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238950</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2023-12-13 16:16:29 +0300</bug_when>
    <thetext>Воспроизводится в сизифе:
$ getmail
/usr/lib/python3/site-packages/getmailcore/utilities.py:588: SyntaxWarning: &quot;is&quot; with a literal. Did you mean &quot;==&quot;?
  if ssl_fingerprints is ():

Exception: please read docs/BUGS and include the following information in any bug report:

  getmail version 5.14
  Python version 3.11.6 (main, Oct  7 2023, 08:19:37) [GCC 13.2.1 20230817 (ALT Sisyphus 13.2.1-alt2)]

Unhandled exception follows:
    File &quot;/usr/bin/getmail&quot;, line 833, in main
    except configparser.NoSectionError as o:
           ^^^^^^^^^^^^
  UnboundLocalError: cannot access local variable &apos;configparser&apos; where it is not associated with a value

Please also include configuration information from running getmail
with your normal options plus &quot;--dump&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296165</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2026-09-06 16:09:23 +0300</bug_when>
    <thetext>Проверка актуальности: воспроизводится на текущем Сизифе (getmail 5.14-alt1, Python 3.14), достаточно пустого ~/.getmail/getmailrc.

getmail 5.14 — программа для Python 2 (апстрим остановился в 2019), и её порт на python3 в пакете сломан системно, а не в одном месте:
1. /usr/bin/getmail:633 — локальная переменная configparser = configparser.RawConfigParser(...) затеняет модуль, поэтому except configparser.NoSectionError (строка 833) даёт UnboundLocalError из репорта (а после присваивания — AttributeError);
2. там же используется readfp(), удалённый в Python 3.12;
3. конфиг открывается open(path, &apos;rb&apos;), а configparser в py3 требует текстовый поток;
4. getmailcore/baseclasses.py: InstanceType = type(_C()) — в py2 это был types.InstanceType, в py3 это конкретный класс _C, поэтому проверка ConfInstance (параметр configparser у всех retriever&apos;ов) в py3 не проходит никогда.

Пробовал исправлять по порядку — после устранения первых трёх упирается в четвёртое. Чинить этот порт смысла нет: есть getmail6 (https://github.com/getmail6/getmail6) — поддерживаемый форк на python3 с тем же форматом getmailrc, на него перешли Debian и Fedora. Предлагаю заменить пакет на getmail6, а этот баг закрыть при замене.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296269</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-09-06 17:50:01 +0300</bug_when>
    <thetext>getmail-6.20.01-alt1 -&gt; sisyphus:

Sun Sep 06 2026 Anton Farygin &lt;rider@altlinux&gt; 6.20.01-alt1
- 6.20.01 (switch to getmail6, Python 3 fork of getmail 5.14) (Closes: #48791)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>