Skip to content

how to use WellKnownFolderName #1087

Answered by ecederstrand
Irracionald73 asked this question in Q&A
Discussion options

You must be logged in to vote

Is this a new or existing message? If it exists, you can do some_message.move(account.drafts). If it's a new folder, just set the folder attribute before calling .save(): Message(folder=account.drafts, ...).save()

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Irracionald73
Comment options

@ecederstrand
Comment options

Answer selected by Irracionald73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants