From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32232 Path: main.gmane.org!not-for-mail From: "G. Todd" Newsgroups: gmane.emacs.gnus.general Subject: getting bbdb to use gnus/gcc Date: 19 Aug 2000 19:27:48 -0400 Organization: Gnus Information Center Sender: owner-ding@hpc.uh.edu Message-ID: Reply-To: gtodd@yorku.ca NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035168534 18550 80.91.224.250 (21 Oct 2002 02:48:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:48:54 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 76579D051E for ; Sun, 20 Aug 2000 12:28:37 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id SAC01708; Sat, 19 Aug 2000 18:55:05 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 19 Aug 2000 18:25:19 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id SAA24452 for ; Sat, 19 Aug 2000 18:25:09 -0500 (CDT) Original-Received: from quimby.gnus.org (quimby.gnus.org [195.204.10.139]) by mailhost.sclp.com (Postfix) with ESMTP id 2FDC7D051E for ; Sat, 19 Aug 2000 19:25:34 -0400 (EDT) Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id BAA11113 for ding@gnus.org; Sun, 20 Aug 2000 01:26:43 +0200 (CEST) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 51 Original-NNTP-Posting-Host: hse-toronto-ppp173686.sympatico.ca Original-X-Trace: quimby.gnus.org 966727603 8987 64.229.64.101 (19 Aug 2000 23:26:43 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 19 Aug 2000 23:26:43 GMT User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Canyonlands) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32232 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32232 Digging through my .emacs and .gnus rat's nests I found a function I'd snarfed off the net (see below). It starts gnus whenever message mode is invoked so that various functions and settings get used and gcc: headers get inserted. It mostly works but I notice that bbdb doesn't seem to work correctly with gnus when I use the *m or m commands on a bbdb buffer. Setting bbdb-send-mail-style to 'message ensures that message gets used to send the mail It's not possible to set bbdb-send-mail-style to a self defined function so asking bbdd to use (send-mail) results in an error. Has anyone figured out how to get bbdb to use gnus more fully to send mail? Gnus v5.8.7 BBDB version 2.00.06 ---- snip ----- ;; From Thorsten Hilbrich ;; uses gnus to file mail (doesn't work with bbdb though) (defvar started-gnus-by-send-mail nil "Non-nil means that gnus has been invoked by send-mail and can be closed after sending the mail message.") (defun send-mail () "Start Gnus if not already present and ensure that it is closed after sending." (interactive) (if (and (functionp 'gnus-alive-p) (gnus-alive-p)) (setq started-gnus-by-send-mail nil) (setq started-gnus-by-send-mail t) (add-hook 'bbdb-define-all-aliases 'message-sent-hook 'check-message-and-exit-gnus) (gnus-no-server)) (gnus-group-mail)) (defun check-message-and-exit-gnus () "Closes gnus without any user interaction if it has been invoked by send-mail." (if started-gnus-by-send-mail (progn (let ((gnus-interactive-exit nil)) (gnus-group-exit)) (setq started-gnus-by-send-mail nil) (remove-hook 'bbdb-define-all-aliases 'message-sent-hook 'check-message-and-exit-gnus) ))) ---- snip ----- -- G. Todd