Skip to content

gh-90890: New methods to access mailbox.Maildir message info and flags #103905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 11, 2023

Conversation

gildea
Copy link
Contributor

@gildea gildea commented Apr 26, 2023

Add these new methods to mailbox.Maildir :
get_info, set_info, get_flags, set_flags, add_flag, remove_flag.

These methods speed up accessing a message's info and/or flags and are useful when it is not necessary to access the message's contents, as when iterating over a Maildir to find messages with specific flags.

get_info, set_info, get_flags, set_flags, add_flag, remove_flag.

These methods speed up accessing a message's info and/or flags and are
useful when it is not necessary to access the message's contents,
as when iterating over a Maildir to find messages with specific flags.
@gildea gildea requested a review from a team as a code owner April 26, 2023 23:07
@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@arhadthedev arhadthedev added stdlib Python modules in the Lib dir topic-email labels Apr 27, 2023
@gpshead gpshead self-assigned this Nov 11, 2023
@gpshead gpshead added the type-feature A feature request or enhancement label Nov 11, 2023
@gpshead gpshead removed the request for review from a team November 11, 2023 17:23
@gpshead
Copy link
Member

gpshead commented Nov 11, 2023

(closing and reopening to re-trigger CI)

@gpshead gpshead closed this Nov 11, 2023
@gpshead gpshead reopened this Nov 11, 2023
@gpshead gpshead enabled auto-merge (squash) November 11, 2023 17:34
@gpshead gpshead merged commit 38035fe into python:main Nov 11, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…d flags (python#103905)

New methods to access mailbox.Maildir message info and flags:
get_info, set_info, get_flags, set_flags, add_flag, remove_flag.

These methods speed up accessing a message's info and/or flags and are
useful when it is not necessary to access the message's contents,
as when iterating over a Maildir to find messages with specific flags.

---------

* Add more str type checking
* modernize to f-strings instead of %

Co-authored-by: Gregory P. Smith <[email protected]>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…d flags (python#103905)

New methods to access mailbox.Maildir message info and flags:
get_info, set_info, get_flags, set_flags, add_flag, remove_flag.

These methods speed up accessing a message's info and/or flags and are
useful when it is not necessary to access the message's contents,
as when iterating over a Maildir to find messages with specific flags.

---------

* Add more str type checking
* modernize to f-strings instead of %

Co-authored-by: Gregory P. Smith <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir topic-email type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants