Re: How to implement save_empty on maildir?
- To: mutt-users@xxxxxxxx
- Subject: Re: How to implement save_empty on maildir?
- From: "Wu, Yue" <vanopen@xxxxxxxxx>
- Date: Sat, 20 Jun 2009 06:43:52 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:organization; bh=ZPQCG5lzle+gYpBpq5VS3UhPxumaagl/75QATJWFP+8=; b=jh2/5c8Sey7a4oKUH3jVZyiGURpSQ97VV6EE1lFgXrnElEDUEQycX7C8OdRtY9XQSC 26ntEDv0YOwC5kkpof813hwR4yFxx14GZ+KyMUxB13GLpyB9QPNKDcrwga85cx6+YLlE l+Z8vAFTTME9NHdbAbcGqcwd31pjh5hZnpZEQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:organization; b=AoTKvHBX879qaAXvU8Kd4NeyB0D8l+sLEUNuBEC4OPEWKwFPjL9vgoC3JqjW+uznD+ U1bQkKIueHsK7nMLP89AeewgdMeGouzT25NhESfte12N0Mg8DNFqVsZNaLdG25EglPwO +D51ib/8cmCPV2qi+rO6okJlhVqOpZ4Wqh7rY=
- In-reply-to: <20090619123320.GB368@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Organization: China Pharmaceutical University, Nanjing, PRC
- References: <20090618133227.GA1639@xxxxxxxxxxxxxx> <20090619123320.GB368@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
On Fri, Jun 19, 2009 at 02:33:20PM +0200, Rocco Rutte wrote:
> Hi,
>
> * Wu, Yue wrote:
> > I want to let mutt deletes empty maildirs automatically, but 'save_empty'
> > only
> > works for mbox, why? How to achieve it for maildir?
>
> It doesn't work for maildir. I'm not sure why, but probably because
> removing an empty maildir has the potential to break something as it
> cannot be done atomically.
>
> For example, mutt could try to delete the subdirectories in this order:
> new, cur, tmp. While mutt deletes new/ some other process writes a new
> message into tmp/ which the delivery agent tries to move to new/ which
> isn't there anymore.
>
> I guess not supporting it is the safest variant.
But it's annoying all the groups show up in the view all the time, I just want
to see the groups that have mails, others should be hiden or deleted.
--
Hi,
Wu, Yue