From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83464 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: sending messages from script/command line Date: Tue, 02 Jul 2013 11:35:04 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87y59p3rh3.fsf@lifelogs.com> References: <87zjua8edq.fsf@yun.yagibdah.de> <87obamjvvx.fsf@lifelogs.com> <87vc4u48j8.fsf@yun.yagibdah.de> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372779446 19571 80.91.229.3 (2 Jul 2013 15:37:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jul 2013 15:37:26 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31724@lists.math.uh.edu Tue Jul 02 17:37:25 2013 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 1Uu2dv-0007bk-HL for ding-account@gmane.org; Tue, 02 Jul 2013 17:37:23 +0200 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 1Uu2c9-00012u-T4; Tue, 02 Jul 2013 10:35:33 -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 1Uu2c7-00012g-5x for ding@lists.math.uh.edu; Tue, 02 Jul 2013 10:35:31 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Uu2c4-0008W8-VX for ding@lists.math.uh.edu; Tue, 02 Jul 2013 10:35:30 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Uu2c3-0004o5-0Z for ding@gnus.org; Tue, 02 Jul 2013 17:35:27 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uu2br-0005n5-Pn for ding@gnus.org; Tue, 02 Jul 2013 17:35:15 +0200 Original-Received: from pool-72-93-34-251.bstnma.east.verizon.net ([72.93.34.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Jul 2013 17:35:15 +0200 Original-Received: from tzz by pool-72-93-34-251.bstnma.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Jul 2013 17:35:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-72-93-34-251.bstnma.east.verizon.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:8pieucGzPKAQJkB1O5oMv2W1GCU= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83464 Archived-At: On Tue, 02 Jul 2013 11:48:58 +0200 lee wrote: l> Ted Zlatanov writes: >> >> There's no built-in way to do what you describe, so your function is >> probably the best solution. l> Anyone else who might need it, feel free to use it :) I would be OK with putting it under contrib/ at least, if you want to make it a patch submission. l> Since I am at this: This only works when gnus has already been started. l> What would I do to make sure that it's started if it isn't? Is there a l> way to check whether gnus is running from the command line/script, or l> could/should I write a wrapper around 'my-gnus-group-mail that starts l> gnus in case it's not started already? >> >> Since Gnus is not a daemon, it's hard to do what you describe. Gnus is >> more like a set of functions that agree upon the same buffer formats :) l> Maybe I can make a wrapper function that checks the buffer list for a l> buffer named "*Gnus*" and starts gnus when there's no such buffer ... That may work. It's probably more robust if Gnus does something on startup to indicate that it's been started, and something else when it quits. But I'll leave it to Lars, I don't have a strong opinion. Ted