1 ;;; mailabbrev.el --- abbrev-expansion of mail aliases
3 ;; Copyright (C) 1985-1987, 1992-1993, 1996-1997, 2000-2012
4 ;; Free Software Foundation, Inc.
6 ;; Author: Jamie Zawinski <jwz@lucid.com; now jwz@jwz.org>
11 ;; This file is part of GNU Emacs.
13 ;; GNU Emacs is free software: you can redistribute it and/or modify
14 ;; it under the terms of the GNU General Public License as published by
15 ;; the Free Software Foundation, either version 3 of the License, or
16 ;; (at your option) any later version.
18 ;; GNU Emacs is distributed in the hope that it will be useful,
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;; GNU General Public License for more details.
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28 ;; This file ensures that, when the point is in a To:, CC:, BCC:, or From:
29 ;; field, word-abbrevs are defined for each of your mail aliases. These
30 ;; aliases will be defined from your .mailrc file (or the file specified by
31 ;; `mail-personal-alias-file') if it exists. Your mail aliases will
32 ;; expand any time you type a word-delimiter at the end of an abbreviation.
34 ;; What you see is what you get: if mailabbrev is in use when you type
35 ;; a name, and the name does not expand, you know it is not an abbreviation.
36 ;; However, if you yank abbreviations into the headers
37 ;; in a way that bypasses the check for abbreviations,
38 ;; they are expanded (but not visibly) when you send the message.
40 ;; Your mail alias abbrevs will be in effect only when the point is in an
41 ;; appropriate header field. When in the body of the message, or other
42 ;; header fields, the mail aliases will not expand. Rather, the normal
43 ;; mode-specific abbrev table will be used if
44 ;; defined. So if you use mail-mode specific abbrevs, this code will not
45 ;; adversely affect you. You can control which header fields the abbrevs
46 ;; are used in by changing the variable mail-abbrev-mode-regexp.
48 ;; If auto-fill mode is on, abbrevs will wrap at commas instead of at word
49 ;; boundaries; also, header continuation-lines will be properly indented.
51 ;; You can also insert a mail alias with mail-abbrev-insert-alias
52 ;; (bound to C-c C-a), which prompts you for an alias (with completion)
53 ;; and inserts its expansion at point.
55 ;; This file fixes a bug in the old system which prohibited your .mailrc
56 ;; file from having lines like
58 ;; alias someone "John Doe <doe@quux.com>"
60 ;; That is, if you want an address to have embedded spaces, simply surround it
61 ;; with double-quotes. This is necessary because the format of the .mailrc
62 ;; file bogusly uses spaces as address delimiters. The following line defines
63 ;; an alias which expands to three addresses:
65 ;; alias foobar addr-1 addr-2 "address three <addr-3>"
67 ;; (This is bogus because mail-delivery programs want commas, not spaces,
68 ;; but that's what the file format is, so we have to live with it.)
70 ;; If you like, you can call the function define-mail-abbrev to define your
71 ;; mail aliases instead of using a .mailrc file. When you call it in this
72 ;; way, addresses are separated by commas.
74 ;; CAVEAT: This works on most Sun systems; I have been told that some versions
75 ;; of /bin/mail do not understand double-quotes in the .mailrc file. So you
76 ;; should make sure your version does before including verbose addresses like
77 ;; this. One solution to this, if you are on a system whose /bin/mail doesn't
78 ;; work that way, (and you still want to be able to /bin/mail to send mail in
79 ;; addition to emacs) is to define minimal aliases (without full names) in
80 ;; your .mailrc file, and use define-mail-abbrev to redefine them when sending
81 ;; mail from emacs; this way, mail sent from /bin/mail will work, and mail
82 ;; sent from emacs will be pretty.
84 ;; Aliases in the mailrc file may be nested. If you define aliases like
85 ;; alias group1 fred ethel
86 ;; alias group2 larry curly moe
87 ;; alias everybody group1 group2
88 ;; Then when you type "everybody" on the To: line, it will be expanded to
89 ;; fred, ethyl, larry, curly, moe
91 ;; Aliases may also contain forward references; the alias of "everybody" can
92 ;; precede the aliases of "group1" and "group2".
94 ;; This code also understands the "source" .mailrc command, for reading
95 ;; aliases from some other file as well.
97 ;; Aliases may contain hyphens, as in "alias foo-bar foo@bar"; word-abbrevs
98 ;; normally cannot contain hyphens, but this code works around that for the
99 ;; specific case of mail-alias word-abbrevs.
101 ;; To read in the contents of another .mailrc-type file from emacs, use the
102 ;; command Meta-X merge-mail-abbrevs. The rebuild-mail-abbrevs command is
103 ;; similar, but will delete existing aliases first.
105 ;; If you would like your aliases to be expanded when you type M-> or ^N to
106 ;; move out of the mail-header into the message body (instead of having to
107 ;; type SPC at the end of the abbrev before moving away) then you can do
112 ;; (define-key mail-mode-map [remap next-line] 'mail-abbrev-next-line)
113 ;; (define-key mail-mode-map [remap end-of-buffer] 'mail-abbrev-end-of-buffer)))
115 ;; If you want multiple addresses separated by a string other than ", " then
116 ;; you can set the variable mail-alias-separator-string to it. This has to
117 ;; be a comma bracketed by whitespace if you want any kind of reasonable
120 ;; Thanks to Harald Hanche-Olsen, Michael Ernst, David Loeffler, and
121 ;; Noah Friedman for suggestions and bug reports.
123 ;; To use this package, do (add-hook 'mail-mode-hook 'mail-abbrevs-setup).
130 (defgroup mail-abbrev nil
131 "Expand mail aliases as abbrevs, in certain mail headers."
135 (define-minor-mode mail-abbrevs-mode
136 "Toggle abbrev expansion of mail aliases (Mail Abbrevs mode).
137 With a prefix argument ARG, enable Mail Abbrevs mode if ARG is
138 positive, and disable it otherwise. If called from Lisp, enable
139 the mode if ARG is omitted or nil.
141 Mail Abbrevs mode is a global minor mode. When enabled,
142 abbrev-like expansion is performed when editing certain mail
143 headers (those specified by `mail-abbrev-mode-regexp'), based on
144 the entries in your `mail-personal-alias-file'."
148 (if mail-abbrevs-mode
(mail-abbrevs-enable) (mail-abbrevs-disable)))
150 (defcustom mail-abbrevs-only nil
151 "Non-nil means only mail abbrevs should expand automatically.
152 Other abbrevs expand only when you explicitly use `expand-abbrev'."
156 ;; originally defined in sendmail.el - used to be an alist, now is a table.
157 (defvar mail-abbrevs nil
158 "Word-abbrev table of mail address aliases.
159 If this is nil, it means the aliases have not yet been initialized and
160 should be read from the .mailrc file. (This is distinct from there being
161 no aliases, which is represented by this being a table with no entries.)")
163 (defvar mail-abbrev-modtime nil
164 "The modification time of your mail alias file when it was last examined.")
166 (defun mail-abbrevs-sync-aliases ()
167 (when mail-personal-alias-file
168 (if (file-exists-p mail-personal-alias-file
)
169 (let ((modtime (nth 5 (file-attributes mail-personal-alias-file
))))
170 (if (not (equal mail-abbrev-modtime modtime
))
172 (setq mail-abbrev-modtime modtime
)
173 (build-mail-abbrevs)))))))
176 (defun mail-abbrevs-setup ()
177 "Initialize use of the `mailabbrev' package."
178 (if (and (not (vectorp mail-abbrevs
))
179 (file-exists-p mail-personal-alias-file
))
181 (setq mail-abbrev-modtime
182 (nth 5 (file-attributes mail-personal-alias-file
)))
183 (build-mail-abbrevs)))
184 (mail-abbrevs-sync-aliases)
185 (add-hook 'abbrev-expand-functions
'mail-abbrev-expand-wrapper nil t
)
188 (defun mail-abbrevs-enable ()
189 (add-hook 'mail-mode-hook
'mail-abbrevs-setup
))
191 (defun mail-abbrevs-disable ()
192 "Turn off use of the `mailabbrev' package."
193 (remove-hook 'mail-mode-hook
'mail-abbrevs-setup
)
194 (abbrev-mode (if (default-value 'abbrev-mode
) 1 -
1)))
197 (defun build-mail-abbrevs (&optional file recursivep
)
198 "Read mail aliases from personal mail alias file and set `mail-abbrevs'.
199 By default this is the file specified by `mail-personal-alias-file'."
200 (setq file
(expand-file-name (or file mail-personal-alias-file
)))
201 (if (vectorp mail-abbrevs
)
203 (setq mail-abbrevs nil
)
204 (define-abbrev-table 'mail-abbrevs
'()))
205 (message "Parsing %s..." file
)
207 (buffer-disable-undo)
208 (cond ((get-file-buffer file
)
209 (insert (with-current-buffer (get-file-buffer file
)
210 (buffer-substring (point-min) (point-max)))))
211 ((not (file-exists-p file
)))
212 (t (insert-file-contents file
)))
213 ;; Don't lose if no final newline.
214 (goto-char (point-max))
215 (or (eq (preceding-char) ?
\n) (newline))
216 (goto-char (point-min))
217 ;; Delete comments from the file
218 (while (search-forward "# " nil t
)
219 (let ((p (- (point) 2)))
221 (delete-region p
(point))))
222 (goto-char (point-min))
223 ;; handle "\\\n" continuation lines
226 (if (= (preceding-char) ?
\\)
227 (progn (delete-char -
1) (delete-char 1) (insert ?\
))
229 (goto-char (point-min))
230 (while (re-search-forward
231 "^\\(a\\(lias\\)?\\|g\\(roup\\)?\\|source\\)[ \t]+" nil t
)
233 (if (looking-at "source[ \t]+\\([^ \t\n]+\\)")
237 (substitute-in-file-name
238 (buffer-substring (match-beginning 1) (match-end 1)))
240 (re-search-forward "[ \t]+\\([^ \t\n]+\\)")
241 (let* ((name (buffer-substring
242 (match-beginning 1) (match-end 1)))
243 (start (progn (skip-chars-forward " \t") (point))))
245 ;; (message "** %s \"%s\"" name (buffer-substring start (point)))(sit-for 1)
248 (buffer-substring start
(point))
250 ;; Resolve forward references in .mailrc file.
251 ;; This would happen automatically before the first abbrev was
252 ;; expanded, but why not do it now.
253 (or recursivep
(mail-resolve-all-aliases))
255 (message "Parsing %s... done" file
))
257 (defcustom mail-alias-separator-string
", "
258 "String inserted between addresses in multi-address mail aliases.
259 This has to contain a comma, so \", \" is a reasonable value. You might
260 also want something like \",\\n \" to get each address on its own line."
264 ;; define-mail-abbrev sets this flag, which causes mail-resolve-all-aliases
265 ;; to be called before expanding abbrevs if it's necessary.
266 (defvar mail-abbrev-aliases-need-to-be-resolved t
)
268 ;; originally defined in mailalias.el ; build-mail-abbrevs calls this with
269 ;; stuff parsed from the .mailrc file.
272 (defun define-mail-abbrev (name definition
&optional from-mailrc-file
)
273 "Define NAME as a mail alias abbrev that translates to DEFINITION.
274 If DEFINITION contains multiple addresses, separate them with commas.
276 Optional argument FROM-MAILRC-FILE means that DEFINITION comes
277 from a mailrc file. In that case, addresses are separated with
278 spaces and addresses with embedded spaces are surrounded by
280 ;; When this is called from build-mail-abbrevs, the third argument is
281 ;; true, and we do some evil space->comma hacking like /bin/mail does.
282 (interactive "sDefine mail alias: \nsDefine %s as mail alias for: ")
283 ;; Read the defaults first, if we have not done so.
284 (unless (vectorp mail-abbrevs
) (build-mail-abbrevs))
285 ;; strip garbage from front and end
286 (if (string-match "\\`[ \t\n,]+" definition
)
287 (setq definition
(substring definition
(match-end 0))))
288 (if (string-match "[ \t\n,]+\\'" definition
)
289 (setq definition
(substring definition
0 (match-beginning 0))))
290 (let* ((L (length definition
))
291 (start (if (> L
0) 0))
292 end this-entry result
)
296 ;; If we're reading from the mailrc file, addresses are
297 ;; delimited by spaces, and addresses with embedded spaces are
298 ;; surrounded by non-escaped double-quotes.
299 (if (eq ?
\" (aref definition start
))
300 (setq start
(1+ start
)
301 end
(and (string-match
302 "[^\\]\\(\\([\\][\\]\\)*\\)\"[ \t,]*"
305 (setq end
(string-match "[ \t,]+" definition start
)))
306 ;; Extract the address and advance the loop past it.
307 (setq this-entry
(substring definition start end
)
308 start
(and end
(/= (match-end 0) L
) (match-end 0)))
309 ;; If the full name contains a problem character, quote it.
310 (and (string-match "\\(.+?\\)[ \t]*\\(<.*>\\)" this-entry
)
311 (string-match "[^- !#$%&'*+/0-9=?A-Za-z^_`{|}~]"
312 (match-string 1 this-entry
))
313 (setq this-entry
(replace-regexp-in-string
314 "\\(.+?\\)[ \t]*\\(<.*>\\)"
317 (push this-entry result
))
318 ;; When we are not reading from .mailrc, addresses are
319 ;; separated by commas. Try to accept a rfc822-like syntax.
320 ;; (Todo: extend rfc822.el to do the work for us.)
321 ((equal (string-match
322 "[ \t,]*\\(\"\\(?:[^\"]\\|[^\\]\\(?:[\\][\\]\\)*\"\\)*\"[ \t]*\
323 <[-.!#$%&'*+/0-9=?A-Za-z^_`{|}~@]+>\\)[ \t,]*"
326 ;; If an entry has a valid [ "foo bar" <foo@example.com> ]
327 ;; form, use it literally . This also allows commas in the
328 ;; quoted string, e.g. [ "foo bar, jr" <foo@example.com> ]
329 (push (match-string 1 definition
) result
)
330 (setq start
(and (/= (match-end 0) L
) (match-end 0))))
332 ;; Otherwise, read the next address by looking for a comma.
333 (setq end
(string-match "[ \t\n,]*,[ \t\n]*" definition start
))
334 (setq this-entry
(substring definition start end
))
335 ;; Advance the loop past this address.
336 (setq start
(and end
(/= (match-end 0) L
) (match-end 0)))
337 ;; If the full name contains a problem character, quote it.
338 (and (string-match "\\(.+?\\)[ \t]*\\(<.*>\\)" this-entry
)
339 (string-match "[^- !#$%&'*+/0-9=?A-Za-z^_`{|}~]"
340 (match-string 1 this-entry
))
341 (setq this-entry
(replace-regexp-in-string
342 "\\(.+?\\)[ \t]*\\(<.*>\\)" "\"\\1\" \\2"
344 (push this-entry result
))))
346 (setq definition
(mapconcat (function identity
)
348 mail-alias-separator-string
)))
349 (setq mail-abbrev-aliases-need-to-be-resolved t
)
350 (setq name
(downcase name
))
351 ;; use an abbrev table instead of an alist for mail-abbrevs.
352 (let ((abbrevs-changed abbrevs-changed
)) ; protect this from being changed.
353 (define-abbrev mail-abbrevs name definition
'mail-abbrev-expand-hook
0 t
)))
356 (defun mail-resolve-all-aliases ()
357 "Resolve all forward references in the mail aliases table."
358 (if mail-abbrev-aliases-need-to-be-resolved
360 ;; (message "Resolving mail aliases...")
361 (if (vectorp mail-abbrevs
)
362 (mapatoms (function mail-resolve-all-aliases-1
) mail-abbrevs
))
363 (setq mail-abbrev-aliases-need-to-be-resolved nil
)
364 ;; (message "Resolving mail aliases... done.")
367 (defun mail-resolve-all-aliases-1 (sym &optional so-far
)
368 (if (memq sym so-far
)
369 (error "mail alias loop detected: %s"
370 (mapconcat 'symbol-name
(cons sym so-far
) " <- ")))
371 (let ((definition (and (boundp sym
) (symbol-value sym
))))
376 (let ((end (string-match "[ \t\n]*,[, \t\n]*" definition start
)))
377 (setq result
(cons (substring definition start end
) result
)
378 start
(and end
(match-end 0)))))
380 (mapconcat (function (lambda (x)
381 (or (mail-resolve-all-aliases-1
382 (intern-soft (downcase x
) mail-abbrevs
)
386 mail-alias-separator-string
))
387 (set sym definition
))))
391 (defun mail-abbrev-expand-hook ()
392 "For use as the fourth arg to `define-abbrev'.
393 After expanding a mail-abbrev, if Auto Fill mode is on and we're past the
394 fill-column, break the line at the previous comma, and indent the next line
396 (when auto-fill-function
399 (while (>= (current-column) fill-column
)
400 (while (and (search-backward "," (point-at-bol) 'move
)
401 (>= (current-column) (1- fill-column
))
403 (when (or (not (bolp))
404 (and p
(goto-char p
)))
408 (when (looking-at "[\t ]+")
409 (delete-region (point) (match-end 0)))
413 ;;; Syntax tables and abbrev-expansion
415 (defcustom mail-abbrev-mode-regexp
416 "^\\(Resent-\\)?\\(To\\|From\\|CC\\|BCC\\|Reply-to\\):"
417 "Regexp matching mail headers in which mail abbrevs should be expanded.
418 This string will be handed to `looking-at' with point at the beginning
419 of the current line; if it matches, abbrev mode will be turned on, otherwise
420 it will be turned off. (You don't need to worry about continuation lines.)
421 This should be set to match those mail fields in which you want abbreviations
426 (defvar mail-abbrev-syntax-table nil
427 "The syntax-table used for abbrev-expansion purposes.
428 This is not actually made the current syntax table of the buffer, but
429 simply controls the set of characters which may be a part of the name
430 of a mail alias. The value is set up, buffer-local, when first needed.")
432 (defun mail-abbrev-make-syntax-table ()
433 (make-local-variable 'mail-abbrev-syntax-table
)
434 (unless mail-abbrev-syntax-table
435 (let ((tab (copy-syntax-table (syntax-table)))
436 (_ (aref (standard-syntax-table) ?_
))
437 (w (aref (standard-syntax-table) ?w
)))
439 (function (lambda (key value
)
441 ;; Fetch the inherited value
442 (setq value
(aref tab key
)))
444 (set-char-table-range tab key w
))))
446 (modify-syntax-entry ?
@ "w" tab
)
447 (modify-syntax-entry ?%
"w" tab
)
448 (modify-syntax-entry ?
! "w" tab
)
449 (modify-syntax-entry ?.
"w" tab
)
450 (modify-syntax-entry ?_
"w" tab
)
451 (modify-syntax-entry ?-
"w" tab
)
452 (setq mail-abbrev-syntax-table tab
))))
454 (defun mail-abbrev-in-expansion-header-p ()
455 "Whether point is in a mail-address header field."
456 (let ((case-fold-search t
))
458 ;; we are on an appropriate header line...
460 (unless (eobp) (forward-char 1))
461 (re-search-backward "^[^ \t]" nil
'move
)
462 ;; are we at the front of an appropriate header line?
463 (looking-at mail-abbrev-mode-regexp
))
465 ;; ...and are we in the headers?
473 (defun mail-abbrev-expand-wrapper (expand)
474 (if (and mail-abbrevs
(not (eq mail-abbrevs t
)))
475 (if (or (mail-abbrev-in-expansion-header-p)
476 ;; Necessary for `message-read-from-minibuffer' to work.
477 (window-minibuffer-p))
479 ;; We are in a To: (or CC:, or whatever) header or a minibuffer,
480 ;; and should use word-abbrevs to expand mail aliases.
481 (let ((local-abbrev-table mail-abbrevs
))
483 ;; Before anything else, resolve aliases if they need it.
484 (and mail-abbrev-aliases-need-to-be-resolved
485 (mail-resolve-all-aliases))
487 ;; Now proceed with the abbrev section.
488 ;; - We already installed mail-abbrevs as the abbrev table.
489 ;; - Then install the mail-abbrev-syntax-table, which
490 ;; temporarily marks all of the
491 ;; non-alphanumeric-atom-characters (the "_"
492 ;; syntax ones) as being normal word-syntax. We do this
493 ;; because the C code for expand-abbrev only works on words,
494 ;; and we want these characters to be considered words for
495 ;; the purpose of abbrev expansion.
496 ;; - Then we call the expand function, to do
497 ;; the abbrev expansion with the above syntax table.
499 (mail-abbrev-make-syntax-table)
501 ;; If the character just typed was non-alpha-symbol-syntax,
502 ;; then don't expand the abbrev now (that is, don't expand
503 ;; when the user types -.) Check the character's syntax in
504 ;; the usual syntax table.
506 (or (and (integerp last-command-event
)
507 ;; Some commands such as M-> may want to expand first.
508 (equal this-command
'self-insert-command
)
509 (or (eq (char-syntax last-command-event
) ?_
)
510 ;; Don't expand on @.
511 (memq last-command-event
'(?
@ ?. ?% ?
! ?_ ?-
))))
512 ;; Use this table so that abbrevs can have hyphens in them.
513 (with-syntax-table mail-abbrev-syntax-table
516 (if (or (not mail-abbrevs-only
)
517 (eq this-command
'expand-abbrev
))
518 ;; We're not in a mail header where mail aliases should
519 ;; be expanded, then use the normal mail-mode abbrev table
520 ;; (if any) and the normal mail-mode syntax table.
522 ;; This is not a mail abbrev, and we should not expand it.
523 ;; Don't expand anything.
525 ;; No mail-abbrevs at all, do the normal thing.
530 (defun merge-mail-abbrevs (file)
531 "Merge mail aliases from the given file with existing ones."
533 (let ((insert-default-directory t
)
534 (default-directory (expand-file-name "~/"))
535 (def mail-personal-alias-file
))
537 (format "Read additional aliases from file (default %s): "
540 (expand-file-name def default-directory
)
542 (build-mail-abbrevs file
))
544 (defun rebuild-mail-abbrevs (&optional file
)
545 "Rebuild all the mail aliases from the given file."
547 (let ((insert-default-directory t
)
548 (default-directory (expand-file-name "~/"))
549 (def mail-personal-alias-file
))
551 (format "Read mail aliases from file (default %s): " def
)
553 (expand-file-name def default-directory
)
556 (setq file buffer-file-name
))
557 (setq mail-abbrevs nil
)
558 (build-mail-abbrevs file
))
560 (defun mail-abbrev-insert-alias (&optional alias
)
561 "Prompt for and insert a mail alias."
563 (if (not (vectorp mail-abbrevs
)) (mail-abbrevs-setup))
564 (list (completing-read "Expand alias: " mail-abbrevs nil t
))))
565 (if (not (vectorp mail-abbrevs
)) (mail-abbrevs-setup))
566 (insert (or (and alias
(symbol-value (intern-soft alias mail-abbrevs
))) ""))
567 (mail-abbrev-expand-hook))
569 (defun mail-abbrev-complete-alias ()
570 "Perform completion on alias preceding point."
572 (mail-abbrev-make-syntax-table)
574 (beg (with-syntax-table mail-abbrev-syntax-table
578 (completion-in-region beg end mail-abbrevs
)))
580 (defun mail-abbrev-next-line (&optional arg
)
581 "Expand a mail abbrev before point, then move vertically down ARG lines.
582 This only expands an abbrev (if one is present) if called with
583 point at the end of a line, or on whitespace before the end of a line.
585 In terms of line motion, this behaves like `next-line', which see."
587 (if (looking-at "[ \t]*\n") (expand-abbrev))
588 (setq this-command
'next-line
)
589 (with-no-warnings (next-line arg
)))
591 (defun mail-abbrev-end-of-buffer (&optional arg
)
592 "Expand a mail abbrev before point, then move to the end of the buffer.
593 This only expands an abbrev (if one is present) if called with
594 point at the end of a line, or on whitespace before the end of a line.
596 In other respects, this behaves like `end-of-buffer', which see."
598 (if (looking-at "[ \t]*\n") (expand-abbrev))
599 (setq this-command
'end-of-buffer
)
600 (with-no-warnings (end-of-buffer arg
)))
602 (eval-after-load "sendmail"
604 (define-key mail-mode-map
"\C-c\C-a" 'mail-abbrev-insert-alias
)
605 (define-key mail-mode-map
"\e\t" ; like lisp-complete-symbol
606 'mail-abbrev-complete-alias
)))
608 ;;(define-key mail-mode-map "\C-n" 'mail-abbrev-next-line)
609 ;;(define-key mail-mode-map "\M->" 'mail-abbrev-end-of-buffer)
611 (provide 'mailabbrev
)
613 ;;; mailabbrev.el ends here