question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Let say your inbox has 90 emails. And your code is

for msg in mailbox.fetch(limit=100):
    print(msg.uid)

It seems to stuck in the loop.

Here is the trace when i stop the debug:

 line 99, in fetch
    fetch_result = self.box.fetch(message_id, "(BODY[] UID FLAGS)" if mark_seen else "(BODY.PEEK[] UID FLAGS)")
  File "/usr/lib/python3.6/imaplib.py", line 534, in fetch
    typ, dat = self._simple_command(name, message_set, message_parts)
  File "/usr/lib/python3.6/imaplib.py", line 1196, in _simple_command
    return self._command_complete(name, self._command(name, *args))
  File "/usr/lib/python3.6/imaplib.py", line 1019, in _command_complete
    typ, data = self._get_tagged_response(tag)
  File "/usr/lib/python3.6/imaplib.py", line 1139, in _get_tagged_response
    self._get_response()
  File "/usr/lib/python3.6/imaplib.py", line 1094, in _get_response
    data = self.read(size)
  File "/usr/lib/python3.6/imaplib.py", line 305, in read
    return self.file.read(size)
KeyboardInterrupt

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ikvkcommented, Apr 23, 2020

would it mark the email already as seen to seen again?

If you mean unnecessary work, I think it depends on email server

1reaction
oaigudmundssoncommented, Apr 23, 2020

I am debugging. Will post later for more result.

Cheers

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue Limit Definition | Law Insider
Define Issue Limit. ' means 5% of the issued share capital of the Company as at 8 August 2003,
Read more >
Calculus I - Computing Limits (Practice Problems)
Here is a set of practice problems to accompany the Computing Limits section of the Limits chapter of the notes for Paul Dawkins...
Read more >
Limit Problems - Calculus - Nipissing University
Although these problems are a little more challenging, they can still be solved using the same basic concepts covered in the tutorial and...
Read more >
How to limit issue types to certain people - Atlassian Community
Solved: Hi team, I have 1 project with 2 boards. One of the boards is strictly for our internal team to use for...
Read more >
Precise Definition of Limit - UC Davis Math
It means `` the minimum value of A and B." For example, min{ 3, 7 } = 3. PROBLEM 1 : Prove that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found