all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Pranshu <pranshusharma366@gmail.com>
Cc: 72462@debbugs.gnu.org
Subject: bug#72462: Having to store password in mutliple places
Date: Sun, 04 Aug 2024 16:44:37 +0200	[thread overview]
Message-ID: <87a5hsxs8a.fsf@gmx.de> (raw)
In-Reply-To: <8734nk75fj.fsf@gmail.com> (Pranshu's message of "Mon, 05 Aug 2024 00:01:36 +1000")

Pranshu <pranshusharma366@gmail.com> writes:

Hi Pranshu,

> 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
> ----------------------------------------------------------

You can store both passwords in .authinfo, like

--8<---------------cut here---------------start------------->8---
machine smtp.gmail.com login pranshusharma366@gmail.com password **********  port 465
machine pop.gmail.com login pranshusharma366@gmail.com password **********  port 995
--8<---------------cut here---------------end--------------->8---

No need to keep it in the :password slot of mail-sources.

Best regards, Michael.





      parent reply	other threads:[~2024-08-04 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5hsxs8a.fsf@gmx.de \
    --to=bug-gnu-emacs@gnu.org \
    --cc=72462@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=pranshusharma366@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.