comparison lisp/mail/mail-extr.el @ 20962:54413501e4a9

Customized.
author Stephen Eglen <stephen@gnu.org>
date Sun, 22 Feb 1998 22:01:28 +0000
parents 82305d3fbfb1
children a61dfbd23534
comparison
equal deleted inserted replaced
20961:79530a618cd3 20962:54413501e4a9
206 ;; * Created. 206 ;; * Created.
207 207
208 ;;; Code: 208 ;;; Code:
209 209
210 210
211 (defgroup mail-extr nil
212 "Extract full name and address from RFC 822 mail header."
213 :prefix "mail-extr-"
214 :group 'mail)
215
211 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 216 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
212 ;; 217 ;;
213 ;; User configuration variable definitions. 218 ;; User configuration variable definitions.
214 ;; 219 ;;
215 220
216 (defvar mail-extr-guess-middle-initial nil 221 (defcustom mail-extr-guess-middle-initial nil
217 "*Whether to try to guess middle initial from mail address. 222 "*Whether to try to guess middle initial from mail address.
218 If true, then when we see an address like \"John Smith <jqs@host.com>\" 223 If true, then when we see an address like \"John Smith <jqs@host.com>\"
219 we will assume that \"John Q. Smith\" is the fellow's name.") 224 we will assume that \"John Q. Smith\" is the fellow's name."
220 225 :type 'boolean
221 (defvar mail-extr-ignore-single-names t 226 :group 'mail-extr)
227
228 (defcustom mail-extr-ignore-single-names t
222 "*Whether to ignore a name that is just a single word. 229 "*Whether to ignore a name that is just a single word.
223 If true, then when we see an address like \"Idiot <dumb@stupid.com>\" 230 If true, then when we see an address like \"Idiot <dumb@stupid.com>\"
224 we will act as though we couldn't find a full name in the address.") 231 we will act as though we couldn't find a full name in the address."
232 :type 'boolean
233 :group 'mail-extr)
225 234
226 ;; Matches a leading title that is not part of the name (does not 235 ;; Matches a leading title that is not part of the name (does not
227 ;; contribute to uniquely identifying the person). 236 ;; contribute to uniquely identifying the person).
228 (defvar mail-extr-full-name-prefixes 237 (defcustom mail-extr-full-name-prefixes
229 (purecopy 238 (purecopy
230 "\\(Prof\\|D[Rr]\\|Mrs?\\|Rev\\|Rabbi\\|SysOp\\|LCDR\\)\\.?[ \t\n]") 239 "\\(Prof\\|D[Rr]\\|Mrs?\\|Rev\\|Rabbi\\|SysOp\\|LCDR\\)\\.?[ \t\n]")
231 "*Matches prefixes to the full name that identify a person's position. 240 "*Matches prefixes to the full name that identify a person's position.
232 These are stripped from the full name because they do not contribute to 241 These are stripped from the full name because they do not contribute to
233 uniquely identifying the person.") 242 uniquely identifying the person."
234 243 :type 'regexp
235 (defvar mail-extr-@-binds-tighter-than-! nil 244 :group 'mail-extr)
236 "*Whether the local mail transport agent looks at ! before @.") 245
237 246 (defcustom mail-extr-@-binds-tighter-than-! nil
238 (defvar mail-extr-mangle-uucp nil 247 "*Whether the local mail transport agent looks at ! before @."
248 :type 'boolean
249 :group 'mail-extr)
250
251 (defcustom mail-extr-mangle-uucp nil
239 "*Whether to throw away information in UUCP addresses 252 "*Whether to throw away information in UUCP addresses
240 by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\".") 253 by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"."
254 :type 'boolean
255 :group 'mail-extr)
241 256
242 ;;---------------------------------------------------------------------- 257 ;;----------------------------------------------------------------------
243 ;; what orderings are meaningful????? 258 ;; what orderings are meaningful?????
244 ;;(defvar mail-operator-precedence-list '(?! ?% ?@)) 259 ;;(defvar mail-operator-precedence-list '(?! ?% ?@))
245 ;; Right operand of a % or a @ must be a domain name, period. No other 260 ;; Right operand of a % or a @ must be a domain name, period. No other