Re: Organizing mailfolders (strategies and using with mutt)

2002-04-18 Thread David T-G

David, et al --

...and then David Rock said...
% 
...
% Mutt's default for saving messages seems to revolve around the From
% address (e.g. mail from [EMAIL PROTECTED] wants to save to ~/Mail/foo). Does

Right (though there is a save_alias patch that will let you save to the
alias rather than the actual addressee).


% anyone have some good ideas about how to manage their mailboxes? What

There are lots out there, but none have yet solved this problem.


% happens when you have a thread involving multiple people? If you use the
% above example, the thread would be destroyed as you save to different

The problem is one of saving your messages into multiple places;
sometimes it makes sense to stick it in Bob's folder, and sometimes in
Sue's, but sometimes it really pertains to both of them.  You also don't
want to duplicate your messages, because that costs disk space.

What you really need for this sort of thing is a RDB back-end that can
take the message itself and then link it to multiple users' mailboxes
as they are defined by a schema.  Then *everything* relating to Bob, even
if it were a simple offshoot from Sue, would be available, and threading
would be pretty.  That's a long way off, though.

One idea I had was moderately insane but manageable with shell scripts
and accessable from the filesystem (one bad thing about the RDB idea,
unless you also tie in a filesystem view -- which can be done, AIUI; I
think that Oracle has just such a product).  You need one Maildir which
keeps *all* of your mail, and then you have a bunch of fake Maildirs
which all have symlinks in cur which point to the proper message in the
real Maildir.

This is obviously just a small germ of an idea, and of quite possibly no
value whatsoever, but either of these proposals might get some ideas
kicking around and one of these days we might see an answer.


% folders. Is there a way to track a thread across different folders
% (maybe by message ids)?

You could certainly grepmail them together, but that still keeps things
separate, and you have to go and dig out a Message-ID: first.  Still,
that's probably the best for today.


% 
% -- 
% David Rock
% [EMAIL PROTECTED]


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg27351/pgp0.pgp
Description: PGP signature


Re: Organizing mailfolders (strategies and using with mutt)

2002-04-17 Thread Volker Kuhlmann

[examples of directory structures]

 Mutt's default for saving messages seems to revolve around the From
 address (e.g. mail from [EMAIL PROTECTED] wants to save to ~/Mail/foo). Does
 anyone have some good ideas about how to manage their mailboxes? What

I tried

fcc-save-hook (mutt-users.*@mutt.org) =LISTS/appsoft/mutt-users-List
fcc-save-hook '~e [EMAIL PROTECTED]' =LISTS/appsoft/mutt-users-List

but it's becoming very tidious very fast and is not really the way to
go IMHO, esp when using procmail anyway. I have programmed some generic
filters for various list servers:
http://volker.orcon.net.nz/soft/procmail/
(the files named l_*.rc). The mutt lists then become

###
#   mutt-announce   majordomo
LISTNAME=mutt-anno
LISTEMAIL=mutt-announce
LISTSERVERDOMAIN=(mutt.org|gbnet.net)
LISTFOLDER=$THISLISTS/$LISTEMAIL-List
INCLUDERC=$PROCDIR/l_majordomo.rc
###
#   mutt-devmajordomo
LISTNAME=mutt-dev
LISTFOLDER=$THISLISTS/$LISTNAME-List
INCLUDERC=$PROCDIR/l_majordomo.rc
###
#   mutt-users  majordomo
LISTNAME=mutt-users
LISTFOLDER=$THISLISTS/$LISTNAME-List
INCLUDERC=$PROCDIR/l_majordomo.rc
###

which is supposed to catch all the list administrative mail as well
(subscribe etc). It doesn't work with all lists, there seem to be more
differences in server setup than are conveniently allowed, but I'm
working on it...

Using procmail has the advantage of being mailer-independent, if you
want to play around with others (or is saying that here heresy??).

Volker

