Gnus development mailing list
 help / color / mirror / Atom feed
From: Per Abrahamsen <abraham@dina.kvl.dk>
Subject: mailto:address?subject=subject URL support
Date: 21 Oct 1996 14:57:44 +0200	[thread overview]
Message-ID: <rjzq1gcw53.fsf@kolmogorov.dina.kvl.dk> (raw)


Here is a patch that allows Gnus to handle mailto URLs of the form:

	<URL:mailto:list-request@your.smartlisthost?Subject=subscribe>

It seems to be an undocumented Netscape extension, but I might be
wrong about that.  Maybe wmperry knows.

Mon Oct 21 14:50:11 1996  Per Abrahamsen  <abraham@dina.kvl.dk>

	* gnus-art.el (gnus-button-reply): Handle Netscape `?subject='
	mailto urls.

cd ~/emacs/rgnus/lisp/
diff -c gnus-art.el~ gnus-art.el 
*** gnus-art.el~	Tue Oct  8 12:47:05 1996
--- gnus-art.el	Mon Oct 21 14:48:31 1996
***************
*** 1839,1845 ****
  
  (defun gnus-button-reply (address)
    ;; Reply to ADDRESS.
!   (message-reply address))
  
  (defun gnus-button-url (address)
    "Browse ADDRESS."
--- 1839,1850 ----
  
  (defun gnus-button-reply (address)
    ;; Reply to ADDRESS.
!   (let ((case-fold-search t))
!     (if (string-match "\\`\\(.*\\)\\?subject=\\(.*\\)\\'" address)
! 	(let ((to (match-string 1 address))
! 	      (subject (match-string 2 address)))
! 	  (message-mail to subject))
!       (message-reply address))))
  
  (defun gnus-button-url (address)
    "Browse ADDRESS."

Compilation exited abnormally with code 1 at Mon Oct 21 14:48:51


             reply	other threads:[~1996-10-21 12:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-21 12:57 Per Abrahamsen [this message]
1996-10-02 14:59 ` William Perry
1996-10-21 19:23   ` Steinar Bang
1996-10-21 21:02     ` William Perry
1996-10-22  0:37     ` Lars Magne Ingebrigtsen
1996-10-22  8:40       ` Steinar Bang
1996-10-22  7:28   ` John Griffith
1996-10-22  7:44     ` Lars Balker Rasmussen
1996-10-23 18:52     ` Steven L Baur
1996-10-24  7:49       ` John Griffith
1996-10-24 15:12         ` Steven L Baur
1996-10-24 15:45           ` Per Abrahamsen
1996-10-22 13:40 William Perry
1996-10-23  8:56 ` John Griffith
1996-10-23 14:25   ` Colin Rafferty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rjzq1gcw53.fsf@kolmogorov.dina.kvl.dk \
    --to=abraham@dina.kvl.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).