diff options
author | Eduardo Chappa <chappa@washington.edu> | 2022-06-02 13:05:02 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2022-06-02 13:05:02 -0600 |
commit | f69131562a08ec43c88e8f88c3ee4d8f25b3dc54 (patch) | |
tree | 9d0f4036ccefb7a95e4a3c377e5eb233a032e60a /alpine/imap.c | |
parent | 6b87c9de3ab319846baa303544084a76254d55f5 (diff) | |
download | alpine-f69131562a08ec43c88e8f88c3ee4d8f25b3dc54.tar.xz |
* New flag for XOAUTH2 authentication, which is needed to indicate that
we are opening a stream for the first time. This is not needed for
online access but for drivers that need to open/close a connection
many times.
Diffstat (limited to 'alpine/imap.c')
-rw-r--r-- | alpine/imap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/alpine/imap.c b/alpine/imap.c index 34905c79..55068558 100644 --- a/alpine/imap.c +++ b/alpine/imap.c @@ -814,9 +814,13 @@ mm_login_oauth2(NETMBX *mb, char *user, char *method, ps_global->no_newmail_check_from_optionally_enter = 1; /* make sure errors are seen */ - if(ps_global->ttyo && !ps_global->noshow_error) + if(ps_global->ttyo && !ps_global->noshow_error + && login && (login->flags & OA2_OPENSTREAM)) flush_status_messages(0); + if(login && (login->flags & OA2_OPENSTREAM)) + login->flags |= ~OA2_OPENSTREAM; + token = NULL; /* start from scratch */ hostlist[0].name = mb->host; |