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: Sat, 17 Aug 2024 11:52:07 +0300 Message-ID: <86a5hb4jm0.fsf@gnu.org> References: <8734nk75fj.fsf@gmail.com> <87o768xsbq.fsf@igel.home> <86wmkwqr9b.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37569"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72462-done@debbugs.gnu.org, schwab@linux-m68k.org To: pranshusharma366@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 17 10:52:48 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 1sfFB1-0009bv-Fk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Aug 2024 10:52:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfFAh-0000Y1-0f; Sat, 17 Aug 2024 04:52:27 -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 1sfFAe-0000Xk-7y for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 04:52:24 -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 1sfFAd-0007z4-U3 for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 04:52:23 -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=i+MlSpEYZDhDOIUbv02nz5yMKjhNG5FzO5qNOdEhJEo=; b=I8Qn8K8AHRoveiL8u2uHKdnPviXZyvqfIQDu5jkINY/omjZQKNyIG4jSrfViAGlxr1aOkeKUBG49KqOIUC292fglw3SdW/+9cTT+ePMNiw83GvdkUYQm2SQjrxDLAdz69OpBlhrwx8ICvKP/Ujk02+vfWsDQwYiNEworlAejcGbQIw7DhoELwfmdnx2d75Nn/FQ1x02haNtpVm5+1J8Ne7BlkykM+PE5Uonfz/z37E5qjWHng1xSnkW5XsEUwEs2yuarFDpVBYazygDABvuohn49dPVjN55JXXNJQQN7oKxBLJPWP3sSdmT0mtQq/qZdNCp7QR8V0nNBYN+h1Uaemg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfFBG-0001Vz-CG for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 04:53:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Aug 2024 08:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 72462 X-GNU-PR-Package: emacs Mail-Followup-To: 72462@debbugs.gnu.org, eliz@gnu.org, pranshusharma366@gmail.com Original-Received: via spool by 72462-done@debbugs.gnu.org id=D72462.17238847775809 (code D ref 72462); Sat, 17 Aug 2024 08:53:02 +0000 Original-Received: (at 72462-done) by debbugs.gnu.org; 17 Aug 2024 08:52:57 +0000 Original-Received: from localhost ([127.0.0.1]:53459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfFBA-0001Vc-NB for submit@debbugs.gnu.org; Sat, 17 Aug 2024 04:52:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfFB8-0001VO-NT for 72462-done@debbugs.gnu.org; Sat, 17 Aug 2024 04:52:55 -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 1sfFAP-0007yO-QY; Sat, 17 Aug 2024 04:52:09 -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=i+MlSpEYZDhDOIUbv02nz5yMKjhNG5FzO5qNOdEhJEo=; b=KCMAtTYyEq3x RCGVfjMHCTmtEzEDaGkzZGMMYp87/iBcrcbWpA6E5BlEGNWYajWabnTkp246wFRGhmQqaKT69d9lO 8ygP8RxYiEgOfG51K3slwBbCfaE6EdUj20H8t7lQqWGOF16qzN+G6pm5YJ96iRQ4UN1iRS7VThVxf rwL7L/wy1zEgGcPRr1eb5tE0Tp8bubxXqV9HhJsFqEtl8u+oEfDAwEHPsiB0FbqmZ49tB+9KVXMgB vYawyY/xzvFLahaXZItxyyjycxaQVU0LfCkVPGMHXiepCD1Udie0MachZYueQWxZXIYDn9d4Zk8AK OoA+nUc1SPTx+DG8EHzS1Q==; In-Reply-To: <86wmkwqr9b.fsf@gnu.org> (message from Eli Zaretskii on Sun, 04 Aug 2024 17:47:28 +0300) 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:290238 Archived-At: > Cc: pranshusharma366@gmail.com, 72462@debbugs.gnu.org > Date: Sun, 04 Aug 2024 17:47:28 +0300 > From: Eli Zaretskii > > > 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? No further comments, so I presume the problem is solved by the above advice, and I'm therefore closing this bug.