Gnus development mailing list
 help / color / mirror / Atom feed
* Re: procmail and nnfolder
@ 1997-04-07  6:51 Jason R. Mastaler
  1997-04-07 18:30 ` Jason R. Mastaler
  1997-04-08 21:00 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 11+ messages in thread
From: Jason R. Mastaler @ 1997-04-07  6:51 UTC (permalink / raw)


> Ok, thanks for clearing this up.  However, this isn't working for
> me.  When I fire up Gnus, it isn't moving any mail over to my 
> 'nnfolder-directory'.  Here is what I added to .gnus
> 
>   (setq nnmail-use-procmail t)
>   (setq nnfolder-directory "~/gMail/")
>   (setq nnmail-spool-file 'procmail)
>   (setq nnmail-procmail-directory "~/incoming/lists/")
>   (setq gnus-secondary-select-methods '((nnfolder "")))
>   (setq nnmail-procmail-suffix "")
> 
> Procmail is adding incoming mail to ~/incoming/lists/listname.
> The nnfolder groups I subscribed to are named "nnfolder:lists.listname"
> Gnus does create the ~/gMail/lists directory with a zero lengh file
> in this directory for each list, but doesn't move any mail over and
> so it thinks I have "No more unread newsgroups". 

After much experimentation, I finally got movemail to work.  I changed
nnfolder-directory to "~/gMail/lists/" and Gnus now moves mail from
"~/incoming/lists/" to corresponding groups in "~/gMail/".  My problem
seems to be solved, but still these workings seem counter-intuitive 
to me.  By what the manual has to say about 'nnfolder-directory' I
would think Gnus should build the nnfolder groups in "~/gMail/lists/" 
instead given my definitions.

-- 
Jason R. Mastaler                                 jason@mastaler.com



^ permalink raw reply	[flat|nested] 11+ messages in thread
* procmail and nnfolder
@ 1997-04-05  6:51 Jason R. Mastaler
  1997-04-05  8:36 ` Jason L Tibbitts III
  0 siblings, 1 reply; 11+ messages in thread
From: Jason R. Mastaler @ 1997-04-05  6:51 UTC (permalink / raw)


I'm still trying to find the "right" relationship between Gnus and
procmail.  I currently use procmail to shuffle my incoming mail info
different folders, one mail folder for each mailing list.  So the ding
list goes into ~/Mail/lists/ding for example.  I use Gnus to read
these lists with nnfolder as the backend.  So, my group for the ding
list is 'nnfolder:lists.ding' .  Reading through the Gnus manual today
I noticed in the "Mail and Procmail" section:

  If you use nnfolder or any other backend that store more than a
  single article in each file, you should never have procmail add mails
  to the file that Gnus sees. Instead, procmail should put all
  incoming mail in nnmail-procmail-directory. To arrive at the file
  name to put the incoming mail in, append nnmail-procmail-suffix to
  the group name. The mail backends will read the mail from these
  files. 

So does this mean I've been doing what the manual says not to?  (It
looks like it)  If so, why is this bad?  I've never noticed any side
effects from this combination.  I'm also a bit confused with at the
proposed solution of having procmail filter incoming mail in a 
nnmail-procmail-directory instead.

Here is the included example:

  (setq nnfolder-directory "~/fMail/")
  (setq nnmail-spool-file 'procmail)
  (setq nnmail-procmail-directory "~/incoming/")
  (setq gnus-secondary-select-methods '((nnfolder "")))
  (setq nnmail-procmail-suffix "")

Why are nnfolder-directory and nnmail-procmail-directory two different
directories if nnmail-procmail-directory will contain the mail boxes
that procmail appends to and nnfolder-directory is supposed to be
"All the nnfolder mail boxes will be stored under this directory"?

Is the idea to have Gnus use nnmail-procmail-directory as a temporary
directory that it draws from to process and then deposit nnfolder
mailboxes in the nnfolder-directory?  In this case, I guess I would
have procmail filter like this (for example):

ding list --> ~/incoming/lists/ding
bind list --> ~/incoming/lists/bind

Then, if I define (setq nnfolder-directory "~/Mail/lists/") + 
(setq nnmail-procmail-directory "~/incoming/lists/") would Gnus
automagically know that the group 'nnfolder:lists.ding' should be
drawn from ~/incoming/lists/ding and stored as ~/Mail/lists/ding ?

Thanks,

-- 
Jason R. Mastaler                                 jason@mastaler.com


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~1997-04-10 17:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-07  6:51 procmail and nnfolder Jason R. Mastaler
1997-04-07 18:30 ` Jason R. Mastaler
1997-04-08 21:00 ` Lars Magne Ingebrigtsen
1997-04-09  2:13   ` Jason R. Mastaler
1997-04-10 17:29     ` Lars Magne Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
1997-04-05  6:51 Jason R. Mastaler
1997-04-05  8:36 ` Jason L Tibbitts III
1997-04-05 19:07   ` Jason R. Mastaler
1997-04-06 17:37     ` Lars Magne Ingebrigtsen
1997-04-06 22:35       ` Jason R. Mastaler
1997-04-08 20:58         ` Lars Magne Ingebrigtsen

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).