-- 
Volker Kuhlmann is possibly list0570 with the domain in header
http://volker.orcon.net.nz  Please do not CC list postings to me.




Re: Organizing mailfolders (strategies and using with mutt)

2002-04-17 Thread Thorsten Haude

Hi,

* David Rock [EMAIL PROTECTED] [02-04-17 05:38]:
On Thu, Apr 11, 2002 at 02:51:56PM +0200, Thorsten Haude wrote:
 I have something similar:
 Mail/in
 Mail/ML/Mutt
 Mail/ML/NEdit
 Mail/ML/Debian/user
 Mail/ML/Debian/misc
 etc.
Mutt's default for saving messages seems to revolve around the From
address (e.g. mail from [EMAIL PROTECTED] wants to save to ~/Mail/foo). Does
anyone have some good ideas about how to manage their mailboxes? What
happens when you have a thread involving multiple people? If you use the
above example, the thread would be destroyed as you save to different
folders. Is there a way to track a thread across different folders
(maybe by message ids)?
You got something wrong. I get most mails from mailing lists (see /ML/
above) and sort them after 'To:' or 'Cc:'. So threads remain
untouched.
If you have a thread with some friends, you can send you a copy of
every mail and keep the thread in your inbox.

Thorsten
-- 
Question Authority!



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-16 Thread David Rock

On Thu, Apr 11, 2002 at 02:51:56PM +0200, Thorsten Haude wrote:
 Hi,
 
 * Kai Weber [EMAIL PROTECTED] [02-04-11 14:32]:
 I am just reorganzing my mail sorting and filtering. I now use a
 structure like that:
 
  Mail/list/mutt-users
  Mail/list/debian-users
  Mail/mail/inbox
  Mail/mail/private
 I have something similar:
 Mail/in
 Mail/ML/Mutt
 Mail/ML/NEdit
 Mail/ML/Debian/user
 Mail/ML/Debian/misc
 etc.

Mutt's default for saving messages seems to revolve around the From
address (e.g. mail from [EMAIL PROTECTED] wants to save to ~/Mail/foo). Does
anyone have some good ideas about how to manage their mailboxes? What
happens when you have a thread involving multiple people? If you use the
above example, the thread would be destroyed as you save to different
folders. Is there a way to track a thread across different folders
(maybe by message ids)?

-- 
David Rock
[EMAIL PROTECTED]



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-12 Thread Kai Weber

+ David T-G [EMAIL PROTECTED]:

 No, but your entire muttrc could be
 
   source /some/cool/script|
 
 and you could have that cool script look thru your procmail file(s) and
 define your hooks, including a default hook, as well as do everything
 else...

Yes, I see the point. This is a good idea. That is a good idea. When its
finished I will show it to the list.

Kai.



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-12 Thread David Champion

* On 2002.04.11, in [EMAIL PROTECTED],
*   Kai Weber [EMAIL PROTECTED] wrote:
 
 Nice idea and sure helps a lot. But in my .procmailrc nearly no folder
 name is used. Most of the stuff is done by $MATCH.
 
 But a script for doing subscribe and list informations for .muttrc
 would be nice.

You might try this:

### End of .procmailrc
:0
* MATCH ?? .
| gdbm.pl $HOME/.mutt/matchdb $MATCH


### End of .muttrc
source acquire-lists.sh |


Files attached. Some assembly required.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago



gdbm.pl
Description: Perl program


acquire-lists.sh
Description: Bourne shell script


Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Kai Weber

Hi all,

I am just reorganzing my mail sorting and filtering. I now use a
structure like that:

Mail/list/mutt-users
Mail/list/debian-users
Mail/mail/inbox
Mail/mail/private
...

(another idea I had was Mail/list/mutt-users/2002-04 but now I archive
my mails monthly by a cron job)

But Mutt seems to have problems recognizing new mails in these folders
if I specify mailboxes like that:

mailboxes `find Mail -type f`

What's wrong with that and how should i tune my settings?

