Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* multiple nnfolder instances
@ 2007-06-08  0:58 Ted Baltz
  2007-06-08 14:11 ` Reiner Steib
  0 siblings, 1 reply; 4+ messages in thread
From: Ted Baltz @ 2007-06-08  0:58 UTC (permalink / raw)
  To: info-gnus-english

Is there a way (with gnus-secondary-select-methods perhaps) to have
multiple instances of nnfolder?  I would like to be able to read two
accounts on the same machine.  What I have in mind is copying the
mailboxes, .nov, .mrk and active file from one machine onto another.
I'd then have ~/Mail and ~/Mail-external directories, each having mail
files and active files.  I'd like to be able to simply rsync into
~/Mail-external.  Mail actually sent to this account would end up in
~/Mail.

Any hints?  Thanks very much!

-Ted


-- 
eabaltz at sophont dot net

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

* Re: multiple nnfolder instances
  2007-06-08  0:58 multiple nnfolder instances Ted Baltz
@ 2007-06-08 14:11 ` Reiner Steib
  2007-06-08 19:11   ` Ted Baltz
  0 siblings, 1 reply; 4+ messages in thread
From: Reiner Steib @ 2007-06-08 14:11 UTC (permalink / raw)
  To: info-gnus-english

On Fri, Jun 08 2007, Ted Baltz wrote:

> Is there a way (with gnus-secondary-select-methods perhaps) to have
> multiple instances of nnfolder?  I would like to be able to read two
> accounts on the same machine.  What I have in mind is copying the
> mailboxes, .nov, .mrk and active file from one machine onto another.
> I'd then have ~/Mail and ~/Mail-external directories, each having mail
> files and active files.  I'd like to be able to simply rsync into
> ~/Mail-external.  Mail actually sent to this account would end up in
> ~/Mail.

Something along this lines should do the trick...

(add-to-list 'gnus-secondary-select-methods
	     '(nnfolder "mail-external"
			(nnfolder-directory "~/Mail-external")
			(nnfolder-newsgroups-file "~/Mail-external/newsgroups")
			(nnfolder-get-new-mail nil)
			(nnfolder-active-file "~/Mail-external/active"))
	     t)

See (info "(gnus)Mail Folders") for information about these and more
server settings.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: multiple nnfolder instances
  2007-06-08 14:11 ` Reiner Steib
@ 2007-06-08 19:11   ` Ted Baltz
  2007-06-08 21:45     ` Reiner Steib
  0 siblings, 1 reply; 4+ messages in thread
From: Ted Baltz @ 2007-06-08 19:11 UTC (permalink / raw)
  To: info-gnus-english

>> Is there a way (with gnus-secondary-select-methods perhaps) to have
>> multiple instances of nnfolder?  I would like to be able to read two
>> accounts on the same machine.  What I have in mind is copying the
>> mailboxes, .nov, .mrk and active file from one machine onto another.
>> I'd then have ~/Mail and ~/Mail-external directories, each having mail
>> files and active files.  I'd like to be able to simply rsync into
>> ~/Mail-external.  Mail actually sent to this account would end up in
>> ~/Mail.
>
> Something along this lines should do the trick...
>
> (add-to-list 'gnus-secondary-select-methods
> 	     '(nnfolder "mail-external"
> 			(nnfolder-directory "~/Mail-external")
> 			(nnfolder-newsgroups-file "~/Mail-external/newsgroups")
> 			(nnfolder-get-new-mail nil)
> 			(nnfolder-active-file "~/Mail-external/active"))
> 	     t)
>
> See (info "(gnus)Mail Folders") for information about these and more
> server settings.

Thanks, this did the trick.  I had tried something similar earlier, but
I imagine as is typical for me with lisp I was using
{too much,not enough} {quoting,parentheses}.

I never did figure out why nnfolder-generate-active-file wasn't working
with emacs-22, but this is better solution anyway.

Thanks very much,
Ted

--
eabaltz at sophont dot net

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

* Re: multiple nnfolder instances
  2007-06-08 19:11   ` Ted Baltz
@ 2007-06-08 21:45     ` Reiner Steib
  0 siblings, 0 replies; 4+ messages in thread
From: Reiner Steib @ 2007-06-08 21:45 UTC (permalink / raw)
  To: info-gnus-english

On Fri, Jun 08 2007, Ted Baltz wrote:

> I had tried something similar earlier, but I imagine as is typical
> for me with lisp I was using {too much,not enough}
> {quoting,parentheses}.

Use `M-x customize-variable RET gnus-secondary-select-methods RET'
instead.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

end of thread, other threads:[~2007-06-08 21:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-08  0:58 multiple nnfolder instances Ted Baltz
2007-06-08 14:11 ` Reiner Steib
2007-06-08 19:11   ` Ted Baltz
2007-06-08 21:45     ` Reiner Steib

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