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: Fixing report-emacs-bug Date: Sun, 3 Jul 2005 20:14:33 +0100 Message-ID: <3DAFCD49-E4A8-45EF-AFAB-81096D3FD29B@gmail.com> References: <66D10997-3675-4D74-9DD3-340D2DD69871@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120418831 3628 80.91.229.2 (3 Jul 2005 19:27:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2005 19:27:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 03 21:27:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DpA7K-0003tg-VT for ged-emacs-devel@m.gmane.org; Sun, 03 Jul 2005 21:27:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpA8V-000513-Fx for ged-emacs-devel@m.gmane.org; Sun, 03 Jul 2005 15:28:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DpA5b-00040t-38 for emacs-devel@gnu.org; Sun, 03 Jul 2005 15:25:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DpA5P-0003wC-U7 for emacs-devel@gnu.org; Sun, 03 Jul 2005 15:25:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpA5O-0003oq-04 for emacs-devel@gnu.org; Sun, 03 Jul 2005 15:25:03 -0400 Original-Received: from [64.233.184.198] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DpA0z-0003XS-12 for emacs-devel@gnu.org; Sun, 03 Jul 2005 15:20:29 -0400 Original-Received: by wproxy.gmail.com with SMTP id i2so667004wra for ; Sun, 03 Jul 2005 12:14:40 -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=mwe1YOKldCfN9/TVqXxKKccPkCz4i23YtGW/G+y6kh4Jh+ZQVDq97PNTz57vidI7BGKRRoI28NfRF3geKSqyi2jvhaLVsszKh5qTANGeDdh+RyLzbEVEajN7Fv9D0KUTDEN5yo5KIThNMMJb+RqclwvbQR/ECSDvRpp0YK/8RCA= Original-Received: by 10.54.83.5 with SMTP id g5mr3069176wrb; Sun, 03 Jul 2005 12:14:40 -0700 (PDT) Original-Received: from ?192.168.123.177? ([82.41.228.21]) by mx.gmail.com with ESMTP id 35sm2201939wra.2005.07.03.12.14.39; Sun, 03 Jul 2005 12:14:40 -0700 (PDT) In-Reply-To: Original-To: Stefan Monnier X-Mailer: Apple Mail (2.730) 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:40248 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40248 On 30 Jun 2005, at 20:37, Stefan Monnier wrote: >> As described a while ago, report-emacs-bug doesn't work on Mac OS >> X (unless >> the user chooses to activate postfix). It swallows bug reports >> without >> indicating an error. >> > > Have you reported it as a bug to Apple? No I haven't. I'm not sure what the correct behavior would be. What happens on other Unix systems when you shut down postfix and run sendmail? The message gets put in the queue, correct? Well, that's what happens here on OS X as well. So the desired behavior would probably be that sendmail gives a warning to stderr when it is called, right? If so, would Emacs actually pick that up (at the right point in time)? I suppose not, since sendmail is only called when the e-mail is to be sent, right? So in the end, the bug report might actually go to the Postfix maintainers, not to Apple - because it's all functionality implemented by Postfix. But I think what we could do is have sendmail.el issue a 'sendmail - q' command, which flushes the mail queue if the mail system is running. If not, you get this: lucy:~/Sites dr$ sendmail -q postqueue: fatal: Cannot flush mail queue - mail system is down Now by looking for "fatal", we can tell whether the e-mail could actually be delivered. What might make sense is to do that BEFORE starting the mail buffer - either when doing compose-mail (is this called by the bug reporting function?) or in the report-emacs-bug. If the mail system is live, is probably alright to assume that it is configured to actually deliver e-mail. If not - which will be the case in most vanilla Mac OS X installations! - , we still have to go through the external reporting method that I have implemented. > > As for report-internally/externally, could you post a patch against > emacsbug.el? Yes, done (a few days ago). - D