From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32622 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: (provide 'nnmaildir) Date: 28 Sep 2000 12:05:25 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035168877 20855 80.91.224.250 (21 Oct 2002 02:54:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:54:37 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by mailhost.sclp.com (Postfix) with ESMTP id ECB04D051E for ; Thu, 28 Sep 2000 12:10:12 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id LAC01158; Thu, 28 Sep 2000 11:06:40 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 28 Sep 2000 11:05:57 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA23572 for ; Thu, 28 Sep 2000 11:05:48 -0500 (CDT) Original-Received: from multivac.student.cwru.edu (multivac.STUDENT.CWRU.Edu [129.22.239.69]) by mailhost.sclp.com (Postfix) with SMTP id 2BE58D0520 for ; Thu, 28 Sep 2000 12:06:11 -0400 (EDT) Original-Received: (qmail 14373 invoked by uid 500); 28 Sep 2000 16:05:47 -0000 Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org In-Reply-To: Paul Jarc's message of "14 Jul 2000 19:10:18 -0400" Original-Lines: 43 X-Mailer: Gnus v5.7/Emacs 20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32622 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32622 feature: -wipe-on-delete bugfix: -request-accept-article correctly finds end of a header bugfix: Xrefs track changes in group names bugfix: gnus-declare-backend is called If you want messages and .nnmaildir files to be wiped on disk before being deleted (this applies only to files with a single hard link), use a select method like: '(nnmaildir "whatever" (nnmaildir-wipe-on-delete t) ...) There is a change in the .nnmaildir file format - Xrefs are generated on the fly, and not stored in .nnmaildir. But it seems Gnus tolerates the extra garbage at the end of a NOV line, so you can just wait for all your old .nnmaildir NOV lines to disappear with expiration. You can also fix your old .nnmaildir files with: M-x replace-regexp RET C-q TAB Xref:[^ C-q TAB C-q C-j ]* RET RET Or, if you don't care about losing marks, the usual: kill your nnmaildir groups, exit Gnus, delete your .nnmaildir files, start Gnus again and resubscribe. Does anyone have a better way to wipe a file than this? (insert (format (concat "%" (number-to-string nchars) "s") "")) (write-region (point-min) (point-max) file) After implementing this, I realized it might not do any good, depending on how write-region works. If it opens the file with O_TRUNC, then I might be writing to different disk blocks than were being used for this file's data before write-region opened it. If instead the file is opened (without O_TRUNC), written, and then ftruncate'd, all is well. Does anyone know which it is? I still haven't figured out why -request-accept-article isn't seeing that nnmaildir-filename is bound. I've tried making it buffer-local instead of bound by let; no dice. It seems that -request-move-article isn't even being called: I put in some message calls for debugging, and nothing showed up in *Messages*. What's the difference between gnus-summary-copy-article and -crosspost-article? Is the backend required to update a message's Xref in either case? paul