From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.help Subject: Re: E-mail package Date: Wed, 01 Jan 2025 21:35:51 +0200 Message-ID: <19730.5038849422$1735760220@news.gmane.org> References: <871pxyia33.fsf@librehacker.com> <87msglf2n7.fsf@librehacker.com> <2b9906d7-d477-44c1-afbf-daf46292081b@posteo.at> <871pxufly9.fsf@librehacker.com> <877c7mdk70.fsf@gmail.com> <9bf825d8-fca9-4a22-aca3-54622db2b1d8@posteo.at> <3f899020-d2aa-4730-8d5f-a4392438efea@posteo.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21269"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "help-gnu-emacs@gnu.org" To: gfp Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 01 20:36:52 2025 Return-path: Envelope-to: geh-help-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 1tT4WS-0005Oz-Ej for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 01 Jan 2025 20:36:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tT4Vu-0000Il-LD; Wed, 01 Jan 2025 14:36:18 -0500 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 1tT4Ve-0000Ho-Gq for help-gnu-emacs@gnu.org; Wed, 01 Jan 2025 14:36:03 -0500 Original-Received: from thaodan.de ([2a03:4000:4f:f15::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tT4Vb-0004l4-5G for help-gnu-emacs@gnu.org; Wed, 01 Jan 2025 14:36:02 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id B7040D00051; Wed, 1 Jan 2025 21:35:52 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1735760152; bh=E95d00UF+kg+k1mgLGRjzM5pHUqOIXNelGLao+jdlwY=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=1aXis7c8Kgvgtdem9KLKa+NMu/xy66rAWcu4Y5UaoH0y/RnQl2pvPQuQ3SKwAtOho L5pgqyrlklerGCmS2AVFW3vK+GXqx8UPl56YVw4UzVwta2dryJWGZ4kbGvrzXbWBER LtFLEgPMX+UU19VCRXPMupWMYueIqjw7JimpZkiM3P296hDmDPQp8GEY4XkmuDk7NN Ny+93tglI2z4i6P10jPuVhtEHWNlKQ8gQ3b+Ib76e13GZ1FtTDCzI3o33lMP0SJdws L9H8ni1it+cG6JFtsIUg/uUbDSZf7TT3Jlh//m1xPU/x607hO768WWjsyVWP72Be1o 2Ty926duMv1qYI7c+iVGsn96i5LKEReTAMYHv85VQ9mAfthPpX4PQcGGK4yWpMNblH cUQnmagCoro0lEGDi48Kt+xhE61b104DL0rSwQEtPPni8OvTLqp13UFnCChoDkxawI ngk2Yli1t9WOaDWCqn7yBsX/T2t+A/OVnWU2/Xvj35YY4vsVCsKgZMNLlSqR5Wji88 9u/gJ2OnK/6p+Wj6CbW8MYjKwXKcrw26ofiq+aM6Pk3u7D1W7UawF5k6aGEnp+OoM0 YyH3/pF/yumZUeEBXfwX0PIfTWgCh7axhk+T222cMuBywgoznZj7SmGwptnuZqZmFt Pr72wbaJw9Qm8Qn9O5l/+s+s= In-Reply-To: <3f899020-d2aa-4730-8d5f-a4392438efea@posteo.at> (gfp@posteo.at's message of "Wed, 1 Jan 2025 13:19:17 +0000") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH Received-SPF: pass client-ip=2a03:4000:4f:f15::1; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, INVALID_MSGID=0.568, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:149092 Archived-At: gfp writes: > Hi Bj=C3=B6rn, > > thanks for taking time to help. > ------------------------------------------------------------------------ >> Mine is: >>> (setopt gnus-group-line-format (concat "%M%S%p%P%5y " >>> (propertize ;(all-the-icons-faicon "envelope-o") >>> (all-the-icons-material "mail") >>> 'display '(raise 0.0)) >>> " : [%T]:%B%(%G%)\n")) > > If I set this in my gnus.el in starting emacs > it comes up a Lisp error: > > Debugger entered--Lisp error: (void-function all-the-icons-material) > (all-the-icons-material "mail") > (propertize (all-the-icons-material "mail") 'display '(raise 0.0)) > (concat "%M%S%p%P%5y " (propertize (all-the-icons-material "mail") > 'display '(raise 0.0)) " : [%T]:%B%(%G%)\n") > (setopt--set 'gnus-group-line-format (concat "%M%S%p%P%5y " > (propertize (all-the-icons-material "mail") 'display '(raise 0.0)) " > : [%T]:%B%(%G%)\n")) > load-with-code-conversion("/home/gfp/.config/emacs/gnus.el" > "/home/gfp/.config/emacs/gnus.el" nil nil) > load-file("/home/gfp/.config/emacs/gnus.el") > load-with-code-conversion("/home/gfp/.config/emacs/init.el" > "/home/gfp/.config/emacs/init.el" t t) > load("/home/gfp/.config/emacs/init" noerror nomessage) > startup--load-user-init-file(#f(compiled-function () # 0x1b1cb0e2408590da>) #f(compiled-function () # 0x4d131ce0e73e6cb>) t) > command-line() > normal-top-level() You don't have to use the all the icons function in there. I merely use it for extra eye-candy. If you don't want it remove the call to concatt and propertize to just have the two strings in between as one. > -------------------------------------------------------------------------= --- > >> Did you already setup auth-source? If Emacs will retrieve the password >>> from it. Checkout (info "(emacs) Authentication"). >>> You likely forgot to set the user in your imap connections. >>> Checkout out: >>> (info "(gnus) Using IMAP") >>>=20 > > Yes, I set up a .authinfo.gpg file in my Emacs folder .config/Emacs, > in which I put my 2 email accounts posteo and gmail with the password. > > Interestingly it created a file in my home folder home/gfp/.authinfo, > in which is only my posteo Email with password included and easily > readable. Hopefully not for everybody, because I created the > .authinfo.gpg in the .config/Emacs folder and hope that this file is > read by getting my emails with gnus. I don't know exactly but I think Emacs reads that file by default form home. You have to change auth-sources so the file is read from your Emacs directory. You can also use other password managers such as pass or your desktops Keyring with Emacs. For this checkout the Emacs manual I linked earlier. > There is no gmail. > -------------------------------------------------------------------------= ---- > Setting up as you proposed did not help to catch the gmail emails. > There was the same question as always: > here the output: > > Reading /home/gfp/.newsrc.eld... > Opening nnfolder server on archive...done > Opening nnimap server on posteo... > Opening connection to posteo.de via tls... > Opening connection to posteo.de...done > Opening nnimap server on posteo...done > Opening nnimap server on gmail... > Opening connection to imap.gmail.com via tls... > Opening nnimap server on gmail...failed: NO (AUTHENTICATIONFAILED) > Invalid credentials (Failure) > No new newsgroups > Checking new news... > Reading active file via nnnil...done > Reading active file from gmail via nnimap... > Opening nnimap server on gmail... > Server nnimap+gmail previously determined to be down; not retrying > Opening nnimap server on gmail...failed: NO (AUTHENTICATIONFAILED) > Invalid credentials (Failure) > nnimap read 0k from posteo.de > Reading active file via nndraft...done > Checking new news...done > Warning: Opening nnimap server on gmail...failed: NO > (AUTHENTICATIONFAILED) Invalid credentials (Failure); Server > nnimap+gmail previously determined to be down; not retrying; Opening > nnimap server on gmail...failed: NO (AUTHENTICATIONFAILED) Invalid > credentials (Failure) I'm not sure if password login still works with Gmail. You have to check that out and possibly create an application password. > > this settings you proposed: > > here are my gnus.el settings: >>> >>> ;;gnus for getting emails >>> (setq gnus-select-method '(nnnil nil)) >>> (setq gnus-secondary-select-methods >>> '((nnimap "posteo" >>> (nnimap-address "posteo.de") >> add imap user here e.g. as in >> (nnnimap-user "gottfried") >>> (nnimap-server-port "imaps") >>> (nnimap-stream ssl) >>> (nnir-search-engine imap) >> This setting is obsolete and Gnus will pick IMAP search with IMAP >> connections anyway. >> >>> (nnmail-expiry-target > "nnimap+posteo:[posteo]/Papierkorb") >>> (nnmail-expiry-wait 'immediate)) >>> (nnimap "gmail" >>> (nnimap-address "imap.gmail.com") >> add imap user here e.g. as in >> (nnnimap-user "francis.pr") >>> (nnimap-server-port "imaps") >>> (nnimap-stream ssl) >>> (nnir-search-engine imap) >> Same again. >>> (nnmail-expiry-target "nnimap+gmail:[Gmail]/Trash") >>> (nnmail-expiry-wait 'immediate)))) >>> >>> ;; Reply to mails with matching email address >>> (setq gnus-posting-styles >>> '((".*" ; Matches all groups of messages >>> (address "gottfried ")) >>> ("gmail" ; Matches Gnus group called "gmail" >>> (address "Francis ") >>> ("X-Message-SMTP-Method" "smtp Posteo-posteo.de 465 >>> gottfried@posteo.de")))) > > Kind regards > > Gottfried > > --------------------------------------------------------------------- > > Am 01.01.25 um 02:52 schrieb Bj=C3=B6rn Bidar: >> gfp writes: >>=20 >>> Hi, >>> >>> there must be a mistake somewhere. >>> >>> I am getting the emails of "posteo" >>> >>> but I don=C2=B4t get the emails of "gmail" >>> >>> And if connecting to gnus it asks me of the email address and the >>> password of gmail >>> but not of the email address and password of posteo: >>> >>> IMAP user at gmail (gfp): [Reverting buffer =C2=B4emacs=C2=B4] >>> IMAP password for francis.pr@gmail.com >>> >>> I understand it like this that it connects to the IMAP of Gmail and >>> not of posteo. But then, why it takes the emails of posteo and not of >>> gmail? >>> >>> Warning: Opening nnimap server on gmail...failed: NO >>> (AUTHENTICATIONFAILED) Invalid credentials (Failure); Server >>> nnimap+gmail previously determined to be down; not retrying >> Did you already setup auth-source? If Emacs will retrieve the >> password >> from it. Checkout (info "(emacs) Authentication"). >> You likely forgot to set the user in your imap connections. >> Checkout out: >> (info "(gnus) Using IMAP") >>=20 >>> ------------------------------------------------------------------ >>> here are my gnus.el settings: >>> >>> ;;gnus for getting emails >>> (setq gnus-select-method '(nnnil nil)) >>> (setq gnus-secondary-select-methods >>> '((nnimap "posteo" >>> (nnimap-address "posteo.de") >> add imap user here e.g. as in >> (nnnimap-user "gottfried") >>> (nnimap-server-port "imaps") >>> (nnimap-stream ssl) >>> (nnir-search-engine imap) >> This setting is obsolete and Gnus will pick IMAP search with IMAP >> connections anyway. >>=20 >>> (nnmail-expiry-target "nnimap+posteo:[posteo]/Papierko= rb") >>> (nnmail-expiry-wait 'immediate)) >>> (nnimap "gmail" >>> (nnimap-address "imap.gmail.com") >> add imap user here e.g. as in >> (nnnimap-user "francis.pr") >>> (nnimap-server-port "imaps") >>> (nnimap-stream ssl) >>> (nnir-search-engine imap) >> Same again. >>> (nnmail-expiry-target "nnimap+gmail:[Gmail]/Trash") >>> (nnmail-expiry-wait 'immediate)))) >>> >>> ;; Reply to mails with matching email address >>> (setq gnus-posting-styles >>> '((".*" ; Matches all groups of messages >>> (address "gottfried ")) >>> ("gmail" ; Matches Gnus group called "gmail" >>> (address "Francis ") >>> ("X-Message-SMTP-Method" "smtp Posteo-posteo.de 465 >>> gottfried@posteo.de")))) >> You can set the archive method per connection if you want. >> Add something like below: >> "Gcc" "nnimap+:Sent" >>=20 >>> ;; alle Gruppen immer sehen >>> (setq gnus-permanently-visible-groups ".*") >>> >>> ;; nice overview of all groups with unread/total count >>> (setq gnus-group-line-format "%5M %5y/%-8t =E2=80=A2 %c\n") >> Maybe there's something wrong in this that the message count is >> wrong. >> Mine is: >> (setopt gnus-group-line-format (concat "%M%S%p%P%5y " >> (propertize ;(all-the-icons-f= aicon "envelope-o") >> (all-the-icons-material "mai= l") >> 'display '(raise 0.0)) >> " : [%T]:%B%(%G%)\n")) >> Which looks like this: >> 1587 =EE=85=98 : [0]: Emacs.Bugs >>=20 >>> ;;nice colours for spot groups with new emails >>> '((gnus-group-mail-1-empty ((t (:foreground "SlateGray3")))) >>> '(gnus-group-mail-3 ((t (:foreground "spring green")))) >>> '(gnus-group-mail-3-empty ((t (:foreground "SlateGray3")))) >>> '(gnus-group-news-3 ((t (:foreground "spring green")))) >>> '(gnus-group-news-3-empty ((t (:foreground "SlateGray3")))) >>> '(gnus-group-news-low ((t (:foreground "spring green"))))) >>> >>> ----------------------------------------------------------------------- >>> thanks for help >>> >>> Gottfried >>> >>> >>> Am 30.12.24 um 13:04 schrieb gfp: >>>> Hi, >>>> thanks for help. >>>> Now it works, after listing all groups, as you said. >>>> I got 134 folders listed. >>>> =C2=A0Thanks >>>> I didn=C2=B4t have to do what you described in this email I quoted. >>>> Next problem: >>>> 1. >>>> the numbers in front of the groups are not all correct. >>>> In one group it said 0/112, but I have there only 21 emails at all. >>>> 2. >>>> What do the stars in front of the numbers tell? >>>> Does it mean in this group there are starred emails, which I marked >>>> as starred? I guess so, but I am asking as well. >>>> 3. >>>> how can I delete an email? >>>> 4. >>>> I am sorry to have replied to the top post. I got >>>> confused. Sometimes I didn=C2=B4t know where should I reply to and mad= e a >>>> mess. >>>> Now I know I should only reply to the message I got and additionally >>>> add the email address of the help-gnu-emacs list. >>>> Is that all right? >>>> thanks for help >>>> Gottfried >>>> Am 30.12.24 um 05:27 schrieb Bj=C3=B6rn Bidar: >>>>> gfp writes: >>>>> >>>>>> Hi, >>>>>> >>>>>> I tried to set up Gnus with the help of: >>>>>> >>>>>> https://www.bounga.org/tips/2020/05/03/multiple-smtp-accounts-in-gnu= s-without-external-tools/ >>>>>> >>>>>> and after changing the settings it worked partially. >>>>>> >>>>>> It took only emails from one email provider, but not from the other >>>>>> (may be I have to fiddle around in my settings). >>>>> >>>>> Did you list all groups as I explained earlier? Gnus handles multiple >>>>> providers or as Gnus calls it select methods just fine. >>>>> >>>>> For example I have my own mailbox as IMAP but also the public-inbox f= rom >>>>> Sourceware as IMAP. >>>>> >>>>> Can you provide us your settings with the private information removed? >>>>> >>>>>> But what astonishes me: >>>>>> it took in "groups" only 55 folders (which I have set up in my email >>>>>> provider "posteo" instead of more than 100. >>>>>> So I don=C2=B4t know why it took only a part of it. >>>>> >>>>> Open the server buff (press ^ in the Groups buffer) select the Posteo >>>>> select method and press enter. >>>>> Now look if you are subscribed to the other group if there's a K or Z= in >>>>> front of the names press u to subscribe. >>>>> >>>>> This practice does sound Gnus specific but is general IMAP feature. >>>> > > --