From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27199 invoked from network); 13 Jan 2024 13:30:26 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 13 Jan 2024 13:30:26 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOe5T-0003Kk-7m; Sat, 13 Jan 2024 08:30:11 -0500 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 1rOe5Q-0003Js-Rt for info-gnus-english@gnu.org; Sat, 13 Jan 2024 08:30:08 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOe5O-0004JT-ES for info-gnus-english@gnu.org; Sat, 13 Jan 2024 08:30:07 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rOe5K-0003bo-95 for info-gnus-english@gnu.org; Sat, 13 Jan 2024 14:30:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: "Loris Bennett" Subject: Re: Secondary-select-method-specific gnus-message-archive-group Date: Sat, 13 Jan 2024 14:23:34 +0100 Organization: Berlin Message-ID: <87bk9pcqp5.fsf@gmx.de> References: <87lgxr5qc2.fsf@hornfels.zedat.fu-berlin.de> <87d1j2afua.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dmitry Alexandrov <321942@gmail.com> Cancel-Lock: sha1:/lcG7BRxPa5VtbDKXANKCaclGWk= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gegu-info-gnus-english@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: loris.bennett@gmail.com Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Hi Dmitry, Dmitry Alexandrov <321942@gmail.com> writes: >> I have tried to set up different values for >> >> gnus-message-archive-group >> >> for different secondary select methods like this: >> >> (nnimap "gmx" >> (nnimap-stream tls) >> (gnus-message-archive-group "nnimap+gmx:Gesendet") >> (nnimap-address "imap.gmx.com")) >> (nnimap "gmail" >> (nnimap-stream ssl) >> (nnimap-server-port 993) >> (remove-prefix nnimap) >> (gnus-message-archive-group "nnimap+gmail:Sent Mail") >> (nnimap-address "imap.gmail.com")) >> >> I do get different values for gnus-message-archive-group (I actually have a >> few more select methods), but I don't always get the one I am expecting. >> >> Can anyone tell me how the values are triggered? > > I am not sure, whether message archive groups do have anything to do > with select methods. Select methods are about receiving mail, while > archive group is chosen when you start to compose a message. > > I’m using the following piece of config to place a letter in a current > group (in particular that means to the same group where the message > I’m replying is stored) or in ‘INBOX’ by default: > > (setq gnus-message-archive-group > '((cond > ((string-prefix-p "nnimap+" group) group) > (t "nnimap+g:INBOX")))) > > > (By the way, why don’t you do the same? What is the point to separate > sent letters from received ones?) > > Anyway, what you probably want to do may look like that, I guess: > > (setq gnus-message-archive-group > '((cond > ((string-prefix-p "nnimap+gmx:" group) "nnimap+gmx:Gesendet") > ((string-prefix-p "nnimap+gmail:" group) "nnimap+gmail:Sent Mail") > (t "nnimap+gmail:Sent Mail")))) This worked for me for the last 7 years, so rather belated thanks for that. However, after updating to Emacs 29.1, I started getting an error message about 'group' being undefined. I solved the problem by not trying to set 'gnus-message-archive-group' at all and instead now set "Gcc" via 'gnus-alias', which I was already using: (setq gnus-alias-identity-alist '(("gmail" "" "\"Loris Bennett\" " "Berlin" (("Reply-To" . "loris.bennett@gmail.com") ("Gcc" . "nnimap+gmail:Sent Mail") ("X-Message-SMTP-Method" . "smtp smtp.gmail.com 587")) "" lb/gmail-sig) ... )) I am not sure whether it is related to the Emacs update, but I also found that I could no longer send email from one account via the SMTP server of another account. Therefore I added the "X-Message-SMTP-Method" to the list of extra headers, which solved the issue. Maybe someone else might find the above useful. Cheers, Loris -- This signature is currently under contruction.