-
Notifications
You must be signed in to change notification settings - Fork 22
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
Escape password and other astring tokens #56
Conversation
src/client.rs
Outdated
@@ -601,7 +607,7 @@ mod tests { | |||
let response = b"a1 OK Logged in\r\n".to_vec(); | |||
let username = "username"; | |||
let password = "password"; | |||
let command = format!("a1 LOGIN {} {}\r\n", username, password); | |||
let command = format!("a1 LOGIN {} {}\r\n", quote!(username), quote!(password)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what happened to the indentation here?
Looks good to me! See the one inline comment about a weird indent; once that's fixed, I'd be happy to merge. |
Rebased by rhn <gihu.rhn@porcupinefactory.org>
Thanks for noticing the indent - I removed some more tabs I previously missed, should be good now. |
Hmm, still there as far as I can tell? Are you sure you pushed to the right branch? |
Some notable exceptions: messagebox names are defined as `INBOX / astring`, but with this change, INBOX is also quoted. The `list-mailbox` token is not quoted, as it is not `astring`.
Rebasing is hard. I added a commit fixing indentation to be done with tabs. |
Haha, okay, thanks! |
Follow-up to @gcollura's pull request #20 , which seems somewhat stalled.
Differences: