From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Sending e-mail via system's mail client from sendmail.el Date: Sun, 10 Jul 2005 15:14:04 +0200 Message-ID: <42D11F1C.2010709@student.lu.se> References: <4A08801D-0AD9-4874-A008-A066E8E5EDDF@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121002264 16166 80.91.229.2 (10 Jul 2005 13:31:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2005 13:31:04 +0000 (UTC) Cc: Richard Stallman , emacs-devel ' Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 10 15:30:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DrbtR-0006Ug-2C for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2005 15:30:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Drbuw-0006sr-SJ for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2005 09:32:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Drbt1-0006X5-3G for emacs-devel@gnu.org; Sun, 10 Jul 2005 09:30:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Drbso-0006PU-QR for emacs-devel@gnu.org; Sun, 10 Jul 2005 09:30:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Drbso-0006NC-NR for emacs-devel@gnu.org; Sun, 10 Jul 2005 09:30:10 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DrbkQ-0003lf-Hy; Sun, 10 Jul 2005 09:21:30 -0400 Original-Received: from [192.168.123.121] (83.249.205.6) by pne-smtpout2-sn1.fre.skanova.net (7.2.060.1) id 42B937170032B869; Sun, 10 Jul 2005 15:14:05 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: David Reitter In-Reply-To: <4A08801D-0AD9-4874-A008-A066E8E5EDDF@gmail.com> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:40724 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40724 David Reitter wrote: > The enclosed package allows to hand over a mail buffer from sendmail.el > to the system's designated e-mail client. > Note that the e-mail client will display the contents of the buffer > again for editing. The e-mail client is taken to be whoever handles a > mailto: URL > via `browse-url'. I think this is a good suggestion and I believe it can add a lot to the quality on Emacs. It can work on w32 too, but there is one problem. The mailto url can not be very long on w32. Therefore I have made a workaround which I hope you can include. The workaround (on w32 only) places the actual message body on the clipboard and instead gives a short body telling the user to paste the clipboard contents into the message: *** orig\mailclient.el 2005-07-10 14:58:02.595704200 +0200 --- mailclient.el 2005-07-10 15:06:57.593654200 +0200 *************** *** 128,137 **** "") ;; body (concat (mailclient-url-delim) "body=" ! (url-encode-string ! (buffer-substring delimline (point-max)))))))) (kill-buffer tembuf)))) ! (provide 'mailclient) \ No newline at end of file --- 128,141 ---- "") ;; body (concat (mailclient-url-delim) "body=" ! (if (fboundp 'w32-set-clipboard-data) ! (progn ! (w32-set-clipboard-data (buffer-substring delimline (point-max))) ! "*** Bug report data has been placed on clipboard, please paste them here! ***" ) ! (url-encode-string ! (buffer-substring delimline (point-max))))))))) (kill-buffer tembuf)))) ! (provide 'mailclient)