KEMBAR78
gh-90890: New methods to access mailbox.Maildir message info and flags by gildea · Pull Request #103905 · python/cpython · GitHub
Skip to content

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 Standard Library Python modules in the Lib/ directory 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 <greg@krypto.org>
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 <greg@krypto.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlib Standard Library Python modules in the Lib/ directory topic-email type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants