From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72462: Having to store password in mutliple places Date: Sun, 04 Aug 2024 17:47:28 +0300 Message-ID: <86wmkwqr9b.fsf@gnu.org> References: <8734nk75fj.fsf@gmail.com> <87o768xsbq.fsf@igel.home> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33821"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pranshusharma366@gmail.com, 72462@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 04 16:48:19 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sacWw-0008gM-Ea for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Aug 2024 16:48:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sacWO-0007Uf-8s; Sun, 04 Aug 2024 10:47:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sacWM-0007U6-TG for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2024 10:47:42 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sacWM-0001VD-JX for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2024 10:47:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=n7De4pCW1pfd+ibPFzxJi5E5CVli4b6q6ackFi0i140=; b=R5fKMY8Xi32tDpGUgUBGP717/W/xqW8KqmBn+sV0z1zq6tAQvaNqFmLFIH5iT3RiCy5/WgsOO/U1CYam7ARuQy+mBL8oP8aQl2E8y24jwoMZ2UvLXrd/jR0tzjEbQfBOTIYLSB1+Hz/miE959xocfy4TKnEI4fl8AtzaSR2b+sZuCAUNlXJvq4DuZdE1l/qn0ADhEgS92UdNvsKwB+04BbA55PIGW1lzyiJDXPWjfxkPCoREDb9WcSsDSBY/XYvbvj8tIOqbgKqjiissIBCk/qDLycmkIcXNaeteuXJeMBXh+8QNgi4CIRSjwVXDyrMlzeIuiyCBjkKoqAjp6iFWqQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sacWh-0001ry-Le for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2024 10:48:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2024 14:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72462 X-GNU-PR-Package: emacs Original-Received: via spool by 72462-submit@debbugs.gnu.org id=B72462.17227828807144 (code B ref 72462); Sun, 04 Aug 2024 14:48:03 +0000 Original-Received: (at 72462) by debbugs.gnu.org; 4 Aug 2024 14:48:00 +0000 Original-Received: from localhost ([127.0.0.1]:56941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sacWe-0001r8-0b for submit@debbugs.gnu.org; Sun, 04 Aug 2024 10:48:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sacWc-0001qk-4J for 72462@debbugs.gnu.org; Sun, 04 Aug 2024 10:47:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sacWB-0001Q5-2g; Sun, 04 Aug 2024 10:47:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=n7De4pCW1pfd+ibPFzxJi5E5CVli4b6q6ackFi0i140=; b=go35mf+6nq91 Isb/7uzQml9adZv01JY6ExkVRJQqe6DIG/XdZ+WgVkahNxLwGxbCjjerl2ya3umw3KwZxPbAU7OqB EwsXfNE0nzIMufQa73e8Ybh0Qy4KnSbGaKaq2L4YGOAgSuuHI6H6urrBq0W8Bm66tz20dtghXzxZD eAvD1SlNWy0RaYHpxBy+uUfvKRNfHC0WEMlMU2+vQ2GIFrkkYMeFFTLrf0RHXybFjIH8GAR4D/+FV dJxr7We0Bdz21HNw97jyhhRjtDNO6E6IPbxcPI07mPd3yy9OzKOXW6IKPgAYANyivUdosZjy5Xdgl TBo05pERLNN4Mml7FCOkhA==; In-Reply-To: <87o768xsbq.fsf@igel.home> (message from Andreas Schwab on Sun, 04 Aug 2024 16:42:33 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289756 Archived-At: > Cc: 72462@debbugs.gnu.org > From: Andreas Schwab > Date: Sun, 04 Aug 2024 16:42:33 +0200 > > On Aug 05 2024, Pranshu wrote: > > > 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 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. I think writing the password twice is unavoidable, since these are two separate servers/services: one for receiving email, the other for sending. Am I right?