From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: [david.reitter@gmail.com: mailclient.el - revised] Date: Thu, 28 Jul 2005 14:31:14 +0100 Message-ID: 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> <42E8CE85.7030105@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122557833 29728 80.91.229.2 (28 Jul 2005 13:37:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2005 13:37:13 +0000 (UTC) Cc: Lennart Borgman , emacs-devel ' Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 28 15:37:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dy8YE-00059E-OT for ged-emacs-devel@m.gmane.org; Thu, 28 Jul 2005 15:35:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dy8ag-00067J-BS for ged-emacs-devel@m.gmane.org; Thu, 28 Jul 2005 09:38:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dy8ZC-0005kU-L5 for emacs-devel@gnu.org; Thu, 28 Jul 2005 09:36:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dy8Z2-0005en-PF for emacs-devel@gnu.org; Thu, 28 Jul 2005 09:36:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dy8Z1-0005dT-Iy for emacs-devel@gnu.org; Thu, 28 Jul 2005 09:36:43 -0400 Original-Received: from [64.233.184.202] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dy8ev-0005eh-EB for emacs-devel@gnu.org; Thu, 28 Jul 2005 09:42:49 -0400 Original-Received: by wproxy.gmail.com with SMTP id i1so417605wra for ; Thu, 28 Jul 2005 06:31:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=Qi99ydOY+Fs/hSQgj936GS54PHWep260NU+HQe2WkTjKLfRQZMh6L1SsVDsd6uTBGiKNFhppeRViNG7Gi2QfGgF3QNI34764sAjYaa8FFDdT+XHj3Mh5uX0iGBpssT94p91nj2mQhv6cNgdfWtEevnt4Vyi2GxAqPoZU/b1yjDM= Original-Received: by 10.54.39.79 with SMTP id m79mr798421wrm; Thu, 28 Jul 2005 06:31:13 -0700 (PDT) Original-Received: from ?129.215.174.81? ([129.215.174.81]) by mx.gmail.com with ESMTP id 13sm713569wrl.2005.07.28.06.31.13; Thu, 28 Jul 2005 06:31:13 -0700 (PDT) In-Reply-To: <42E8CE85.7030105@gnu.org> Original-To: Jason Rumney X-Mailer: Apple Mail (2.733) 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:41266 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41266 On 28 Jul 2005, at 13:24, Jason Rumney wrote: > > 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. It seems that you misunderstand what the task is that we're trying to achieve. That is, to send off an e-mail without further interaction. mailto URLs are an open standard, but they are a standard for the wrong thing. They should be adopted when there is no other possibility, as is the case on Mac OS X / Darwin (in default configuration). So on OS X, we need a workaround - one that actually provides a useful functionality on all systems provided mailto URLs are fully supported. Unless I'm mistaken here, MAPI offers a way to send off e-mails without user interaction. Hundreds of viruses have used this API on Windows, so it must be there :) For that functionality, MAPI dlls seem to take on the responsibilities that we would normally expect from sendmail. Why is MAPI proprietary? I mean, the idea is that mail clients can support their own mapi32.dll, right? So the API is open and documented, correct? And in fact, the very non-proprietary mail client Mozilla Thunderbird seems to implement it... Apart from that, even if you're using functions for which you don't have source and the usual freedoms - how do you justify using the Win32API that makes windows pop up or sends a document to the printer? > 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. Yes, they should depend on send-mail-function, and it seems to me that you haven't really read the thread, since 'mailclient-send-it for send-mail-function is what others and I have been suggesting all along.