Re: How to remove empty maildir?

2009-09-24 Thread James Michael Fultz
* Wu, Yue vano...@gmail.com [2009-09-24 09:24 +0800]: Thanks for all replies, mutt uses its own maildir so I have no issue about the two apps read/write the same maildirs at one time. I don't know sh, and I've tried the following sh script, but it doesn't work: #!/bin/sh

Re: How to remove empty maildir?

2009-09-24 Thread Christian Ebert
* Wu, Yue on Thursday, September 24, 2009 at 09:24:35 +0800 On Wed, Sep 23, 2009 at 09:03:09AM -0500, Kyle Wheeler wrote: On Wednesday, September 23 at 09:45 PM, quoth Wu, Yue: The logic I need is: if maildir A has no mails(new/ tmp/ cur/ are empty) rm -r A endif Ahh. How

Re: How to remove empty maildir?

2009-09-24 Thread Wu, Yue
On Thu, Sep 24, 2009 at 08:26:53AM +0200, Christian Ebert wrote: * Wu, Yue on Thursday, September 24, 2009 at 09:24:35 +0800 I don't know sh, and I've tried the following sh script, but it doesn't work: #!/bin/sh DIR=~/temp/mails/* for d in ${DIR}; do if [ $(find d

Re: How to remove empty maildir?

2009-09-24 Thread Wu, Yue
On Thu, Sep 24, 2009 at 08:26:53AM +0200, Christian Ebert wrote: But I would be careful with rm while developing the script, perhaps do a echo $d I got some idea about handling the empty maildirs in mutt. Mutt should use some method to check if the maildir is empty or not,

Re: How to remove empty maildir?

2009-09-24 Thread Ionel Mugurel Ciobica
On 24-09-2009, at 09h 24'35, Wu, Yue wrote about Re: How to remove empty maildir? #!/bin/sh DIR=~/temp/mails/* for d in ${DIR}; do if [ $(find d -type f | wc -l) -eq 0 ] ; then rm -r d fi done #!/bin/sh DIR=~/temp/mails/* for d in ${DIR}; do

Re: Offical site's uncomplete manual.txt and broken manual.txt.gz

2009-09-24 Thread Wu, Yue
On Wed, Sep 23, 2009 at 06:09:38PM +0200, Michael Wagner wrote: * Wu, Yue vano...@gmail.com 23.09.2009 In mutt offical site, the documentation for devel version: text version: http://www.mutt.org/doc/devel/manual.txt is an uncompleted version, which just give a table of contents

Re: Offical site's uncomplete manual.txt and broken manual.txt.gz

2009-09-24 Thread Michael Wagner
* Wu, Yue vano...@gmail.com 24.09.2009 On Wed, Sep 23, 2009 at 06:09:38PM +0200, Michael Wagner wrote: the version at http://www.mutt.org/doc/devel/manual.txt.gz is a gzipped file. I've downloaded it for testing and everything is allright with the it. Also when I visited the side with

Re: Offical site's uncomplete manual.txt and broken manual.txt.gz

2009-09-24 Thread Joost Kremers
On Thu, Sep 24, 2009 at 03:12:53PM +0200, Michael Wagner wrote: * Wu, Yue vano...@gmail.com 24.09.2009 y...@bsd ~/gtd/stuff gzip -tv manual.txt.gz gzip: manual.txt.gz: not in gzip format manual.txt.gz:NOT OK I don't understand it. Here is all ok. I've seen it happen before that a

Re: How to remove empty maildir?

2009-09-24 Thread Derek Martin
On Thu, Sep 24, 2009 at 02:59:30PM +0800, Wu, Yue wrote: I got some idea about handling the empty maildirs in mutt. Mutt should use some method to check if the maildir is empty or not, if so, then mutt can mask the empty ones automatically, so I can be away the no sense the boring empty

Re: Offical site's uncomplete manual.txt and broken manual.txt.gz

2009-09-24 Thread Wu, Yue
On Thu, Sep 24, 2009 at 03:20:39PM +0200, Joost Kremers wrote: On Thu, Sep 24, 2009 at 03:12:53PM +0200, Michael Wagner wrote: * Wu, Yue vano...@gmail.com 24.09.2009 y...@bsd ~/gtd/stuff gzip -tv manual.txt.gz gzip: manual.txt.gz: not in gzip format manual.txt.gz:NOT OK I

Re: How to remove empty maildir?

2009-09-24 Thread Wu, Yue
On Thu, Sep 24, 2009 at 11:57:38AM -0500, Derek Martin wrote: On Thu, Sep 24, 2009 at 02:59:30PM +0800, Wu, Yue wrote: I got some idea about handling the empty maildirs in mutt. Mutt should use some method to check if the maildir is empty or not, if so, then mutt can mask the empty

Re: Offical site's uncomplete manual.txt and broken manual.txt.gz

2009-09-24 Thread James Michael Fultz
* Wu, Yue vano...@gmail.com [2009-09-25 07:49 +0800]: [ ... ] Also, I don't know how to view the file as a plain text, when I try to view it by vim, the garbage charactors full-filled with my screen. `less` is ok. Maybe the file contains many control sequences that vim can't recorgnize but

Re: Offical site's uncomplete manual.txt and broken manual.txt.gz

2009-09-24 Thread Wu, Yue
On Thu, Sep 24, 2009 at 10:40:15PM -0400, James Michael Fultz wrote: There's an explanation to be found in less' man page and Mutt's manual. http://www.mutt.org/doc/manual/manual-2.html#ss2.3 Also, the internal pager supports a couple other advanced features. For one, it will accept and

Re: Offical site's uncomplete manual.txt and broken manual.txt.gz

2009-09-24 Thread James Michael Fultz
* Wu, Yue vano...@gmail.com [2009-09-25 13:22 +0800]: [ ... ] Hi James, I've tried `col -b` and `col -bp`, both produce errors and stop immatiatly. y...@bsd ~ cat manual.txt | col -b -p 9.14. Default editor Function Bindings col: Illegal byte sequence Curious.