Hi Philip, 
I send you excerpts from my .gnus file, maybe you find something
helpfull in it. There are a few links in it that have more information. 
Cheers
Thorsten


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; GNUS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; konfiguration von http://www.geier0815.de/

; lesen: newsserver festlegen
(setq gnus-select-method ' (nntp "news.xyz.de"))

;; ; schreiben: email-client einrichten
(setq message-sendmail-envelope-from 'header)
(setq user-mail-address "[email protected]")
(setq user-full-name "name")

;; ; mails empfangen
(setenv "MAILHOST" "imap.gmail.com")


;  Dreier Teilung des Fensters bei Gnus
(gnus-add-configuration '(article (horizontal 1.0 (vertical 65 (group 1.0) ) 
(vertical 1.0 (summary 0.15 point) (article 1.0) ))))
(gnus-add-configuration '(summary (horizontal 1.0 (vertical 65 (group 1.0) ) 
(vertical 1.0 (summary 1.0 point) ))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; http://www.emacswiki.org/emacs/GnusGmail
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Configuration

;; Accessing Gmail via Imap

;; Firstly, don’t forget to enable IMAP in your Gmail account (settings->
;; forwarding POP/IMAP).


;; ------------------------------
;; from http://cataclysmicmutation.com/2010/11/multiple-gmail-accounts-in-gnus/


;; Getting authinfo to work with multiple Gmail accounts
;; see /etc/hosts for gmail-aliasX.com
(setq gnus-secondary-select-methods
      '((nnimap "m1"
                (nnimap-address "imap.gmail-alias1.com")
                (nnimap-server-port 993)
                (nnimap-stream ssl)
                (nnimap-authinfo-file "~/.authinfo"))
        (nnimap "m2"
                (nnimap-address "imap.gmail-alias2.com")
                (nnimap-server-port 993)
                (nnimap-stream ssl)
                (nnimap-authinfo-file "~/.authinfo"))
        (nnimap "m3"
                (nnimap-address "imap.gmail-alias3.com")
                (nnimap-server-port 993)
                (nnimap-stream ssl)
                (nnimap-authinfo-file "~/.authinfo"))
        (nnimap "m4"
                (nnimap-address "imap.gmail-alias4.com")
                (nnimap-server-port 993)
                (nnimap-stream ssl)
                (nnimap-authinfo-file "~/.authinfo"))))


;; Setting up Multiple SMTP Servers
;; see ~/.msmtprc


; Setting behaviors per Mailbox
(setq gnus-parameters
 '(
     ("nnimap\\+m1:INBOX"
         (display . all)
         (posting-style
          (name "name")
          (address "[email protected]")
     ;(organization "m1")
          (eval (setq message-sendmail-extra-arguments '("-a" "m1")))
     ;(signature-file "~/.signature-m1")
       )
      )
        ("nnimap\\+m2:INBOX"
         (display . all)
         (posting-style
          (name "name")
          (address "[email protected]")
          (eval (setq message-sendmail-extra-arguments '("-a" "m2")))
          ;(signature-file "~/.signature-m2") 
       )
      )

        ("nnimap\\+m3:INBOX"
         (display . all)
         (posting-style
          (name "name")
          (address "[email protected]")
          (eval (setq message-sendmail-extra-arguments '("-a" "m3")))
          ;(signature-file "~/.signature-name")
          )
         )

     ("nnimap\\+m4:INBOX"
         (display . all)
         (posting-style
          (name "name")
          (address "[email protected]")
          (organization "name")
          (eval (setq message-sendmail-extra-arguments '("-a" "m4")))
        ;(signature-file "~/.signature-m4")
          )
      )
   ))


;;;  a few global settings
(setq message-send-mail-function 'message-send-mail-with-sendmail)
(setq sendmail-program "/usr/bin/msmtp")
(setq message-sendmail-extra-arguments '("-a" "name"))
(setq gnus-permanently-visible-groups ".*")

;; Fixing the Naming Problem
(add-hook 'gnus-group-mode-hook 'gnus-topic-mode)


;; ------------------------------







G Philip <[email protected]> writes:

> Hi,
>
> I am a new Gnus user. I have set up Gnus to work with Gmail using
> offlineimap. Whenever I try to compose a message (or reply to a
> message), I get the following problems:
>
> 1. The "Fcc:" field is populated with a non-existant directory, and I am
> prompted whether I want to create this maildir. Since I don't want to
> save a local copy of the sent message (because Gmail SMTP and IMAP will
> get it for me anyway), I have to always say "no" before proceeding. This
> is a nuisance when it happens every time.
>
> 2. The "From:" field is populated by a junk email id, constructed from
> my username on the local machine and the local machine's hostname. I
> have to edit this field also every time so that it is my proper email
> address. 
>
>   Since I use a couple of email addresses with my gmail account,
> I have tried the following in my .gnus file to get this field to use the
> "To:" address of the email to which I am replying:
>
> ;; Reply using the same address as to which the original was addressed. 
> (setq message-alternative-emails
>                 (regexp-opt '("[email protected]" 
> "[email protected]")))
>
>
> ;; (setq gnus-posting-styles
>        '(((header "to" "[email protected]")
>           (address "[email protected]"))
>          ((header "to" "[email protected]")
>           (address "[email protected]"))))
>
> But neither of these works.
>
> Could you help me with these?
>
> Thanks and regards,
> Philip


_______________________________________________
info-gnus-english mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to