Skip to content

Allow importing EML files into any mailbox folder (not just INBOX)#2104

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/allow-import-eml-sent-mailbox
Draft

Allow importing EML files into any mailbox folder (not just INBOX)#2104
Copilot wants to merge 2 commits intomasterfrom
copilot/allow-import-eml-sent-mailbox

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

PUT /api/Messages hardcoded the destination folder to INBOX. This adds an optional folderName query parameter so callers can import into any folder (e.g. Sent), defaulting to INBOX for backward compatibility.

Changes

  • MessagesController.cs — Added optional folderName parameter (default: MailboxFolder.INBOX) to ImportMessage; folder lookup now uses it instead of the hardcoded constant
  • ApiClient/MessagesController.tsimport_url and import accept an optional folderName (default: "INBOX") appended as a query parameter
  • messagelist.vue — Import call now passes selectedFolder so files are imported into whichever folder the user is currently viewing

API

PUT /api/Messages?mailboxName=Default&folderName=Sent
Content-Type: message/rfc822

<eml content>

Copilot AI linked an issue Apr 6, 2026 that may be closed by this pull request
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 6, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@rnwood
Copy link
Copy Markdown
Owner

rnwood commented Apr 6, 2026

@copilot in the UI when uploading, upload to the currently selected folder

Copilot AI changed the title [WIP] Add option to import EML files in the Sent mailbox Allow importing EML files into any mailbox folder (not just INBOX) Apr 6, 2026
Copilot AI requested a review from rnwood April 6, 2026 08:01
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 6, 2026

@copilot in the UI when uploading, upload to the currently selected folder

This was already included in the previous commit (24dfe56) — messagelist.vue line 399 passes this.selectedFolder to the import call, so EML files are imported into whichever folder is currently selected in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow importing EML files in the Sent mailbox

2 participants