123123 Connect to an IMAP server over ssl using OAUTH authentication.
124124 Note that this does not support a password in imaps URLs.
125125 Instead it uses only the user and server and a command-line option for
126- the directory with the files 'access_token', 'refresh_token', and
127- 'client_secret'.
126+ the directory with the files 'access_token', 'refresh_token',
127+ 'client_secret', and 'client_id' .
128128 By default this directory is 'oauth' in your tracker home directory. The
129129 access token is tried first and, if expired, the refresh token together
130130 with the client secret is used to retrieve a new access token. Note that
131131 both token files need to be *writeable*, the access token is
132132 continuously replaced and some cloud providers may also renew the
133133 refresh token from time to time:
134134 imaps_oauth username@server [mailbox]
135- Note that you also have to specify the OAuth client id with the
136- ``--oauth-client-id`` option on the command line. The refresh and
137- access tokens (the latter can be left empty) and the client secret need
138- to be retrieved via cloud provider specific protocols or websites.
135+ The refresh and access tokens (the latter can be left empty), the
136+ client id and the client secret need to be retrieved via cloud provider
137+ specific protocols or websites.
139138
140139
141140
@@ -154,8 +153,6 @@ def parse_arguments(argv):
154153 cmd .add_argument ('-c' , '--default_class' , default = '' ,
155154 help = "Default class of item to create (else the tracker's "
156155 "MAILGW_DEFAULT_CLASS)" )
157- cmd .add_argument ('-I' , '--oauth-client-id' ,
158- help = 'ID for OAUTH token refresh' )
159156 cmd .add_argument ('-O' , '--oauth-directory' ,
160157 help = 'Directory with OAUTH credentials, default "oauth" in '
161158 'tracker home' )
@@ -248,7 +245,6 @@ def main(argv):
248245 elif source == 'imaps_oauth' :
249246 d .update (ssl = 1 , oauth = 1 , oauth_path = args .oauth_directory )
250247 d .update (token_endpoint = args .oauth_token_endpoint )
251- d .update (oauth_client_id = args .oauth_client_id )
252248 mailbox = ''
253249 if len (args .args ) > 3 :
254250 mailbox = args .args [3 ]
0 commit comments