From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: [david.reitter@gmail.com: mailclient.el - revised] Date: Thu, 28 Jul 2005 13:24:37 +0100 Message-ID: <42E8CE85.7030105@gnu.org> References: <42E2DE0B.2050508@student.lu.se> <0D4BC441-B098-4EC2-BB15-227AA96FE100@gmail.com> <42E3A9AB.9040508@student.lu.se> <2DEF91C8-8F4D-4A57-9201-C233640481E9@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 1122553594 15961 80.91.229.2 (28 Jul 2005 12:26:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2005 12:26:34 +0000 (UTC) Cc: Lennart Borgman , emacs-devel ' Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 28 14:26:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dy7Sb-0002Pd-Hd for ged-emacs-devel@m.gmane.org; Thu, 28 Jul 2005 14:26:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dy7V2-0006kQ-Mh for ged-emacs-devel@m.gmane.org; Thu, 28 Jul 2005 08:28:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dy7Tj-0006dL-W2 for emacs-devel@gnu.org; Thu, 28 Jul 2005 08:27:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dy7Tf-0006ae-AP for emacs-devel@gnu.org; Thu, 28 Jul 2005 08:27:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dy7Te-0006aA-PG for emacs-devel@gnu.org; Thu, 28 Jul 2005 08:27:06 -0400 Original-Received: from [217.207.198.106] (helo=exchange.integrasp.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dy7aM-0000lI-Rx for emacs-devel@gnu.org; Thu, 28 Jul 2005 08:34:03 -0400 Original-Received: from ASSP-nospam (localhost [127.0.0.1]) by exchange.integrasp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 37Q0TC0L; Thu, 28 Jul 2005 13:19:48 +0100 Original-Received: from 10.10.5.77 ([10.10.5.77] helo=[10.10.5.77]) by ASSP-nospam ; 28 Jul 05 12:19:47 -0000 User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711) X-Accept-Language: en-us, en Original-To: David Reitter In-Reply-To: <2DEF91C8-8F4D-4A57-9201-C233640481E9@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:41261 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41261 David Reitter wrote: > On 24 Jul 2005, at 15:46, Lennart Borgman wrote: > >> However it should not depend on the mail client used. In w32 there >> is a problem with the parameter length when passing the URL to w32. >> I have done a workaround placing data on the clipboard. Otherwise >> (browse-url ...) for the "mailto:..." URL is used just as in your >> original code. > > > I don't think placing data on the clipboard and asking the user to > copy it over would be the ideal solution. Using MAPI (instead of > mailclient) seems to be the correct way to do things on Windows. MAPI is a proprietary API for proprietary mail clients on a proprietary OS. It is not the "correct" way for anything. Free mail clients such as Emacs, Mozilla Thunderbird and others are not supported by MAPI. mailto: urls are an open standard. They can be made to work with any mail client that has a command-line interface, even Emacs (see the Emacs on Windows FAQ). If there are limitations with them on Windows, then that is something that Windows users have to live with. What Lennart suggested seems like a good comprimise, even if not ideal, but itshould be conditioned on whether the user has customized send-mail-function, since there is a high chance that Emacs will be able to send mail (using smtpmail.el for example) if the user has configured it to (this applies to Mac as well). This may be the case already, I haven't studied the code you wrote.