From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1694 Path: news.gmane.org!not-for-mail From: Mark Dixon Newsgroups: gmane.emacs.gnus.user Subject: Re: Little help sorting please... Date: Sun, 29 Dec 2002 08:42:36 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: References: <843coyth0c.fsf@lucy.cs.uni-dortmund.de> <84smwxnfy0.fsf@lucy.cs.uni-dortmund.de> <84fzsvmeg8.fsf@lucy.cs.uni-dortmund.de> <84vg1nbjht.fsf@lucy.cs.uni-dortmund.de> <84smwqrvtz.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668391 12372 80.91.229.2 (31 Jan 2006 00:46:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:46:31 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:29:33 2006 Original-Path: quimby.gnus.org!lackawana.kippona.com!news.infoave.net!newsfeed1.easynews.com!easynews.com!easynews!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 X-Newsreader: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 X-Mailer: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-NNTP-Posting-Host: 63.214.70.237 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread1.prod.itd.earthlink.net 1041151356 63.214.70.237 (Sun, 29 Dec 2002 00:42:36 PST) Original-NNTP-Posting-Date: Sun, 29 Dec 2002 00:42:36 PST Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1834 Original-Lines: 60 X-Gnus-Article-Number: 1834 Tue Jan 17 17:29:33 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1694 Archived-At: > > Mike Dixon 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