make oauth2.get_addr work

oauth2.get_addr is used for gmail-oauth2
to retrieve the address really authorized in the oauth2 process.
This commit is contained in:
B. Petersen
2019-10-16 00:57:58 +02:00
parent 120524ae00
commit cde2c9137f
2 changed files with 5 additions and 2 deletions

View File

@@ -112,6 +112,7 @@ pub fn dc_job_do_DC_JOB_CONFIGURE_IMAP(context: &Context) {
dc_get_oauth2_addr(context, &param.addr, &param.mail_pw)
.and_then(|e| e.parse().ok())
{
info!(context, "Authorized address is {}", oauth2_addr);
param.addr = oauth2_addr;
context
.sql