Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
HADB committed May 16, 2024
1 parent 7bf2ee2 commit d0ebe08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yuanfen/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def fetch(self, message_id: str, content_type: str = None):
connection.login(self.address, self.password)
connection.select()
_, msg_data = connection.uid("fetch", message_id, "(RFC822)")
if not msg_data:
if not msg_data[0]:
return None
raw = email.message_from_bytes(msg_data[0][1])
mail_info = {}
Expand Down

0 comments on commit d0ebe08

Please sign in to comment.