On Tue, Feb 06, 2001 at 07:33:55AM -0500, Joe Philipps wrote:
> 1.) Instead of using echo, you might try using ls -1 or find as
> appropriate (dunno...I use mbox format)
>
> 2.) pipe that into grep -v
>
> For example:
>
> find $HOME/Mail -type f -print | egrep -v '(notbox1|notbox2|backup-inbox)'
>
> Q:...for those of you who use maildir...would you ever have
> subdirectories in $HOME/Mail?
Joe,
I use procmail to populate my maildirs and so am not as limited certain
IMAP users. I do have subdirectories under $HOME/Mail
I have:
$HOME/Mail/personal
which contains
inbox/
family/
netfriends/
...
$HOME/Mail/Mailing-lists/
which contains
mutt-dev/
mutt-users/
...
Most of the rest are right off $HOME/Mail
I have also made Mailing-lists a softlink to prevent find from wandering
into it unless I want to search there explicitly.
One of the benefits of maildir for me is that I use find and grep to build
a Search-Results/ folder to link all messages that match a regex in one
folder. This allows me to see the threading etc in the folder on all
messages that refer to the Astral project for instance.
find $HOME/Mail/ -type f -exec grep -l "regex" {} \; -exec ln {} \
$HOME/Mail/Search-Results/ \;
/Duncan
--
Duncan Watson Application Engineer