Re: How to remove empty maildir?

2009-09-23 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 >

Re: How to remove empty maildir?

2009-09-23 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

Re: How to remove empty maildir?

2009-09-23 Thread James Michael Fultz
* "Wu, Yue" [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 > > DIR="~/temp/mails/*

Re: How to remove empty maildir?

2009-09-23 Thread Wu, Yue
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 about: > > if [ $(find A -type f | wc -l)

Re: compose, reply templates.

2009-09-23 Thread Patrick Shanahan
* Buzzer <4625...@gmail.com> [09-23-09 16:38]: > How to change consistency of the following string? > "On Tue, Sep 22, 2009 at 00:00:00AM, Someone wrote:" edit: set attribution= in your ~/.muttrc instructions are in the fine manual. -- Patrick Shanahan Plainfield, Indiana, USAH

compose, reply templates.

2009-09-23 Thread Buzzer
How to change consistency of the following string? "On Tue, Sep 22, 2009 at 00:00:00AM, Someone wrote:" -- /Buzzer

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

2009-09-23 Thread James Michael Fultz
* Noah Sheppard [2009-09-23 14:44 -0400]: > On Wed, Sep 23, 2009 at 02:37:21PM -0400, James Michael Fultz > wrote: [ ... ] > > Try less and 'col -b manual.txt | less' if the former doesn't > > display cleanly. The col command will strip embedded > > backspace sequences. > > That worked, thanks f

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

2009-09-23 Thread Grant Edwards
On 2009-09-23, Noah Sheppard wrote: > Perhaps there is some character in manual.txt which is causing > truncation somewhere, perhaps server-side, or perhaps in wget, less, and > firefox (for the uncompressed manual.txt). I'm pretty sure it's not in wget, since you can use wget to download files

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

2009-09-23 Thread Noah Sheppard
On Wed, Sep 23, 2009 at 02:44:40PM -0400, Noah Sheppard wrote: > [ ... ] > Perhaps there is some character in manual.txt which is causing > truncation somewhere, perhaps server-side, or perhaps in wget, less, and > firefox (for the uncompressed manual.txt). Maybe some library on our > systems com

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

2009-09-23 Thread Noah Sheppard
On Wed, Sep 23, 2009 at 02:37:21PM -0400, James Michael Fultz wrote: > [ ... ] > > When I download manual.txt.gz with wget and then unzip it and > > vim the result, I again see alternating valid character and > > <##> (I have "set display+=uhex in my .vimrc). This may very > > well be a configura

Re: How to remove empty maildir?

2009-09-23 Thread Chris G
On Wed, Sep 23, 2009 at 04:50:56PM +0200, Ionel Mugurel Ciobica wrote: > On 23-09-2009, at 15h 21'53", Chris G wrote about "Re: How to remove empty > maildir?" > > > > > There's no atomic way of checking if all three sub-directories are > > empty so, in the general case, some other process may co

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

2009-09-23 Thread James Michael Fultz
* Noah Sheppard [2009-09-23 12:36]: > On Wed, Sep 23, 2009 at 06:09:38PM +0200, Michael Wagner wrote: > > * Wu, Yue 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 ve

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

2009-09-23 Thread Michael Wagner
* Gary Johnson 23.09.2009 > On 2009-09-23, Michael Wagner wrote: > > * Wu, Yue 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 con

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

2009-09-23 Thread Noah Sheppard
On Wed, Sep 23, 2009 at 06:09:38PM +0200, Michael Wagner wrote: > * Wu, Yue 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 and the

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

2009-09-23 Thread Grant Edwards
On 2009-09-23, Gary Johnson wrote: > On 2009-09-23, Michael Wagner wrote: >> * Wu, Yue 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

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

2009-09-23 Thread Gary Johnson
On 2009-09-23, Michael Wagner wrote: > * Wu, Yue 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 and the first > > chapter. > > > >

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

2009-09-23 Thread Michael Wagner
* Wu, Yue 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 and the first > chapter. > > text gzipped version: http://www.mutt.org/doc/deve

Re: How to remove empty maildir?

2009-09-23 Thread Ionel Mugurel Ciobica
On 23-09-2009, at 15h 21'53", Chris G wrote about "Re: How to remove empty maildir?" > > > There's no atomic way of checking if all three sub-directories are > empty so, in the general case, some other process may come along > and put something in one of the sub-directories after you have > check

Re: How to remove empty maildir?

2009-09-23 Thread Chris G
On Wed, Sep 23, 2009 at 11:08:52AM -0300, Monte Stevens wrote: > On Wed, Sep 23, 2009 at 09:45:47PM +0800, Wu, Yue wrote: > > The logic I need is: > > > > if maildir A has no mails(new/ tmp/ cur/ are empty) > > rm -r A > > endif > > From http://www.google.com/search?q=bash+test+em

Re: How to remove empty maildir?

2009-09-23 Thread Chris G
On Wed, Sep 23, 2009 at 08:21:35AM -0500, Kyle Wheeler wrote: > On Wednesday, September 23 at 08:16 PM, quoth Wu, Yue: > >Hi, list, question is how to use some commands(i.g. shell commands) to remove > >the empty maildirs, i.e. no any file in maildirs' new/ cur/ and tmp/? > > If you know it won't

Re: How to remove empty maildir?

2009-09-23 Thread Monte Stevens
On Wed, Sep 23, 2009 at 09:45:47PM +0800, Wu, Yue wrote: > The logic I need is: > > if maildir A has no mails(new/ tmp/ cur/ are empty) > rm -r A > endif >From http://www.google.com/search?q=bash+test+empty+directory : http://www.cyberciti.biz/faq/linux-unix-shell-check-if-direct

Re: How to remove empty maildir?

2009-09-23 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 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 about: if [ $(find A -type f | wc -l) -eq 0 ] ; then rm -r A

Re: How to remove empty maildir?

2009-09-23 Thread Ionel Mugurel Ciobica
On 23-09-2009, at 08h 21'35", Kyle Wheeler wrote about "Re: How to remove empty maildir?" > On Wednesday, September 23 at 08:16 PM, quoth Wu, Yue: > >Hi, list, question is how to use some commands(i.g. shell commands) to remove > >the empty maildirs, i.e. no any file in maildirs' new/ cur/ and tmp

Re: How to remove empty maildir?

2009-09-23 Thread Wu, Yue
On Wed, Sep 23, 2009 at 08:21:35AM -0500, Kyle Wheeler wrote: > On Wednesday, September 23 at 08:16 PM, quoth Wu, Yue: > >Hi, list, question is how to use some commands(i.g. shell commands) to remove > >the empty maildirs, i.e. no any file in maildirs' new/ cur/ and tmp/? > > If you know it won't

Re: no way to view html part in browser

2009-09-23 Thread Louis-David Mitterrand
On Wed, Sep 23, 2009 at 08:28:00AM -0500, Kyle Wheeler wrote: > On Wednesday, September 23 at 03:08 PM, quoth Louis-David Mitterrand: > >Using debian's mutt 1.5.20-4 I can no longer view the html part of a > >message in a graphical browser (firefox). > > This has been discussed a couple times on t

Re: no way to view html part in browser

2009-09-23 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Wednesday, September 23 at 03:08 PM, quoth Louis-David Mitterrand: >Using debian's mutt 1.5.20-4 I can no longer view the html part of a >message in a graphical browser (firefox). This has been discussed a couple times on this mailing list alread

Re: How to remove empty maildir?

2009-09-23 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Wednesday, September 23 at 08:16 PM, quoth Wu, Yue: >Hi, list, question is how to use some commands(i.g. shell commands) to remove >the empty maildirs, i.e. no any file in maildirs' new/ cur/ and tmp/? If you know it won't be re-created or delive

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

2009-09-23 Thread Wu, Yue
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 and the first chapter. text gzipped version: http://www.mutt.org/doc/devel/manual.txt.gz isn't a gzipped versi

no way to view html part in browser

2009-09-23 Thread Louis-David Mitterrand
Hi, Using debian's mutt 1.5.20-4 I can no longer view the html part of a message in a graphical browser (firefox). In my ~/.mailcap I have: text/html; /usr/bin/iceweasel '%s'; description=HTML Text; test=test -n "$DISPLAY"; nametemplate=%s.html Yet, when I type 'v' to view the message

How to remove empty maildir?

2009-09-23 Thread Wu, Yue
Hi, list, question is how to use some commands(i.g. shell commands) to remove the empty maildirs, i.e. no any file in maildirs' new/ cur/ and tmp/? -- Hi, Wu, Yue

Re: Blank html when trying to view html attachment by opera

2009-09-23 Thread Wu, Yue
On Tue, Sep 22, 2009 at 10:33:06PM +0800, Wu, Yue wrote: > Hi, list, > > I have a weird issue, my mailcap has this entry: > > text/html; opera '%s'; test=test -n "$DISPLAY" > > But I still can't view the html attachment, opera always shows me a blank html > file. What's wrong? Hi, I've foun