Mercurial > emacs
changeset 14799:619266555aec
(mail-get-names): Understand "+username" format for /etc/passwd lines.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 09 Mar 1996 08:03:15 +0000 |
parents | 8557ab78a821 |
children | 47631a15d6a2 |
files | lisp/mail/mailalias.el |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/mailalias.el Sat Mar 09 00:32:05 1996 +0000 +++ b/lisp/mail/mailalias.el Sat Mar 09 08:03:15 1996 +0000 @@ -334,10 +334,14 @@ (insert-file-contents "/etc/passwd" nil nil nil t) (setq mail-local-names) (while (not (eobp)) - (setq mail-local-names - `((,(buffer-substring (point) - (1- (search-forward ":")))) - ,@mail-local-names)) + ;;Recognize lines like + ;; nobody:*:65534:65534::/: + ;; +demo::::::/bin/csh + ;; +ethanb + ;;while skipping + ;; +@SOFTWARE + (if (looking-at "\\+?\\([^:@\n+]+\\)") + (add-to-list 'mail-local-names (list (match-string 1)))) (beginning-of-line 2)) (kill-buffer (current-buffer)))) (if (or (eq mail-names t)