From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39368 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Posting from an nnvirtual group kludge Date: Wed, 17 Oct 2001 19:55:04 +0200 Organization: The Church of Emacs Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035175084 27506 80.91.224.250 (21 Oct 2002 04:38:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:38:04 +0000 (UTC) Return-Path: Original-Received: (qmail 26048 invoked from network); 17 Oct 2001 18:56:51 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 17 Oct 2001 18:56:51 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15tvr9-0002Q2-00; Wed, 17 Oct 2001 13:55:55 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 17 Oct 2001 13:55:32 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA00826 for ; Wed, 17 Oct 2001 13:55:22 -0500 (CDT) Original-Received: (qmail 25016 invoked by alias); 17 Oct 2001 17:55:32 -0000 Original-Received: (qmail 25011 invoked from network); 17 Oct 2001 17:55:31 -0000 Original-Received: from sheridan.dina.kvl.dk (130.225.40.227) by gnus.org with SMTP; 17 Oct 2001 17:55:31 -0000 Original-Received: from ssv2.dina.kvl.dk (ssv2.dina.kvl.dk [130.225.40.226]) by sheridan.dina.kvl.dk (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id TAA05384; Wed, 17 Oct 2001 19:55:04 +0200 Original-Received: from abraham by ssv2.dina.kvl.dk with local (Exim 3.12 #1 (Debian)) id 15tuuG-0008Qc-00; Wed, 17 Oct 2001 19:55:04 +0200 Original-To: ding@gnus.org X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM|8MBp/ Original-Lines: 46 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.106 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39368 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39368 For some reason, posting from a nnvirtual group started to complain about all groups being unknown. I added the kludge below, but if anyone who knows what is going on would find a better solution, that would probably be good. Should ve add a new nnoo virtual function to do it right? 2001-10-17 Per Abrahamsen * message.el (message-check-news-header-syntax): Special case nnvirtual groups. *** message.el.~6.130.~ Wed Oct 17 10:57:59 2001 --- message.el Wed Oct 17 19:51:04 2001 *************** *** 2919,2927 **** (if followup-to (concat newsgroups "," followup-to) newsgroups))) ! (method (if (message-functionp message-post-method) ! (funcall message-post-method) ! message-post-method)) (known-groups (mapcar (lambda (n) (gnus-group-name-decode --- 2919,2938 ---- (if followup-to (concat newsgroups "," followup-to) newsgroups))) ! (post-method (if (message-functionp message-post-method) ! (funcall message-post-method) ! message-post-method)) ! ;; KLUDGE to handle nnvirtual groups. Doing this right ! ;; would probably involve a new nnoo function. ! ;; -- Per Abrahamsen , 2001-10-17. ! (method (if (and (consp post-method) ! (eq (car post-method) 'nnvirtual) ! gnus-message-group-art) ! (let ((group (car (nnvirtual-find-group-art ! (car gnus-message-group-art) ! (cdr gnus-message-group-art))))) ! (gnus-find-method-for-group group)) ! post-method)) (known-groups (mapcar (lambda (n) (gnus-group-name-decode