Poplib issue with LIST/STAT (-ERR Command not understood)

オープン
#94,019 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
networking

調査の方向性

poplib.POP3_SSL と再現可能な LIST 呼び出しから始め、デバッグレベルのコマンド交換を成功した TELNET セッションと比較します。報告された Python のバージョンと環境で動作を再現します。LIST/STAT が異なる理由を特定し、報告されたメールボックスコマンドが想定どおり動作することを確認できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

stdlib topic-email type-bug

Bug report

The GMAIL POP3 server does not understand the LIST/STAT command when being sent via poplib. Sending those commands on the same exact mailbox via TELNET works. Initially, I thought this is a GMAIL issue, but after doing the manual TELNET login and message retrieval, it seems something else is going on.

I tried for several days to find a solution via StackOverflow, Google and Discord, but no one could give me an answer.

Reproducible code:

import poplib
mail_box = poplib.POP3_SSL(SERVER, PORT)
mail_box.set_debuglevel(2)
mail_box.user(USER)
mail_box.pass_(PASSWORD)
mail_box.list()[1]

SUCCESS - Manual TELNET test for the mailbox:

image

FAILED - Poplib outcome with reproducible code:

image

Your environment

  • CPython versions tested on: Python 3.8.10, Python 3.9.7
  • Operating system and architecture: Win11, Win10, Ubuntu 20.04.3 LTS
主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python/cpython のほかの issue

python/cpython の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。