Skip to content
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

ActiveSync: Upload draft message #377

Open
benbucksch opened this issue Jan 13, 2025 · 7 comments
Open

ActiveSync: Upload draft message #377

benbucksch opened this issue Jan 13, 2025 · 7 comments
Assignees

Comments

@benbucksch
Copy link
Collaborator

benbucksch commented Jan 13, 2025

Implement function ActiveSyncFolder.addMessage(message: EMail).
You can assume that message.mime is populated.

Use cases:

  • Move or copy a message between accounts (or protocols)
  • Save Draft
@benbucksch benbucksch changed the title ActiveSync: Uploade MIME message ActiveSync: Upload MIME message Jan 13, 2025
@NeilRashbrook
Copy link
Collaborator

This isn't possible in ActiveSync.

@NeilRashbrook NeilRashbrook reopened this Jan 13, 2025
@NeilRashbrook NeilRashbrook closed this as not planned Won't fix, can't repro, duplicate, stale Jan 13, 2025
@NeilRashbrook
Copy link
Collaborator

(Ugh, GitHub's issue closing UI sucks...)

@benbucksch
Copy link
Collaborator Author

@NeilRashbrook Is there a way to save Drafts?

@benbucksch
Copy link
Collaborator Author

https://msopenspecs.azureedge.net/files/MS-ASCMD/%5bMS-ASCMD%5d.pdf
Section 2.2.3.7.2 Add (Sync), page 75
"Add ... cannot be used to add any non-draft email items from the client to the server, or to modify the contents of the recipient information cache. Draft email items are not supported in protocol versions ... 14.1 [and below]. If a client attempts to add a non-draft email to the server, a Status element with a value of 6 is returned as a child of the Add element."

So, drafts should be possible. We need this function at least for drafts.

@benbucksch benbucksch reopened this Jan 14, 2025
@NeilRashbrook
Copy link
Collaborator

Problems:

  • Outlook.com accounts don't support 16.0.
  • Draft email items don't support MIME.

@benbucksch
Copy link
Collaborator Author

benbucksch commented Jan 14, 2025

Outlook.com accounts don't support 16.0.

Luckily, we're using IMAP as default protocol for outlook.com . (Second choice is OWA, and only the last choice is ActiveSync.)

For those who specifically chose ActiveSync: Too bad for these users. They won't have drafts.

What about Office365? Does it support 16.0 or 16.1?

Draft email items don't support MIME.

Can you upload the msg in ActiveSync format, based on the values form the EMail object? Including attachments?

(Given that ActiveSync is problematic, please implement in the order: EWS, OWA, ActiveSync.)

@benbucksch benbucksch changed the title ActiveSync: Upload MIME message ActiveSync: Upload draft message Jan 14, 2025
@NeilRashbrook
Copy link
Collaborator

I believe Office 365 does support 16.x.

Messages can be uploaded with attachments. Inline images will need an appropriate content ID (and src="cid:...").

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

No branches or pull requests

2 participants