Thanks for your help and brainstorming
Kai.



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Dan Boger

On Thu, Apr 11, 2002 at 02:32:11PM +0200, Kai Weber wrote:
 But Mutt seems to have problems recognizing new mails in these folders
 if I specify mailboxes like that:
 
   mailboxes `find Mail -type f`
 
 What's wrong with that and how should i tune my settings?

could it be that you're specifying your mailboxes relative to your
homedirectory, but not starting mutt from there?  

try mailboxes `find ~/Mail -type f`

HTH!

-- 
Dan Boger
Linux MVP
brainbench.com




msg27025/pgp0.pgp
Description: PGP signature


Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread David T-G

Kai --

...and then Kai Weber said...
% 
% Hi all,

Hello!


% 
% I am just reorganzing my mail sorting and filtering. I now use a
% structure like that:
% 
%   Mail/list/mutt-users
%   Mail/list/debian-users
%   Mail/mail/inbox
%   Mail/mail/private
%   ...

Not bad.


% 
% (another idea I had was Mail/list/mutt-users/2002-04 but now I archive
% my mails monthly by a cron job)

Good idea.


% 
% But Mutt seems to have problems recognizing new mails in these folders
% if I specify mailboxes like that:
% 
%   mailboxes `find Mail -type f`
% 
% What's wrong with that and how should i tune my settings?

I haven't played with this in a while, but I seem to recall some
issues with newlines coming up with the find method vs the echo method.
Check the archives for mailboxes and see what you find.  I know there
are folks doing this sort of thing, but don't remember if there had to
be some magic thrown in.

Meanwhile, if the problem is mutt recognizing these folders at all, is it
only when a new one gets created and you haven't restarted mutt?  You
might need to re-source your .muttrc file.

Finally, if mutt really sees the folders but just never marks them as
updated, look for any other mailchecking program -- biff, buffy, your
shell, or who knows -- that is updating the last-access timestamp on the
file; mutt compares last-access with last-modified and says the folder
has been updated only if the former is later than the latter (if you'll
forgive the tongue twister).  You can test by using more ls options to
compare them yourself, and even fake delivery by updating the mod time
with touch.


% 
% Thanks for your help and brainstorming

HTH  HAND


% Kai.


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg27026/pgp0.pgp
Description: PGP signature


Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Thorsten Haude

Hi,

* Kai Weber [EMAIL PROTECTED] [02-04-11 14:32]:
I am just reorganzing my mail sorting and filtering. I now use a
structure like that:

   Mail/list/mutt-users
   Mail/list/debian-users
   Mail/mail/inbox
   Mail/mail/private
I have something similar:
Mail/in
Mail/ML/Mutt
Mail/ML/NEdit
Mail/ML/Debian/user
Mail/ML/Debian/misc
etc.

This also makes it easy to filter mailing lists with Mail::Audit.

But Mutt seems to have problems recognizing new mails in these folders
if I specify mailboxes like that:

   mailboxes `find Mail -type f`

What's wrong with that and how should i tune my settings?
I use
mailboxes `find ~/Mail -type f -print | grep -Ev '(admin|postponed|archiv)' | 
xargs`

Thorsten
-- 
Fear leads to anger. Anger leads to hate. Hate leads to
using Windows for mission-critical applications.



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Johan Almqvist

* Kai Weber [EMAIL PROTECTED] [020411 14:32]:
 I am just reorganzing my mail sorting and filtering. I now use a
 structure like that:
   Mail/list/mutt-users
   Mail/list/debian-users
   Mail/mail/inbox
   Mail/mail/private
   ...

Have you tried

mailboxes `echo ~/Mail/*/*`

?

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread darren chamberlain

* Johan Almqvist [EMAIL PROTECTED] [2002-04-11 09:44]:
 * Kai Weber [EMAIL PROTECTED] [020411 14:32]:
  I am just reorganzing my mail sorting and filtering. I now use a
  structure like that:
  Mail/list/mutt-users
  Mail/list/debian-users
  Mail/mail/inbox
  Mail/mail/private
  ...
 
 Have you tried
 
 mailboxes `echo ~/Mail/*/*`

