Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-unagentize?
@ 2000-02-29 14:36 Hannu Koivisto
  2000-04-20 20:46 ` gnus-unagentize? Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Hannu Koivisto @ 2000-02-29 14:36 UTC (permalink / raw)


Greetings,

There does not  seem to be such function  which raises the question
of what  does gnus-agentize  actually affect if  you don't  use the
agent functionality?  

The problem I  have is that I'm using  separate Gnus configurations
for reading  news and mail (functions  that I use  to start reading
mail  and  news  change  the active  configuration  (actually  just
gnus-select-method   and   few   rather  non-important   variables;
everything else  stays the  same, some things  just are  not used))
with separate  .newsrc-* files so that  I can read news  and mail at
the same  time in  different Emacs processes.   Now I want  to read
mail  and news  on another  machine too.   Mail part  is  "easy": I
mirror  folder  tree  with  rsync  and  fetch  new  mail  from  the
splitted-with-procmail -spool-folder to  that other machine with my
own  scripts  so Gnus  doesn't  even notice  that  I  read mail  on
different machines.

For  news,  I've  decided  to  abandon inn,  leafnode  etc.   based
solutions so  I thought agent  would be a  Good Idea on  that other
machine.  I don't want to  kill Emacs between reading mail and news
so  what do  I do?   I mean,  my initial  idea was  to add  call to
gnus-agentize to  the function that  invokes Gnus for  reading news
and  something like  gnus-unagentize to  the function  that invokes
Gnus for reading mail, but since  there is no such function I can't
do that.  But  do I really have to  care about gnus-agentize having
been called when I don't use agent functionality when reading mail?

I also  assume and  hope that  using agent doesn't  show up  in any
confusing way in .newsrc-* file or other state files which I use on
both  machines, the  other using  a direct  connection to  the news
server and the other one not.

-- 
Hannu



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

* Re: gnus-unagentize?
  2000-02-29 14:36 gnus-unagentize? Hannu Koivisto
@ 2000-04-20 20:46 ` Lars Magne Ingebrigtsen
  2000-04-21  0:41   ` gnus-unagentize? Pavel Janik ml.
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-04-20 20:46 UTC (permalink / raw)


Hannu Koivisto <azure@iki.fi> writes:

> But do I really have to care about gnus-agentize having been called
> when I don't use agent functionality when reading mail?

Yes, kinda.  The agent unplugs all mail by default when run.

> I also assume and hope that using agent doesn't show up in any
> confusing way in .newsrc-* file or other state files which I use on
> both machines, the other using a direct connection to the news
> server and the other one not.

It doesn't.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: gnus-unagentize?
  2000-04-20 20:46 ` gnus-unagentize? Lars Magne Ingebrigtsen
@ 2000-04-21  0:41   ` Pavel Janik ml.
  2000-04-21  1:31     ` gnus-unagentize? Harry Putnam
  2000-04-21  1:34     ` gnus-unagentize? Shenghuo ZHU
  0 siblings, 2 replies; 6+ messages in thread
From: Pavel Janik ml. @ 2000-04-21  0:41 UTC (permalink / raw)


   From: Lars Magne Ingebrigtsen <larsi@gnus.org>
   Date: 20 Apr 2000 22:46:06 +0200

Hi,

   > > But do I really have to care about gnus-agentize having been called
   > > when I don't use agent functionality when reading mail?
   > 
   > Yes, kinda.  The agent unplugs all mail by default when run.

I agree when sending mail, but what about getting local mail? When I'm
unplugged I can not get my mail from my spool directory where procmail is
delivering:

(setq gnus-select-method '(nnfolder ""))
(setq mail-sources '((directory :path "/home/pavel/.Spool/" :suffix "")))

So I must press J J to become plugged and g for getting mail and news (which
will bring my Emacs into almost unusable state for about 10s when it is trying
to connect to other nntp servers). Another way is to temporary disable nntp
servers via server buffer :-( I do not like that approach.
-- 
Pavel Janík ml.
Pavel.Janik@inet.cz



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

* Re: gnus-unagentize?
  2000-04-21  0:41   ` gnus-unagentize? Pavel Janik ml.
@ 2000-04-21  1:31     ` Harry Putnam
  2000-04-21  1:34     ` gnus-unagentize? Shenghuo ZHU
  1 sibling, 0 replies; 6+ messages in thread
From: Harry Putnam @ 2000-04-21  1:31 UTC (permalink / raw)


Pavel.Janik@inet.cz (Pavel Janik ml.) writes:

