GNU bug report logs -
#72462
Having to store password in mutliple places
Previous Next
Full log
View this message in rfc822 format
On Aug 05 2024, Pranshu wrote:
> Following is the code I have:
>
> Elisp code:
> ----------------------------------------------------------
> (setq user-mail-address "pranshusharma366 <at> 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 <at> gmail.com password ********** port 465
> ----------------------------------------------------------
You should add an entry to authinfo for machine pop.gmail.com, then you
can remove the credentials from mail-sources. That's still writing the
password twice, but at least it's next to each other in the same file.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
This bug report was last modified 281 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.