X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/841dea341c4cec1add5431beef92bf11915fba74..9f8418e870a70c264eda1598f2d470e5428c216d:/man/mhlogin.man diff --git a/man/mhlogin.man b/man/mhlogin.man index f83b4656..11434000 100644 --- a/man/mhlogin.man +++ b/man/mhlogin.man @@ -1,13 +1,15 @@ .\" .\" %nmhwarning% .\" -.TH SEND %manext1% "April 10, 2016" "%nmhversion%" +.TH MHLOGIN %manext1% "October 10, 2016" "%nmhversion%" .SH NAME mhlogin \- login to external (OAuth) services .SH SYNOPSIS .HP 5 .na .B mhlogin +.RB [ \-help ] +.RB [ \-version ] .RB [ \-user .IR username ] .RB [ \-saslmech @@ -17,8 +19,6 @@ mhlogin \- login to external (OAuth) services .RB [ \-browser .IR command ] .RB [ \-snoop ] -.RB [ \-version ] -.RB [ \-help ] .ad .SH DESCRIPTION .B Mhlogin @@ -36,6 +36,7 @@ prompt. Be sure to use the same account with the .B -user switch to .BR send . +See the EXAMPLES section below for an example. .PP The .B \-browser @@ -62,6 +63,29 @@ which specifies where should write credentials and where .B send should read them. +.SH "EXAMPLES" +.PP +.SS Gmail +First, login to the Gmail account that you want to use, e.g, user@example.com, +using a web browser. +Then, enter a +.B mhlogin +command such as: +.PP +.RS +.nf +mhlogin -user user@example.com -saslmech xoauth2 -authservice gmail \ +-browser 'google-chrome --new-window' +.fi +.RE +.PP +The +.I username +should be a complete email address. +Respond to the prompt in the browser window, then copy and paste the +authorization code in response to the +.B mhlogin +prompt. .SH "PROFILE COMPONENTS" .fc ^ ~ .nf