aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-03-09 08:03:15 +0000
committerRichard M. Stallman1996-03-09 08:03:15 +0000
commit8bc49f8f86f125698f060c24ff697d6a4a350c6c (patch)
tree5f9cf5198db23aa98864b5d685acfef226b492f7
parentcd7ac8e8a4448e7fa26dccb3b3f969fb310b4adc (diff)
downloademacs-8bc49f8f86f125698f060c24ff697d6a4a350c6c.tar.gz
emacs-8bc49f8f86f125698f060c24ff697d6a4a350c6c.zip
(mail-get-names): Understand "+username" format for /etc/passwd lines.
-rw-r--r--lisp/mail/mailalias.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el
index e9890c9e721..ba884e75ab0 100644
--- a/lisp/mail/mailalias.el
+++ b/lisp/mail/mailalias.el
@@ -334,10 +334,14 @@ Consults `/etc/passwd' and a directory service if one is set up via
334 (insert-file-contents "/etc/passwd" nil nil nil t) 334 (insert-file-contents "/etc/passwd" nil nil nil t)
335 (setq mail-local-names) 335 (setq mail-local-names)
336 (while (not (eobp)) 336 (while (not (eobp))
337 (setq mail-local-names 337 ;;Recognize lines like
338 `((,(buffer-substring (point) 338 ;; nobody:*:65534:65534::/:
339 (1- (search-forward ":")))) 339 ;; +demo::::::/bin/csh
340 ,@mail-local-names)) 340 ;; +ethanb
341 ;;while skipping
342 ;; +@SOFTWARE
343 (if (looking-at "\\+?\\([^:@\n+]+\\)")
344 (add-to-list 'mail-local-names (list (match-string 1))))
341 (beginning-of-line 2)) 345 (beginning-of-line 2))
342 (kill-buffer (current-buffer)))) 346 (kill-buffer (current-buffer))))
343 (if (or (eq mail-names t) 347 (if (or (eq mail-names t)