Skip to content

APPEND support is incomplete #60

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

Closed
cyphar opened this issue Dec 27, 2017 · 1 comment
Closed

APPEND support is incomplete #60

cyphar opened this issue Dec 27, 2017 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@cyphar
Copy link

cyphar commented Dec 27, 2017

At the moment APPEND only supports setting the body of the message. However, RFC3501 allows users to specify the flag set to be applied to a message, as well as the date the message was received. Quoting the specification:

6.3.11. APPEND Command

   Arguments:  mailbox name
               OPTIONAL flag parenthesized list
               OPTIONAL date/time string
               message literal

We could change the append method to:

use chrono::DateTime;
use chrono::offset::Utc;

fn append(&mut self, folder: &str,
          flags: Vec<String>,
          datetime: DateTime<Utc>,
          message: &[u8]) { /* ... */ } 
@jonhoo
Copy link
Collaborator

jonhoo commented Nov 23, 2018

Let's move further discussion to jonhoo/rust-imap#60.

@jonhoo jonhoo closed this as completed Nov 23, 2018
mtorromeo pushed a commit to mtorromeo/rust-imap that referenced this issue Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants