1 ;;; liece-mail.el --- Message composing and sending utility.
2 ;; Copyright (C) 1999 Daiki Ueno
4 ;; Author: Daiki Ueno <ueno@unixuser.org>
7 ;; Keywords: IRC, liece, Gnus
9 ;; This file is part of Liece.
11 ;; This program is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
16 ;; This program is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
32 (require 'liece-version)
34 (defgroup liece-mail nil
35 "Compose and send mail in IRC buffer"
38 (defcustom liece-mail-draft-buffer " *mail*"
39 "Generic draft buffer."
43 (defcustom liece-maintainer-address
44 "liece@unixuser.org (Liece developers)"
45 "The mail address of the Liece maintainers."
49 (defun liece-command-mail-compose (nick)
51 (let ((completion-ignore-case t))
53 (liece-minibuffer-completing-read
54 "To whom: " liece-nick-alist nil nil nil nil liece-current-chat-partner))))
55 (let ((composefunc (get mail-user-agent 'composefunc)) (to nick)
56 (user-agent (liece-version)) uah)
57 (if (setq uah (liece-nick-get-user-at-host nick))
58 (setq to (concat to " <" uah ">")))
59 (if (fboundp composefunc)
60 (funcall composefunc to nil (` (("User-Agent" . (, user-agent))))))))
62 (defun liece-command-submit-bug-report ()
63 "Send a bug report to the Gnus maintainers."
67 (reporter-submit-bug-report
68 liece-maintainer-address
70 (let ((base (list 'window-system
72 'liece-detect-coding-system)))
77 ;;; liece-mail.el ends here