Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Mark Dixon <in_my.t@gline.org>
Subject: Re: Little help sorting please...
Date: Sun, 29 Dec 2002 08:42:36 GMT	[thread overview]
Message-ID: <m3u1gxqkej.fsf@west_mm.org> (raw)
In-Reply-To: <m3isxdfcar.fsf@west_mm.org>


> > Mike Dixon <in_my.t@gline.org> writes:
> > 
> > >> Why is the filename important if you can access the stuff via the
> > >> group nnfolder+archive:gnu.emacs.gnus.archive?  It should not be
> > >
> > > Because I don't know how to :->  
> > 
> > I see.  I suggest that you hit `^' in the *Group* buffer.  This will
> > give you a list of servers.  On the nnfolder:archive server, hit
> > RET.  Now use `u' to subscribe to the groups you want (eg,
> > gnu.emacs.gnus.archive).  When you are done, hit `q' to exit the
> > group list, then `q' again to exit the server list.
> > 
> > Now the groups should be listed amongst all the other groups and can
> > be entered with RET or SPC or the middle mouse button.
> > 
> > (Maybe you have to hit `g' before the newly subscribed groups are
> > listed -- I'm not sure.)
> > 
> > Does this help?
> > -- 
> > ~/.signature is: umop ap!sdn    (Frank Nobis)
> 
> I was fiddling around with this but am having some trouble:
> 
> (defun gcc-outgoing-post (group)
>     (if group (format "nnfolder:%s.posts" group)
>      "nnfolder:Mail/mail_cc"))
> (setq gnus-message-archive-group 'gcc-outgoing-post)
> 
> The problem seems to be that for either posting to Usenet or fwd'ing mail
> "group" is always set to current group.  Therefore Gcc is always set to a
> Usenet group name but never to my mail file.
> 
> So I set debug-on-entry.  When your function is called there's a slew of
> other functions called and I was trying to use one that's called for news
> but not for mail (or vice versa) as a test for the "if" (such as
> "message-forward" which is apparently not called if it's news).
> 
> (defun gcc-outgoing-post (group)
>     (if (message-forward(nil)) 
> 	"nnfolder:Mail/mail_cc"
>     (format "nnfolder:%s.posts" group)))
> (setq gnus-message-archive-group 'gcc-outgoing-post)
> 
> The problem is that (no matter the iteration) I keep getting errors like
> "Symbol's function definition is void" or "Symbol's value as variable...",
> etc.  I was hoping just its presence (of lack of) would be evaluated to
> decide the if/else.  Apparently it doesn't work like that.  Do you know
> something I can use in its place to test whether it's news or mail?  How
> did you find the group variable (it isn't in Info:lisp)?
> 

Never mind :-> "message-news-p"  What is this?  I found it in my ~/.gnus.el
(my old gnus-message-archive* list), put it in the "if" test and the thing
works fine now.

Mike


      parent reply	other threads:[~2002-12-29  8:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3bs3mifun.fsf@west_mm.org>
2002-12-16 10:06 ` Kai Großjohann
2002-12-17  2:46   ` Mike Dixon
2002-12-17  9:38     ` Kai Großjohann
     [not found]       ` <m3adj3y9rn.fsf@west_mm.org>
     [not found]         ` <84fzsvmeg8.fsf@lucy.cs.uni-dortmund.de>
2002-12-21  8:57           ` Mike Dixon
     [not found]             ` <84vg1nbjht.fsf@lucy.cs.uni-dortmund.de>
2002-12-22  2:36               ` Mike Dixon
2002-12-22 14:07                 ` Kai Großjohann
     [not found]                   ` <m3isxdfcar.fsf@west_mm.org>
2002-12-29  8:42                     ` Mark Dixon [this message]

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=m3u1gxqkej.fsf@west_mm.org \
    --to=in_my.t@gline.org \
    /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).