>    From: Lars Magne Ingebrigtsen <larsi@gnus.org>
>    Date: 20 Apr 2000 22:46:06 +0200
> 
> Hi,
> 
>    > > But do I really have to care about gnus-agentize having been called
>    > > when I don't use agent functionality when reading mail?
>    > 
>    > Yes, kinda.  The agent unplugs all mail by default when run.
> 
> I agree when sending mail, but what about getting local mail? When I'm
> unplugged I can not get my mail from my spool directory where procmail is
> delivering:

I think that is what Lars means when he says  "The agent unplugs *ALL*
mail... when run"

Gnus, without a special setup, cannot get local mail when unplugged.

> 
> (setq gnus-select-method '(nnfolder ""))
> (setq mail-sources '((directory :path "/home/pavel/.Spool/" :suffix "")))
> 
> So I must press J J to become plugged and g for getting mail and news (which
> will bring my Emacs into almost unusable state for about 10s when it is trying
> to connect to other nntp servers). Another way is to temporary disable nntp
> servers via server buffer :-( I do not like that approach.

Something that will make the above procedure alot less painful is to
put all mail groups on level 1.

Then pressing 'J j' then `1 g' will only scan mail.  Newsgroups will
not be called for unless they are at level one.  (The news group  level
default is 3)

Still a bit of a job to go plugged then a `1 g' but you won't have to
wait for any nntp servers.

I wonder if it is possible to have gnus be able to scan mail locally when
"unplugged" ..... Lars?




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

* Re: gnus-unagentize?
  2000-04-21  0:41   ` gnus-unagentize? Pavel Janik ml.
  2000-04-21  1:31     ` gnus-unagentize? Harry Putnam
@ 2000-04-21  1:34     ` Shenghuo ZHU
  2000-04-21  7:28       ` gnus-unagentize? Pavel Janik ml.
  1 sibling, 1 reply; 6+ messages in thread
From: Shenghuo ZHU @ 2000-04-21  1:34 UTC (permalink / raw)


>>>>> "Pavel" == Pavel Janik ml <Pavel.Janik@inet.cz> writes:

Pavel> (setq gnus-select-method '(nnfolder ""))
Pavel> (setq mail-sources '((directory :path "/home/pavel/.Spool/" :suffix "")))

Pavel> So I must press J J to become plugged and g for getting mail
Pavel> and news (which will bring my Emacs into almost unusable state
Pavel> for about 10s when it is trying to connect to other nntp
Pavel> servers). Another way is to temporary disable nntp servers via
Pavel> server buffer :-( I do not like that approach.

Add ':plugged t' in the local mail sources, which means always being
plugged, e.g.

(setq mail-sources '((directory :path "/home/pavel/.Spool/" 
                                :suffix ""
                                :plugged t)))


-- 
Shenghuo



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

* Re: gnus-unagentize?
  2000-04-21  1:34     ` gnus-unagentize? Shenghuo ZHU
@ 2000-04-21  7:28       ` Pavel Janik ml.
  0 siblings, 0 replies; 6+ messages in thread
From: Pavel Janik ml. @ 2000-04-21  7:28 UTC (permalink / raw)
  Cc: ding

   From: Shenghuo ZHU <zsh@cs.rochester.edu>
   Date: 20 Apr 2000 21:34:15 -0400

Hi,

   > Add ':plugged t' in the local mail sources, which means always being
   > plugged, e.g.
   > 
   > (setq mail-sources '((directory :path "/home/pavel/.Spool/" 
   >                                 :suffix ""
   >                                 :plugged t)))

yes! Thank you and it is mentioned in the doc. I'm sorry. I'd like to see more
comments on this in the manual:

--- gnus.texi.orig      Fri Apr 21 09:14:47 2000
+++ gnus.texi   Fri Apr 21 09:19:47 2000
@@ -11206,7 +11206,17 @@
 
 @table @code
 @item :plugged
-If non-nil, fetch the mail even when Gnus is unplugged.
+If non-nil, fetch the mail even when Gnus is unplugged. If you use directory
+source to get mail, you can specify it as in this example:
+
+@lisp
+(setq mail-sources '((directory :path "/home/pavel/.Spool/" 
+                                :suffix ""
+                                :plugged t)))
+@end lisp
+
+Gnus will then fetch your mail even when you are unplugged. This is really
+useful when you use local mail and News.
 
 @end table
 @end table


-- 
Pavel Janík ml.
Pavel.Janik@inet.cz



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

end of thread, other threads:[~2000-04-21  7:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-29 14:36 gnus-unagentize? Hannu Koivisto
2000-04-20 20:46 ` gnus-unagentize? Lars Magne Ingebrigtsen
2000-04-21  0:41   ` gnus-unagentize? Pavel Janik ml.
2000-04-21  1:31     ` gnus-unagentize? Harry Putnam
2000-04-21  1:34     ` gnus-unagentize? Shenghuo ZHU
2000-04-21  7:28       ` gnus-unagentize? Pavel Janik ml.

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