From: Colin Rafferty <craffert@spspme.ml.com>
Cc: (ding) GNUS Mailing List <ding@ifi.uio.no>
Subject: new bbdb-send-mail-internal with message-mode
Date: 12 Jul 1996 12:29:03 -0400 [thread overview]
Message-ID: <ocrd921saen.fsf@spssunp.spspme.ml.com> (raw)
Howdy. I just updated `bbdb-send-mail-internal' so that I can get
message-mode style mail messages sent from BBDB.
(defun bbdb-send-mail-internal (&optional to subj records)
(let ((type (or bbdb-send-mail-style
(cond ((featurep 'message) 'message)
((featurep 'mh-e) 'mh)
((featurep 'vm) 'vm)
(t 'mail)))))
(cond
((eq type 'message)
(or (fboundp 'message-mail) (autoload 'message-mail "message"))
(message-mail to subject))
((eq type 'mh)
(or (fboundp 'mh-send) (autoload 'mh-send "mh-e"))
(mh-send to "" (or subj "")))
((eq type 'vm)
(cond ((not (fboundp 'vm-mail-internal))
(load-library "vm") ; 5.32 or later
(or (fboundp 'vm-mail-internal)
(load-library "vm-reply")))) ; 5.31 or earlier
(vm-mail-internal
(and records (format "mail to %s%s" (bbdb-record-name (car records))
(if (cdr records) ", ..." "")))
to subj))
((or (eq type 'mail) (eq type 'rmail))
(mail nil to subj))
(t
(error "bbdb-send-mail-style must be message, vm, mh, or rmail")))))
; Colin
reply other threads:[~1996-07-12 16:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ocrd921saen.fsf@spssunp.spspme.ml.com \
--to=craffert@spspme.ml.com \
--cc=craffert@ml.com \
--cc=ding@ifi.uio.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).