Skip to content

Conversation

@gildea
Copy link
Contributor

@gildeagildea 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.
@gildeagildea requested a review from a team as a code ownerApril 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.

@arhadthedevarhadthedev added stdlib Standard Library Python modules in the Lib/ directory topic-email labels Apr 27, 2023
@gpsheadgpshead self-assigned this Nov 11, 2023
@gpsheadgpshead added the type-feature A feature request or enhancement label Nov 11, 2023
@gpsheadgpshead removed the request for review from a teamNovember 11, 2023 17:23
@gpshead
Copy link
Member

(closing and reopening to re-trigger CI)

@gpsheadgpshead closed this Nov 11, 2023
@gpsheadgpshead reopened this Nov 11, 2023
@gpsheadgpshead enabled auto-merge (squash) November 11, 2023 17:34
@gpsheadgpshead merged commit 38035fe into python:mainNov 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlibStandard Library Python modules in the Lib/ directorytopic-emailtype-featureA feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@gildea@bedevere-bot@gpshead@arhadthedev