From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83501 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: sending messages from script/command line Date: Mon, 08 Jul 2013 08:32:18 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87wqp1xmel.fsf@lifelogs.com> References: <87zjua8edq.fsf@yun.yagibdah.de> <87obamjvvx.fsf@lifelogs.com> <87vc4u48j8.fsf@yun.yagibdah.de> <87y59p3rh3.fsf@lifelogs.com> <87txk8zmxy.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 1373286836 10052 80.91.229.3 (8 Jul 2013 12:33:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jul 2013 12:33:56 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31761@lists.math.uh.edu Mon Jul 08 14:33:56 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 1UwAdb-0005BE-9e for ding-account@gmane.org; Mon, 08 Jul 2013 14:33:51 +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 1UwAcq-00029e-PY; Mon, 08 Jul 2013 07:33:04 -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 1UwAcp-00029R-JV for ding@lists.math.uh.edu; Mon, 08 Jul 2013 07:33:03 -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 1UwAco-0001wy-0R for ding@lists.math.uh.edu; Mon, 08 Jul 2013 07:33:03 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UwAcm-0004aS-KL for ding@gnus.org; Mon, 08 Jul 2013 14:33:00 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UwAcS-0003rf-R4 for ding@gnus.org; Mon, 08 Jul 2013 14:32:40 +0200 Original-Received: from pool-72-70-84-160.bstnma.east.verizon.net ([72.70.84.160]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Jul 2013 14:32:40 +0200 Original-Received: from tzz by pool-72-70-84-160.bstnma.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Jul 2013 14:32:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-72-70-84-160.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:dDYpn5x8kw1fZON5bmgwqX6jiLk= X-Spam-Score: -2.2 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83501 Archived-At: On Sat, 06 Jul 2013 00:00:57 +0200 lee wrote: l> Ted Zlatanov writes: >> 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> Sure, why not --- I don't know how to do that, though. And I would l> really like to come up with something better: "better" meaning something l> that optionally includes posting styles. I'd like to be able to specify l> headers and the body and give it a flag telling gnus whether I want to l> edit the mail before sending it or not. For headers and body, you could just feed the message through a file or STDIN instead of making options for everything. I don't know about calling mailx... l> Let's see what he says --- perhaps this is even easy to do. Before I l> could come up with something better, I'd have to try to figure out how l> gnus works. Maybe it's not possible to change the posting style on the l> fly ... and if it's changed, it would have to be restored ... `gnus-alive-p' is your friend as Eric said :) Ted