unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#72462: Having to store password in mutliple places
@ 2024-08-04 14:01 Pranshu
  2024-08-04 14:42 ` Andreas Schwab
  2024-08-04 14:44 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 5+ messages in thread
From: Pranshu @ 2024-08-04 14:01 UTC (permalink / raw)
  To: 72462


Right now to get a functional gnus setup in which I can send and recive
mail, I am having to store my password is 2 places, which is the mail
sources variable, and the authinfo file.  This makes it extremly
annoying and insecure, especially since I cannot encrypt one fo the
places I store the password.

If I remove password from authinfo file, I can still recive mail but not
send any.  And if I remove password from mail sources, I cannot recive
mail without typing my whole password when prompted on gnus startup.

Following is the code I have:

Elisp code:
----------------------------------------------------------
(setq user-mail-address "pranshusharma366@gmail.com")
(setq user-full-name "Pranshu")
(setq smtpmail-smtp-server "smtp.gmail.com")
(setq smtpmail-smtp-service 465)
(setq smtpmail-stream-type  'ssl)
(setq mail-sources `((pop :server "pop.gmail.com"
						  :user ,user-mail-address
						  :password "**********" ; Password line
						  :port 995)))
----------------------------------------------------------


Authinfo:
----------------------------------------------------------
machine smtp.gmail.com login pranshusharma366@gmail.com password **********  port 465
----------------------------------------------------------





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-17  8:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-04 14:01 bug#72462: Having to store password in mutliple places Pranshu
2024-08-04 14:42 ` Andreas Schwab
2024-08-04 14:47   ` Eli Zaretskii
2024-08-17  8:52     ` Eli Zaretskii
2024-08-04 14:44 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).