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

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

Mailsource maildir problems


From: R7h0re4
Subject: Mailsource maildir problems
Date: Fri, 05 Aug 2011 14:20:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

I am having major problems with getting mails into gnus as I want to use
that as my mail MUA.  I have checked the manual, the tutorial as well as
trying to find as much online as possible but I am coming up short.  I
will provide my gnus.el file as well and the wiki, and IRC channel seems
to lacking when it comes to the exact setup.

What I am trying to do is something like this simple diagram shows.

getmail -> Maildir -> gnus -> msmtp

I am having problems getting gnus to get the mail from the mail
directory, and can not get posting styles or other methods mentioned in
the wiki to send mail out with the proper smtp server.  Msmtp works but
using some code found on the emacswiki came back with error 78, and
changing my msmtp config did not solve the problem and using posting
styles did not solve the problem as well.

I would like the community to check out my gnus.el file and give
suggestions on how to solve the problem. I am using Archlinux with Emacs
23.3.1 and the gnus bundled with this build.  Below is the provided
gnus.el file that I am using at the moment.  The file loads gives no
errors but is not correct.  I also have Two mailboxes it seems even with
the changes parts of gnus like the archive folder uses nnfolder, and
wants to store the files in the mail folder instead of the Maildir
folder.  Hopefully we can solve this problem so I can learn more gnus
and be more productive.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; gnus.el
;;;
;;;
;;; Mail address User name
;;;
(setq user-mail-address "mynet")
(setq user-full-name "given")
(setq mail-host-address "t.")
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; 
;;; Use Ispell to check spelling
(add-hook 'message-send-hook 'ispell-message)
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Posting styles
(setq gnus-parameters
  ;;Use id for all gmane news group postings
  '((".*news\\.gmane\\.org.*"
     (posting-style
      (address ".net")
      (name "asd7h")
      (body "\n\n\n newness\n -- ")
      (eval (setq message-sendmail-extra-arguments '("-a" "n1")))
      (user-mail-address "n2")))
      ;;use rtc id for all normal mails
    (".*mail\\.misc"
     (posting-style
      (address "n4")
      (name "sc")
      (body "\n\n\n ntc\n -- \n")
      (eval (setq message-sendmail-extra-arguments '("-a" "ntc")))
      (user-mail-address "nedis")))))
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; nnmaildir msmtp settings
;;; mail sources 
;;;(setq mail-sources '(maildir :path "/home/user/Maildir/"
;;;      :subdirs ("cur" "new")))
;;;
(setq gnus-secondary-select-methods 
      '((nnmaildir "mail" (directory "~/Maildir"))))
 ;; arbitrary name after "nnmaildir+"
(setq gnus-message-archive-group "nnmaildir+us4:outbox")
(setq message-sendmail-envelope-from 'header)
(setq  mail-envelope-from 'header)
(setq message-send-mail-function 'message-send-mail-with-sendmail)
;;; we substitute sendmail with msmtp
(setq sendmail-program "/usr/bin/msmtp")
(setq message-sendmail-envelope-from 'header)
;;; need to tell msmtp which account we're using
(setq message-sendmail-extra-arguments '("-a" "use4"))
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; NNTP Servers
;;;
(setq gnus-select-method '(nntp "news.gmane.org"))
;;;
;;; we want to browse freely from gwene (RSS)
(setq gnus-safe-html-newsgroups "\\`nntp[+:]news\\.gwene\\.org[+:]") 
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq smtpmail-debug-info t)
(setq smtpmail-debug-verb t )


Thanks;

R7h0re4




reply via email to

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