Variable: rfc2368-mailto-regexp
rfc2368-mailto-regexp is a variable defined in rfc2368.el.gz.
Value
"^\\(mailto:\\)\\([^?]+\\)?\\(\\?\\(.*\\)\\)*"
Documentation
Regular expression to match and aid in parsing a mailto url.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/rfc2368.el.gz
;;; rfc2368.el --- support for rfc2368 -*- lexical-binding:t -*-
;; Copyright (C) 1998, 2000-2026 Free Software Foundation, Inc.
;; Author: Sen Nagata <sen@eccosys.com>
;; Keywords: mail
;; Obsolete-since: 28.1
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;;
;; notes:
;;
;; -repeat after me: "the colon is not part of the header name..."
;; -if w3 becomes part of emacs, then it may make sense to have this
;; file depend on w3 -- the maintainer of w3 says merging with Emacs
;; is planned!
;;
;; historical note:
;;
;; this is intended as a replacement for mailto.el
;;
;; acknowledgments:
;;
;; the functions that deal with unhexifying in this file were basically
;; taken from w3 -- i hope to replace them with something else soon OR
;; perhaps if w3 becomes a part of emacs soon, use the functions from w3.
;;; History:
;;
;; 0.3:
;;
;; added the constant rfc2368-version
;; implemented first potential fix for a bug in rfc2368-mailto-regexp
;; implemented first potential fix for a bug in rfc2368-parse-mailto
;; (both bugs reported by Kenichi OKADA)
;;
;; 0.2:
;;
;; started to use checkdoc
;;
;; 0.1:
;;
;; initial implementation
;;; Code:
;; only an approximation?
;; see rfc 1738
(defconst rfc2368-mailto-regexp
"^\\(mailto:\\)\\([^?]+\\)?\\(\\?\\(.*\\)\\)*"
"Regular expression to match and aid in parsing a mailto url.")