X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fnnml.el;h=b8652600ae72bcec915b4c34aebb25dfc4f705d2;hb=2451dac5939c4bc01d9d15adb57235a7668b0144;hp=ba64ae8b092f41ca5e5ad93a3b2040fc1b2245a9;hpb=370f89245bc0358ccaf7a477a931557f1594cf2d;p=gnus diff --git a/lisp/nnml.el b/lisp/nnml.el index ba64ae8b0..b8652600a 100644 --- a/lisp/nnml.el +++ b/lisp/nnml.el @@ -1,7 +1,6 @@ ;;; nnml.el --- mail spool access for Gnus -;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, -;; 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +;; Copyright (C) 1995-2012 Free Software ;; Foundation, Inc. ;; Authors: Didier Verna (adding compaction) @@ -1214,7 +1213,7 @@ Use the nov database for the current group if available." ;; #### already belongs to a range, whereas the corresponding ;; #### article doesn't exist (for example, if you delete an ;; #### article). For that reason, it is important to update - ;; #### the ranges (meaning remove inexistent articles) before + ;; #### the ranges (meaning remove nonexistent articles) before ;; #### doing anything on them. ;; 2 a/ read articles: (let ((read (gnus-info-read info))) @@ -1299,6 +1298,9 @@ Use the nov database for the current group if available." (nnml-save-nov) ;; b/ Save the active file: (nnmail-save-active nnml-group-alist nnml-active-file) + (let ((marks (nnml-group-pathname group nnml-marks-file-name server))) + (when (file-exists-p marks) + (delete-file marks))) t))))) (defun nnml-request-compact (&optional server)