Gnus development mailing list
 help / color / mirror / Atom feed
* posting via weirdo backends
@ 1997-04-14 14:46 Greg Stark
  1997-04-14 16:01 ` posting via weirdo backends part 2 Greg Stark
  1997-04-15 21:43 ` posting via weirdo backends Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 3+ messages in thread
From: Greg Stark @ 1997-04-14 14:46 UTC (permalink / raw)



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


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

end of thread, other threads:[~1997-04-15 21:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-14 14:46 posting via weirdo backends Greg Stark
1997-04-14 16:01 ` posting via weirdo backends part 2 Greg Stark
1997-04-15 21:43 ` posting via weirdo backends Lars Magne Ingebrigtsen

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