help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus and offline Email


From: Jeffrey DeLeo
Subject: Re: Gnus and offline Email
Date: Thu, 17 Nov 2016 08:57:16 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Filipp Gunbin <address@hidden> 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 "address@hidden")
> ("X-Message-SMTP-Method" "smtp mail.messagingengine.com 587"))
> ("nnfolder\\+mailserver:mail.work" (address "address@hidden")
> ("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 "address@hidden")
  (setq gnus-ignored-from-addresses (quote ("address@hidden" "address@hidden")))
#+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 "address@hidden") (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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]