X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b9e0388a118e84f002ae0da6c7a31bdbd89a73bb..5e4d1f2f9dc08f2b6bc3d6a463e8a1dd3ec29974:/man/mhlogin.man?ds=sidebyside diff --git a/man/mhlogin.man b/man/mhlogin.man index 0651fdca..22475b3b 100644 --- a/man/mhlogin.man +++ b/man/mhlogin.man @@ -1,15 +1,21 @@ .\" .\" %nmhwarning% .\" -.TH SEND %manext1% "November 25, 2014" "%nmhversion%" +.TH MHLOGIN %manext1% "April 10, 2016" "%nmhversion%" .SH NAME mhlogin \- login to external (OAuth) services .SH SYNOPSIS .HP 5 .na .B mhlogin -.RB \-oauth -.IR service +.RB [ \-user +.IR username ] +.RB [ \-saslmech +.IR mechanism ] +.RB [ \-authservice +.IR service ] +.RB [ \-browser +.IR command ] .RB [ \-snoop ] .RB [ \-version ] .RB [ \-help ] @@ -18,7 +24,10 @@ mhlogin \- login to external (OAuth) services .B Mhlogin currently only supports OAuth for Gmail. Run .B mhlogin -.B -oauth +.B \-user +.I username +.B \-saslmech xoauth2 +.B \-authservice .I gmail and load the printed URL in your browser. Login to a Gmail account, grant authorization, and copy and paste the code into the @@ -26,7 +35,17 @@ authorization, and copy and paste the code into the prompt. Be sure to use the same account with the .B -user switch to -.B send +.BR send . +.PP +The +.B \-browser +switch causes +.B mhlogin +to load the URL directly into a new browser session. The command argument +must include the browser invocation name, and can include any browser arguments +in the +.B \-browser +argument string, e.g., 'google-chrome --new-window'. .PP The .B \-snoop @@ -35,11 +54,8 @@ switch can be used to view the HTTP transaction. All parameters configuring the service may be overridden by profile components, and even though only Gmail is supported out of the box, the user can define new services entirely in the profile. Profile components are prefixed by -.I -oauth- -.I -service- -for example +.IR oauth-service- , +for example, .I oauth-gmail-credential-file which specifies where .B mhlogin @@ -61,3 +77,7 @@ should read them. .fi .SH "SEE ALSO" .IR send (1) +.SH DEFAULTS +.nf +.RB ` \-saslmech "' xoauth2" +.fi