[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: post through mail2news
From: |
Reiner Steib |
Subject: |
Re: post through mail2news |
Date: |
Sat, 07 Jan 2006 14:14:13 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
On Sat, Jan 07 2006, Ian Zimmerman wrote:
> I am trying to post news through the mail-to-news gateway
> mail2news@anon.lcs.mit.edu. Their protocol is that the mail must
> already have a Newsgroups: header with the groups I'm posting to. But
> unfortunately this confuses message-news-p into thinking it should
> really be posted through news. Does anyone have a pure Gnus workaround
> for this?
Let-bind `message-send-method-alist' within a wrapper function
(ian-message-message-send). Untested code:
(defvar ian-message-send-method-alist
'((mail ian-t message-send-via-mail))
"Modified `message-send-method-alist' for mail2news.")
(defun ian-t (&rest ignore)
t)
(defun ian-message-message-send (&optional arg)
"Send with modified `message-send-method-alist'.
See `ian-message-send-method-alist'"
(interactive "P")
(let ((message-send-method-alist))
(funcall message-send arg)))
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/