rust-imap icon indicating copy to clipboard operation
rust-imap copied to clipboard

add gmail app password example

Open softprops opened this issue 6 years ago • 8 comments

this adds a new example to help illustrate a reproducible case for https://github.com/jonhoo/rust-imap/issues/106 and an alternative to oauth2 tokens for users of this crate in the future


This change is Reviewable

softprops avatar Jan 05 '19 16:01 softprops

Codecov Report

Merging #107 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #107   +/-   ##
=======================================
  Coverage   78.74%   78.74%           
=======================================
  Files          11       11           
  Lines        1167     1167           
=======================================
  Hits          919      919           
  Misses        248      248

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ead7d21...8a43957. Read the comment docs.

codecov[bot] avatar Jan 05 '19 17:01 codecov[bot]

Codecov Report

Merging #107 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #107   +/-   ##
=======================================
  Coverage   78.74%   78.74%           
=======================================
  Files          11       11           
  Lines        1167     1167           
=======================================
  Hits          919      919           
  Misses        248      248

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ead7d21...8a43957. Read the comment docs.

codecov[bot] avatar Jan 05 '19 17:01 codecov[bot]

Actually, on second thought, this is super similar to the basic.rs example. I think maybe we just want to add a comment about app passwords in basic.rs. Maybe even rename it to gmail.rs + change the server address so it works "out of the box"?

jonhoo avatar Jan 06 '19 16:01 jonhoo

@softprops what do you think of my comment above?

jonhoo avatar Mar 19 '19 01:03 jonhoo

Im going to go ahead and close this, I was able to unblock myself to testing with another gmail account. feel free to close this

softprops avatar Mar 19 '19 02:03 softprops

Oh, that's too bad. What problem did you run into?

jonhoo avatar Mar 19 '19 02:03 jonhoo

This problem https://github.com/jonhoo/rust-imap/issues/106, something was up with my google account that caused this library to be unable to parse the imap responses. I timeboxed investigating that then ended up just using another gmail account.

softprops avatar Mar 19 '19 13:03 softprops

Ohh, I remember now. That's too bad — your updated example would be a good addition :)

jonhoo avatar Mar 19 '19 13:03 jonhoo