That assumes he only has one level of subdirectories, but he mentioned
~/Mail/lists/mutt-users/2002-04 (or similar), so that's not necessarily
true.

If the problem is the newlines, as someone suggested, give this a try:

  mailboxes `echo \`find ~/Mail -type f -print\``

which gives me a full list with no newlines.

The nested backticks are ugly; if you are on a machine where your shell
is bash (or bash disguising itself as /bin/sh) try:

  mailboxes `echo $(find ~/Mail -type f -print)`

Although that's completely untested, it seems that it would work if the
shell understands the $() syntax, since everything in `` is passed to
the shell.

(darren)

-- 
How you look depends on where you go.



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Kai Weber

+ Thorsten Haude [EMAIL PROTECTED]:

 What's wrong with that and how should i tune my settings?
 I use
 mailboxes `find ~/Mail -type f -print | grep -Ev '(admin|postponed|archiv)' | 
xargs`

Thank you all for your tips. Seems I forgot to set the mailboxes
relativly to $HOME. Now it seems to work. And Thorsten's idea to leave
out some mailboxes with an inverted grep is very good.

Now I can go on configuring the beast. I have to find an easy way to
cleanup/archiving the mailboxes...

Kai.



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Thorsten Haude

Hi,

* darren chamberlain [EMAIL PROTECTED] [02-04-11 16:03]:
If the problem is the newlines, as someone suggested, give this a try:

  mailboxes `echo \`find ~/Mail -type f -print\``

which gives me a full list with no newlines.
This can also be done with xargs(1), see my other mail in this thread.

Thorsten
-- 
Nichts ist schwerer und erfordert mehr Charakter, als sich in offenem
Gegensatz zu seiner Zeit zu befinden und zu sagen: Nein!
- Kurt Tucholsky



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Kai Weber

+ Dan Sully [EMAIL PROTECTED]:

  mailboxes `find Mail -type f`
 
 If you are using procmail - this script might be useful.
 
 #!/usr/bin/perl -w
 [...]

Nice idea and sure helps a lot. But in my .procmailrc nearly no folder
name is used. Most of the stuff is done by $MATCH.

But a script for doing subscribe and list informations for .muttrc
would be nice.

(For my own .muttrc which I just reorganize/start again I think of
folder-hooks which load files with settings appending to the current
folder. Let's say I go to the mutt-users folder. The folder-hook sources
a script mutt-users.rc with all the settings. The question is: how to
make a default-setting for folders where no folderxy.rc exist?

folder-hook regexp source settings_file_according_to_match

The line above should be the only folder-hook line that does it all. It
is impossible, as far as I see. The $match cannot be used in a script I
guess?!)

Kai.



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread David T-G

Kai --

...and then Kai Weber said...
% 
% + Dan Sully [EMAIL PROTECTED]:
% 
% mailboxes `find Mail -type f`
%  
%  If you are using procmail - this script might be useful.
%  
%  #!/usr/bin/perl -w
%  [...]
% 
% Nice idea and sure helps a lot. But in my .procmailrc nearly no folder
% name is used. Most of the stuff is done by $MATCH.

Yeah, I wondered how some of the more procmail-aware people would deal
with that.


% 
% But a script for doing subscribe and list informations for .muttrc
% would be nice.
...
%   folder-hook regexp source settings_file_according_to_match
% 
% The line above should be the only folder-hook line that does it all. It
% is impossible, as far as I see. The $match cannot be used in a script I
% guess?!)

No, but your entire muttrc could be

  source /some/cool/script|

and you could have that cool script look thru your procmail file(s) and
define your hooks, including a default hook, as well as do everything
else...


% 
% Kai.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg27085/pgp0.pgp
Description: PGP signature