Hello,

[email protected] wrote:
 |I specify my gmail password in my .mailrc like so:
 |
 |set editalong
 |set smtp-auth=login
 |set imap-auth=login
 |
 |account per {
 | set folder=imaps://[email protected]:993
 | set smtp=smtps://smtp.gmail.com:465
 | set [email protected]
 | set smtp-auth-password=SECRET
 | set [email protected]=SECRET
 |}
 |
 |However, when I log in from the command line, I am still
 |prompted with a password before I get to my inbox.
 |
 |This confuses me as I can send mail without being prompted.

It should do what you want when you include the :PORT part as in

 set [email protected]:993=SECRET

But may i suggest to use *v15-compat* and outsource the passwords
to your .netrc file or maybe even store them encrypted.  E.g.,

  set imap-auth=login smtp-auth=login
  account per {
    localopts 1
    set v15-compat netrc-lookup
    set smtp=smtps://smtp.gmail.com:465
    set folder=imaps://imap.gmail.com:993
  }

and in ~/.netrc:

  machine *.gmail.com login coltonlewis7 password SECRET

If you have multiple accounts there are several options at your
service, either "set user=coltonlewis7" in the account, or include
"coltonlewis7@" in the URLs for SMTP and IMAP, which is possible
with *v15-compat*.  You could also include the password right in
there with it, as in "coltonlewis7:PASSWORD@", but don't forget to
urlencode it first via

  $ echo 'urlencode PASSWORD' | s-nail-14.7.11 -#

  set imap-auth=login smtp-auth=login
  account per {
    localopts 1
    set v15-compat
    set smtp=smtps://coltonlewis7:[email protected]:465
    set folder=imaps://coltonlewis7:[email protected]:993
  }

The whole *v15-compat* picture can be found in the manual section
"ON URL SYNTAX AND CREDENTIAL LOOKUP", at [1] if all else fails :)
By the way: i didn't know until your post that Google supports
SMTPS via port :465!  Works!!

  [1] 
http://sdaoden.users.sourceforge.net/code-nail.html#x4f4e2055524c2053594e54415820414e442043524544454e5449414c204c4f4f4b5550

--steffen

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
S-nail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/s-nail-users

Reply via email to