You need to install uncompface. uncompface is available at ftp://ftp.cs.indiana.edu/pub/faces/faces/.
Get x-face-e21 and install it. The following assumes that x-face-e21.el.gz exists in /tmp.
% cd /tmp % gunzip x-face-e21.el.gz % emacs -batch -f batch-byte-compile x-face-e21.el % su # mv x-face-e21.el x-face-e21.elc /usr/local/share/emacs/site-lisp
The following settings are put in ~/.emacs and ~/.mew respectively.
(autoload 'x-face-decode-message-header "x-face-e21") (autoload 'x-face-insert "x-face-e21" nil t) (autoload 'x-face-save "x-face-e21" nil t) (autoload 'x-face-show "x-face-e21" nil t) (autoload 'x-face-turn-off "x-face-e21") (setq x-face-auto-image t)
(setq mew-use-highlight-x-face t
mew-use-highlight-x-face-function 'x-face-decode-message-header)
(define-key mew-summary-mode-map "\C-x4s" 'x-face-save)
(define-key mew-draft-mode-map "\C-x4i" 'x-face-insert)
(define-key mew-draft-header-map "\C-x4i" 'x-face-insert)
(define-key mew-draft-mode-map "\M-t" 'x-face-show)
(define-key mew-draft-header-map "\M-t" 'x-face-show)
In addition, X-Face is also displayed in draft mode by adding the following into ~/.mew. You need to copy your X-Face file (foo.xbm, the value of x-face-default-xbm-file) into the directory specified with x-face-image-file-directory(~/x-faces/ in default).
(setq x-face-default-xbm-file "foo.xbm") (add-hook 'mew-draft-mode-hook 'x-face-insert) (add-hook 'mew-make-message-hook 'x-face-turn-off)