From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Fleischer Newsgroups: gmane.emacs.help Subject: Re: Gnus and multiple Email servers Date: Sun, 21 Nov 2021 23:14:23 +0200 Message-ID: References: <87ilwlvbis.fsf@penguin> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5301"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: help-gnu-emacs@gnu.org To: Sergey Organov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 21 22:14:57 2021 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 1mouAr-0001DU-Fq for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 21 Nov 2021 22:14:57 +0100 Original-Received: from localhost ([::1]:53246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mouAp-0002mm-N2 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 21 Nov 2021 16:14:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mouAP-0002iG-Rn for help-gnu-emacs@gnu.org; Sun, 21 Nov 2021 16:14:29 -0500 Original-Received: from [2a00:1450:4864:20::52a] (port=33484 helo=mail-ed1-x52a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mouAO-00059d-3v for help-gnu-emacs@gnu.org; Sun, 21 Nov 2021 16:14:29 -0500 Original-Received: by mail-ed1-x52a.google.com with SMTP id t5so68304276edd.0 for ; Sun, 21 Nov 2021 13:14:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=JgrtM38bTJ1AvhBOBPd6lIfQD8ngSAJtsfZyB86bcaE=; b=OrRuLf13TDdMCudCXOzdwD4a2Zr185+DkzkYgPleIlxEveUX2pQ+UffrPZZ9t0zP9V zN1WHENmdeA8eMbzmwTjv6QKh/KxbPKfJEHhoWbLsyRrTwrzd1nOuBmh2nOWvdI6lzFp VTaBOcKrhFwtDeVa17bY3MOKqimEN1qTog2Re0+eNNUKxG0csmCA7gvxh+/XtGDWrFY6 Fz0SF0zN1EPIseg1zop+ySXvGX/PoTJAAafpJcOsDalwxz1ekDRSF9gbCtLaoXoYzu98 d8+QCXlpxsl2Xwcgd2WRemXPa/rbC+ZPwwGs1Ra+s9x0WSDlr3lQydLb5VzqeWzPoIEX LF8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=JgrtM38bTJ1AvhBOBPd6lIfQD8ngSAJtsfZyB86bcaE=; b=SvwjOc6QyM6Xc5dPGksmlx3aDsbk2yVMyExbVY9Je+eXit8uKBvK2yOg/UM8avrfE3 wQp+zI7mGLBXqNvihtFbUPgqXUang4/wfah5xBmAGHDiVhu6d00Esn8/UL3olfVzbvfh iX8juZbZJVIasM6JJjVjWp6tZGlkRB9M2nRf7uEvN8l7HDTiueaVQY2KU9XUiqE2l9V7 LiyaPq6d/X5yboB34BlhEaTXoTYnvpjqBHo0PHtey+DiLsZvnVL55sk2rSnbAjgK1quq ruy4ZdEOeSfe26f6E0umFZuZ1kNf2q5jV00IXHbcdDzlf5ixmUfIC1amjRWNkvzG9s0T JFMA== X-Gm-Message-State: AOAM531e43a7CDUOBtQev7XzO4ylaEO9q86JHvN25jhRh0F4bIlURw4h zxb96AKe1k7JOeD8AjyMXVRnW00n8fE= X-Google-Smtp-Source: ABdhPJyftZmT2tHDgno8oTxcu1TecRdWiDn9ReHEcZRWAJOC0AMnUgCXYnp2PqsCJmPrcV3IcvRiIQ== X-Received: by 2002:a05:6402:1a4d:: with SMTP id bf13mr56233700edb.101.1637529265818; Sun, 21 Nov 2021 13:14:25 -0800 (PST) Original-Received: from Home-Mac ([5.102.253.181]) by smtp.gmail.com with ESMTPSA id s3sm2768707ejm.49.2021.11.21.13.14.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 13:14:25 -0800 (PST) In-Reply-To: (Sergey Organov's message of "Sun, 21 Nov 2021 22:54:39 +0300") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=danflscr@gmail.com; helo=mail-ed1-x52a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" Xref: news.gmane.io gmane.emacs.help:134666 Archived-At: Sergey Organov writes: > Is there handy way of setting it automagically depending on the From: > field of the outgoing mail? You can use 'gnus-posting-styles' that matches the group; for example (setq gnus-posting-styles '((".*" ; Matches all groups of messages (address "Daniel Fleischer ") (signature "\nDaniel Fleischer") ("X-Message-SMTP-Method" "smtp smtp.gmail.com 587 danflscr@gmail.com")))) will use Google's SMTP, but you can define whatever you want. Read the documentation since that matching is not like "cond", it iterates over all clauses, and applies every thing that matches. -- Daniel Fleischer