info-gnus-english
[Top][All Lists]
Advanced

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

Re: Getting rid of the Fcc: field, and other compose problems.


From: Thorsten
Subject: Re: Getting rid of the Fcc: field, and other compose problems.
Date: Mon, 12 Sep 2011 23:37:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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 "m1@googlemail.com")
(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 "m1@gmail.com")
     ;(organization "m1")
          (eval (setq message-sendmail-extra-arguments '("-a" "m1")))
     ;(signature-file "~/.signature-m1")
       )
      )
        ("nnimap\\+m2:INBOX"
         (display . all)
         (posting-style
          (name "name")
          (address "m2@googlemail.com")
          (eval (setq message-sendmail-extra-arguments '("-a" "m2")))
          ;(signature-file "~/.signature-m2") 
       )
      )

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

     ("nnimap\\+m4:INBOX"
         (display . all)
         (posting-style
          (name "name")
          (address "m4@googlemail.com")
          (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 <gphilip@india.com> 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 '("myfirstaddress@gmail.com" 
> "myotheraddress@gmail.com")))
>
>
> ;; (setq gnus-posting-styles
>        '(((header "to" "myfirstaddress@gmail.com")
>           (address "myfirstaddress@gmail.com"))
>          ((header "to" "myotheraddress@gmail.com")
>           (address "myotheraddress@gmail.com"))))
>
> But neither of these works.
>
> Could you help me with these?
>
> Thanks and regards,
> Philip




reply via email to

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