From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10689 Path: main.gmane.org!not-for-mail From: Greg Stark Newsgroups: gmane.emacs.gnus.general Subject: posting via weirdo backends Date: 14 Apr 1997 10:46:58 -0400 Sender: gsstark@MIT.EDU (Greg Stark) Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035150516 25772 80.91.224.250 (20 Oct 2002 21:48:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:48:36 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id IAA07985 for ; Mon, 14 Apr 1997 08:28:05 -0700 Original-Received: from g63-105.citenet.net (brnstndkramden.acf.nyu.edu@g63-105.citenet.net [207.183.47.105]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Mon, 14 Apr 1997 17:01:42 +0200 Original-Received: by g63-105.citenet.net id m0wGn2E-0008fZC (Debian Smail-3.2 1996-Jul-4 #2); Mon, 14 Apr 1997 10:47:10 -0400 (EDT) Original-Sender: gsstark@ifi.uio.no Original-To: ding@ifi.uio.no Original-Lines: 37 Xref: main.gmane.org gmane.emacs.gnus.general:10689 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:10689 So a while back i wrote a backend but i never got around to making posting work right. To post i need gnus/message to call a backend method, it has nothing to do with real mail or news. (well almost nothing, but one thing at a time.) I think i've figured out what's missing and why i've had trouble making sense of this. What's missing is backend support in message.el. Message.el thinks there's news and there's mail and that's it. Really the following bit of code ought to look at an alist of message types that my backend can extend. Then i can just teach it about my predicate, and my posting function. (this is around line 1708) (message "Sending...") (when (and (or (not (message-news-p)) (and (or (not (memq 'news message-sent-message-via)) (y-or-n-p "Already sent message via news; resend? ")) (funcall message-send-news-function arg))) (or (not (message-mail-p)) (and (or (not (memq 'mail message-sent-message-via)) (y-or-n-p "Already sent message via mail; resend? ")) (message-send-mail arg)))) Also, i'll need a way to tell gnus how to set up the post buffer. I want to be allowed to have nnchoke-request-type return any symbol, and have gnus provide an alist (with mail and news already present) to which i can add my type and the function that is basically similar to the old nnchoke-request-post-buffer. (I think this is better than bringing that back though.) Mail and news would of course be present in this alist already. This has the nice effect of letting me replace either function if i wanted to. hm, it might be restrictive to have only one type dictate how to set up the buffer, but it would serve my needs. greg