-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Description
First off, thank you for your work on this crate.
I'm having trouble getting almost all session methods to work with authenticating with an app password with gmail
let domain = "...";
let tls = TlsConnector::builder().build().unwrap();
let client = imap::connect((domain, 993), domain, &tls)
.expect(&format!("failed to connect to {}", domain));
let mut session = client.login(username, app_password).expect("failed to authenticate with domain");
println!("{:#?}", session. select("INBOX").expect("failed to select inbox"));
In this example and many others I'll get Parse(Invalid(...))
errors. When I view the bytes as a string in this case I see
"* FLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen $NotPhishing $Phishing OIB-Seen-INBOX OIB-Seen-OIB/Business OIB-Seen-OIB/Entertainment OIB-Seen-OIB/Finance OIB-Seen-OIB/Groups OIB-Seen-OIB/Home OIB-Seen-OIB/Jobs OIB-Seen-OIB/News OIB-Seen-OIB/Shopping OIB-Seen-OIB/Social Networking OIB-Seen-OIB/Travel OIB-Seen-[Gmail]/All Mail OIB-Seen-[Gmail]/Important OIB-Seen-[Gmail]/Spam OIB-Seen-[Gmail]/Trash)\r\n"
I'm not familiar with imap at the protocol level but am I missing something here?
Metadata
Metadata
Assignees
Labels
No labels