From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80599 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: maildir and ssh Date: Thu, 24 Nov 2011 09:13:26 +0900 Organization: Emacsen advocacy group Message-ID: References: <1321992427.10810.YahooMailNeo@web29910.mail.ird.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1322093658 14099 80.91.229.12 (24 Nov 2011 00:14:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2011 00:14:18 +0000 (UTC) Cc: ding@gnus.org To: Adam W Original-X-From: ding-owner+M28882@lists.math.uh.edu Thu Nov 24 01:14:14 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTMxC-00022y-0c for ding-account@gmane.org; Thu, 24 Nov 2011 01:14:14 +0100 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 1RTMwL-0003XH-U7; Wed, 23 Nov 2011 18:13:21 -0600 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 1RTMwK-0003X1-NA for ding@lists.math.uh.edu; Wed, 23 Nov 2011 18:13:20 -0600 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 1RTMwJ-0005qo-BP for ding@lists.math.uh.edu; Wed, 23 Nov 2011 18:13:20 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RTMwH-0000z0-Fu for ding@gnus.org; Thu, 24 Nov 2011 01:13:17 +0100 Original-Received: from localhost ([127.0.0.1]:37386) by orlando.hostforweb.net with smtp (Exim 4.69) (envelope-from ) id 1RTMw9-0003kM-FC; Wed, 23 Nov 2011 18:13:10 -0600 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (i686-pc-cygwin) Cancel-Lock: sha1:obR3rjjQpbV2seXAfNpFeWjF1yA= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80599 Archived-At: Adam W wrote: > I found a bug in gnus. In mail-source.el, mail-source-fetch-dir there > is a call to delete-file. Gnus checks this call to return non-nil. > When using a remote ssh maildir via ssh, delete-file returns nil though. > Here is the fixed function: > (defun mail-source-fetch-maildir (source callback) --- mail-source.el~ 2011-04-05 05:00:09 +0000 +++ mail-source.el 2011-11-22 20:07:07 +0000 @@ -1038 +1038,2 @@ - (delete-file file))))) + (delete-file file) + nil)))) I believe you're right, it's a mail-source bug. Any Lisp code should never expect the return value of `delete-file' since it is not documented. I verified it returns nil for a local file but t for a remote file using ssh[1]: (delete-file "/ssh:localhost:/home/yamaoka/FILE") Fixed in the Gnus trunk and the Emacs trunk. [1] Note that tramp runs "rm -f" (that is hard-coded) in a remote system, so `delete-file' always returns t even if a file does not exist.