From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jeffrey DeLeo Newsgroups: gmane.emacs.help Subject: Re: Gnus and offline Email Date: Thu, 17 Nov 2016 08:57:16 -0800 Message-ID: <87y40inixf.fsf@gmail.com> References: <58273138.4070808@openmailbox.org> <87y40k63kc.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1479402407 30929 195.159.176.226 (17 Nov 2016 17:06:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 17 Nov 2016 17:06:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Filipp Gunbin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 17 18:06:36 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7Q8x-0006Kg-6z for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Nov 2016 18:06:35 +0100 Original-Received: from localhost ([::1]:60434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7Q90-0004HB-H1 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Nov 2016 12:06:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7Q3A-0000o9-Kp for help-gnu-emacs@gnu.org; Thu, 17 Nov 2016 12:00:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7Q36-0003xk-TO for help-gnu-emacs@gnu.org; Thu, 17 Nov 2016 12:00:36 -0500 Original-Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:34129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7Q36-0003x2-No for help-gnu-emacs@gnu.org; Thu, 17 Nov 2016 12:00:32 -0500 Original-Received: by mail-pg0-x242.google.com with SMTP id e9so17703023pgc.1 for ; Thu, 17 Nov 2016 09:00:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=G9N+vqH2wuAuF6BLiN5MYvaXiR9YcNYFiJkKFxSov4w=; b=ISYcLMxJXv5rux0Dwee5Z3+ryYjOCJQz3pW45LzT7gqfLVss0oy08nDRyBFDRBwWLI rl+B/vxGg5u9ZFVtV6ndGOvzPl9P1WSCF/BiKd2u3xwaOTVnCtDPkmQtDItPnWTxyq84 WtIRYZ1m6o0un5PsZycyvqDN+Mo89E5uUUIpOCCKIFD7aStTX0akVf1pLmSPvBPtRAdH DIfzSC5te5wHF1xxm0l+ALpqZaYDU7KpoS3CO0my5HlBJbGfM1obAW6uThK7uKDhY/TK jXQx2kDmeCci3HniOjo1PV7A2uo2PwV1K4mRlbTwCzq6/9wIVETejG25pMKSxHu7YJdi /CyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=G9N+vqH2wuAuF6BLiN5MYvaXiR9YcNYFiJkKFxSov4w=; b=KQS9TqLl1yJo/ci3VyUcypCfXMZwrq+dTl2uilQv4rDSKgB4DkBRuUFESWe13b5PUa eRwYRXXksmxurlaSQDEOB8wSfkY1fPbe1FIe7Qu/hstDsC801yh0eX6nSW7bbV+8aplO H1dbfAoLUVDY4NHgEWPBsuqEi18nYgoqM25jU4SCbyQqJSM5KRytNIPpnn2SjDfthDin tjUpFLW9cVd1A7F8bMlzbZDgkL20yD4OrasVTtygqfU0Nj5JKE8alpIukrUatrW9AyL3 ds6ocM2+r8nuNM9IEORHwcJz+g99VWRHHtiRcWNNi6fxuFXIbj7zinsi4jNB3Iiyb/wP yz/w== X-Gm-Message-State: ABUngvfv0Z9JhKGzjwltLNYemudCKr1kHZFdDKius8dCZO1rmLqF07x33RhR3e9HWSh0JA== X-Received: by 10.99.122.14 with SMTP id v14mr9713944pgc.31.1479402030183; Thu, 17 Nov 2016 09:00:30 -0800 (PST) Original-Received: from Sonam ([50.0.192.79]) by smtp.gmail.com with ESMTPSA id p25sm9431596pfk.20.2016.11.17.09.00.29 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Nov 2016 09:00:29 -0800 (PST) X-Google-Original-From: Jeffrey DeLeo Original-Received: by Sonam (Postfix, from userid 1000) id 3tKS3J4gjQzqSqc; Thu, 17 Nov 2016 08:57:16 -0800 (PST) In-Reply-To: (Filipp Gunbin's message of "Thu, 17 Nov 2016 16:47:23 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::242 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111737 Archived-At: Filipp Gunbin writes: > Could you please show how you set up whatever points to your target > smtp server in posting styles? > > I now write smth like this to separate my private and work accounts: > > (setq gnus-posting-styles '((".*" (address "fgunbin@fastmail.fm") > ("X-Message-SMTP-Method" "smtp mail.messagingengine.com 587")) > ("nnfolder\\+mailserver:mail.work" (address "fgunbin@work.com") > ("X-Message-SMTP-Method" "smtp outlook.office365.com 587")))) > > When replying, it just works. When writing new message, I have to put > point onto `mail.work' group in *Groups* and use `C-u m' to have > *message* buffer set with the posting style above. > > Filipp In my emacs init file, I have: #+BEGIN_SRC (setq user-mail-address "mainEmailAddress@someWhere.com") (setq gnus-ignored-from-addresses (quote ("mainEmailAddress@someWhere.com" "me@specialGroup.org"))) #+END_SRC which sets my main email address. Associated with a particular Topic in gnus, I have set up another email address via a posting-style. When I am in that topic, that email address is used. This is set in .newsrc.eld in gnus-home-directory: #+BEGIN_SRC (setq gnus-topic-topology '(("Gnus" visible nil nil) (("Mail" visible nil nil) (("Personal" visible nil nil)) (("Work" visible nil nil)) (("SpecialGroup" visible nil ((posting-style (address "me@specialGroup.org") (organization "SpecialGroup"))))) (("Archive" visible nil nil) (("2013" invisible nil nil)) (("2014" invisible nil nil)) (("2015" invisible nil nil)) (("Ancient" invisible nil nil)))) (("misc" visible nil nil)) (("Dev" visible nil nil) (("Python" visible nil nil)) (("Emacs" visible nil nil)) (("News" visible nil nil))) )) #+END_SRC