From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84375 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-setup-message? Date: Wed, 19 Mar 2014 16:14:33 +0900 Organization: Emacsen advocacy group Message-ID: References: <874n2u217r.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1395213288 7946 80.91.229.3 (19 Mar 2014 07:14:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2014 07:14:48 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32621@lists.math.uh.edu Wed Mar 19 08:14:56 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WQAiE-0004LX-F2 for ding-account@gmane.org; Wed, 19 Mar 2014 08:14:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1WQAhi-0007yM-Dc; Wed, 19 Mar 2014 02:14:22 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WQAhg-0007y3-MZ for ding@lists.math.uh.edu; Wed, 19 Mar 2014 02:14:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WQAhf-0006s6-6Y for ding@lists.math.uh.edu; Wed, 19 Mar 2014 02:14:19 -0500 Original-Received: from hampton-mail.hostforweb.net ([205.234.204.210] helo=hampton.hostforweb.net) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WQAhd-0005R4-5b for ding@gnus.org; Wed, 19 Mar 2014 08:14:17 +0100 Original-Received: from localhost.localdomain ([127.0.0.1]:55476 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1WQAhV-001LRE-Ec for ding@gnus.org; Wed, 19 Mar 2014 02:14:10 -0500 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13001 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.10) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:lTsdMJZUgaCnYmkklgHW/yRGP1w= X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: yamaoka X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.4990 Ham tokens: 0.000-2409--16508h-0s--0d--H*u:Emacs, 0.000-181--1236h-0s--0d--H*u:Gnus, 0.000-181--1236h-0s--0d--H*UA:Gnus, 0.000-2312--15864h-3s--0d--H*M:fsf, 0.000-2805--19258h-6s--0d--H*UA:Emacs Spam tokens: 0.995-18394--567h-83498s--0d--H*r:quimby.gnus.org, 0.993-1--0h-2s--1d--HX-AntiAbuse:gnus.org, 0.992-17231--841h-79583s--0d--H*Ad:D*gnus.org, 0.991-17695--969h-82192s--0d--HTo:D*gnus.org, 0.991-18374--1008h-85352s--0d--HX-Spam-Relays-External:quimby.gnus.org Autolearn status: ham 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4990] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84375 Archived-At: lee wrote: > what happened to `gnus-setup-message'? That doesn`t seem to be > available in recent emacs anymore. It should still exist in lisp/gnus/gnus-msg.el{c|.gz}. But that macro is not configured to be autoloaded[1], so you have to load gnus-msg explicitly if you want to use it without starting Gnus. > How are we supposed to send email from scripts now? I don't know what kind of script you use, but here is an example: --eval '(require (quote gnus-msg))' --eval '(Your-Function)' Where `Your-Function' is the one that uses gnus-setup-message. [1] A thing that autoloads gnus-setup-message was deleted in gnus-dired.el five years ago. I don't know if it is relevant to your problem, though.