From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8490 Path: news.gmane.org!not-for-mail From: "harel barzilai" Newsgroups: gmane.emacs.gnus.user Subject: Re: Learning gnus for email only Date: 5 Jan 2007 21:22:59 -0800 Organization: http://groups.google.com Message-ID: <1168060979.025775.34360@38g2000cwa.googlegroups.com> References: <1167115181.099537.35020@a3g2000cwd.googlegroups.com> <1167635655.197063.70530@h40g2000cwb.googlegroups.com> <1167716422.116591.181630@i12g2000cwa.googlegroups.com> <1167770160.108430.191170@42g2000cwt.googlegroups.com> <1167964557.579324.151840@v33g2000cwv.googlegroups.com> <8764bloiag.fsf@shellarchive.co.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1168062056 11043 80.91.229.12 (6 Jan 2007 05:40:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2007 05:40:56 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Jan 06 06:40:56 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H34IZ-0002js-6y for gegu-info-gnus-english@m.gmane.org; Sat, 06 Jan 2007 06:40:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H34IY-0002VH-Gs for gegu-info-gnus-english@m.gmane.org; Sat, 06 Jan 2007 00:40:54 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!38g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.gnus Original-Lines: 220 Original-NNTP-Posting-Host: 68.238.93.57 Original-X-Trace: posting.google.com 1168060989 19979 127.0.0.1 (6 Jan 2007 05:23:09 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 6 Jan 2007 05:23:09 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060731 Ubuntu/dapper-security Firefox/1.5.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 38g2000cwa.googlegroups.com; posting-host=68.238.93.57; posting-account=4nbvcQwAAAD_uQjdggUVGc7tqUVw78a7 Original-Xref: shelby.stanford.edu comp.emacs:93557 gnu.emacs.gnus:78674 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:8490 Archived-At: Hi Springfield and Reiner Springfield wrote: > Hi harel, > > "harel barzilai" writes: > > > Reiner Steib wrote: > > > >> I'd suggest the following setup: > >> > >> (setq gnus-select-method '(nnnil "")) > >> (setq mail-sources nil) > >> > >> (add-to-list > >> 'gnus-secondary-select-methods > >> '(nnmaildir "test" > >> (directory "~/Maildir") > >> (create-directory "../foo") > >> (directory-files nnheader-directory-files-safe) > >> (get-new-mail nil))) > > > > Thanks, but it's not clear to me what you're suggesting I create as > > "foo"? > > > >> I'm not sure about the correct server parameter (I don't use maildir). > > > > Hmm, what does this have to do with servers? I thought we are just > > trying to tell gnus *not* to look on any server but just to know which > > local > > files/directories to look for, to find email messages? > > I use this with a late gnus: By "late" gnus do you mean a recent version? The version I am given by dreamhost.com is 5.9.0 > (setq gnus-secondary-select-methods > '((nnmaildir "" > (directory "~/.nnmaildir/") > (expire-age never) > ))) > In ~/.nnmaildir/ I have symlinks to my Maildirs like this: > > catalyst@lists.rawmode.org -> /home/xxx/Mail/lists/catalyst@lists.rawmode.org > emacs-devel@gnu.org -> /home/xxx/Mail/lists/emacs-devel@gnu.org > personal -> /home/xxx/Mail/personal > > This is ideal as I like procmail to process my emails rather than > splitting. I am very new to gnus and was confused by this. What I *think* you are saying is that gnus has a method called "splitting" but that you do not use the built-in gnus feature called "splitting" and that you use procmail instead of gnus, is that what you are saying? If so, I have no personal preference, except I want the simplest possible thing, and I am not familiar with procmail (it is not a bad idea to assume I know zero except for basic use of Gnu emacs itself including rmail). If I leave my ..nmaildir empty will your setup still work? If not, then that's a problem since I don't know how to put procmail directions in there (and I do not need to learn how to process mailing lists now..I am extremely eager to just get some basic email functioning; I can always work on learning more and post questions here, in a few months about email list and procmail versus 'splitting') I'm also confused about what exactly to put in my .gnus, which code to add and which to replace so I need an entire start-to-finish .gnus.el ...here is the one I have now (Reiner, note the difference too) ===start of file=== (setq gnus-select-method '(nnnil "")) (setq mail-sources nil) (add-to-list 'gnus-secondary-select-methods '(nnmaildir "test" (directory "~/Maildir") (create-directory "../foo") (directory-files nnheader-directory-files-safe) (get-new-mail nil))) ;; (maildir :path "/home/user_a/Maildir/" ;; :subdirs ("cur" "new")) (setq mail-sources '(maildir :path "/home/user_a/Maildir/" :subdirs ("cur" "new"))) ===end of file=== In particular I had already removed the part > (maildir :path "/home/user_a/Maildir/" > :subdirs ("cur" "new")) and replaced it with what I labeled [[1]] in my previous post. The [[1]] is the last two lines in the above .gnus.el Since I don't know any elisp (I am not counting copy/paste inclusions) I don't know how to get info about the code other than "byte-compile" (also they tell you to byte-compile to make things faster, but maybe there is a reason to NOT do this to .emacs and .gnus if so what are the reasons? And, how can I get the same "test to see if there are error messages" so I can tell you what those messages are, what method instead of byte-compile? I think it's something like C-x C-e but for a whole buffer, or will I just put the entire .gnus.el in a "*scratch*" buffer (which says "(Lisp interaction)") and C-x C-e?) If I am supposed to use something like (add-to-list 'mail-sources '(maildir ...)) is that INSTEAD of (setq mail-sources '(maildir :path "/home/user_a/Maildir/" :subdirs ("cur" "new"))) and if so what is the entire command, what do I put instead of "..."? I unfortunately cannot learn elisp extensively, I just need basic code to copy/paste into my entire .gnus.el and have a running, working email environment. I understand Reiner that you do not use the Maildir. I do *not* fully understand what you said in your most recent email but I think I partially understand it. I think you are saying that in order to know what do put instead of "foo" I need to learn about these server variable entities that "go with" maildir. Honestly my head is throbbing and if I were not on (semi)break between semesters I would have given up a while ago, I am trying very hard to follow. Gnus is not something that your average person who is "very comfortable with emacs but nothing else"can simply copy/paste a .gnus.el from the www and be done...but we have all invested a lot and it seems we just need a little Maildir info and then all should be ready. >So in the example above, `directory', `create-directory', >`directory-files' and `get-new-mail' are server parameters ok I did (info "(gnus)Server Variables"); <== Press C-x C-e here! but honestly this is interesting, but it is way beyond what I have time to learn right now the entire elisp/gnus aspects. What I *did* learn is that I have to set some entities to ~/Maildir/ and that it is NOT enough to only set one thing only. Other than that I'm lost. Again I do not have ;; (maildir :path "/home/user_a/Maildir/" ;; :subdirs ("cur" "new")) in my .gnus.el any more, and did not have it last night either, but still am getting Compiling file /home/user_a/.gnus.el at Sat Jan 6 00:16:06 2007 ** assignment to free variable mail-sources so that's my first question and what to put instead of "foo" is the other question. Could someone, anyone, post a start-to-finish .gnus.el that I could use, by modifying the one I currently have, which I'll include again below? I really don't want to give up on gnus but I have a very simple need (using gnus for reading/sending email only, and am forced to use Maildir format for email that my dreamhost.com puts in my ~/Maildir/ direcotry for me) for the time being. Thanks, Harel P.S. thanks Reiner also for the news-reader alternative for the gnus group I will look into it next my .gnus.el below ===start (setq gnus-select-method '(nnnil "")) (setq mail-sources nil) (add-to-list 'gnus-secondary-select-methods '(nnmaildir "test" (directory "~/Maildir") (create-directory "../foo") (directory-files nnheader-directory-files-safe) (get-new-mail nil))) ;; (maildir :path "/home/user_a/Maildir/" ;; :subdirs ("cur" "new")) (setq mail-sources '(maildir :path "/home/user_a/Maildir/" :subdirs ("cur" "new"))) ==end