X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9fb83d5128beabf5d4f779633eb0281b86a10bea..fb6ea8dca0129dbb93ecb5fe1147a7b03138bbf8:/man/mhlogin.man diff --git a/man/mhlogin.man b/man/mhlogin.man index 32a61ec0..eb067ea5 100644 --- a/man/mhlogin.man +++ b/man/mhlogin.man @@ -1,13 +1,15 @@ .\" .\" %nmhwarning% .\" -.TH SEND %manext1% "March 24, 2016" "%nmhversion%" +.TH MHLOGIN %manext1% "September 11, 2016" "%nmhversion%" .SH NAME mhlogin \- login to external (OAuth) services .SH SYNOPSIS .HP 5 .na .B mhlogin +.RB [ \-user +.IR username ] .RB [ \-saslmech .IR mechanism ] .RB [ \-authservice @@ -22,6 +24,8 @@ mhlogin \- login to external (OAuth) services .B Mhlogin currently only supports OAuth for Gmail. Run .B mhlogin +.B \-user +.I username .B \-saslmech xoauth2 .B \-authservice .I gmail @@ -58,6 +62,26 @@ 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 +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