Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "harel barzilai" <barzilai@gmail.com>
Subject: Re: Learning gnus for email only
Date: 5 Jan 2007 21:22:59 -0800	[thread overview]
Message-ID: <1168060979.025775.34360@38g2000cwa.googlegroups.com> (raw)
In-Reply-To: <8764bloiag.fsf@shellarchive.co.uk>

Hi Springfield and Reiner

Springfield wrote:
> Hi harel,
>
> "harel barzilai" <barzilai@gmail.com> 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

  reply	other threads:[~2007-01-06  5:22 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1167115181.099537.35020@a3g2000cwd.googlegroups.com>
     [not found] ` <85vejxndbo.fsf@robf.de>
2006-12-29  5:20   ` Emacs Mailer Options harel barzilai
2006-12-29  9:08     ` Reiner Steib
2006-12-29 12:13       ` Slackat
2006-12-29 16:38     ` Giorgos Keramidas
2006-12-31  6:55       ` harel barzilai
2007-01-01  7:14 ` Learning gnus for email only (Was: Re: Emacs Mailer Options) harel barzilai
2007-01-01 17:28   ` Learning gnus for email only Reiner Steib
2007-01-02  4:41     ` harel barzilai
2007-01-02  5:40     ` harel barzilai
2007-01-02  6:48       ` Slackat
2007-01-02 20:36       ` harel barzilai
2007-01-02 22:51         ` Reiner Steib
2007-01-05  2:35           ` harel barzilai
2007-01-05 10:54             ` Springfield
2007-01-06  5:22               ` harel barzilai [this message]
2007-01-06 13:09                 ` Reiner Steib
2007-01-06 13:40                   ` Slackrat
2007-01-06 14:20                     ` Reiner Steib
2007-01-05 12:23             ` Reiner Steib
     [not found] ` <1167547830.044677.30770@v33g2000cwv.googlegroups.com>
     [not found]   ` <1168062671.653432.216140@i15g2000cwa.googlegroups.com>
     [not found]     ` <87k5zzyhfy.fsf@kobe.laptop>
2007-01-12  5:53       ` Emacs Mailer Options harel barzilai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1168060979.025775.34360@38g2000cwa.googlegroups.com \
    --to=barzilai@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).