Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-13 Thread John Summerfield
James Sinnamon wrote:
Thanks everyone for all your ideas.  My previously unmanageable
Mail directory will be manageable again very soon, but right now 
I will be putting it on hold until I get my own Mailman server 
working.

Some further questions (feel welcome to post any response to 
debian-user):

On Mon, 12 Jul 2004 09:17 pm, John Summerfield wrote:
 

Better, turn on Kmail's expiration processing.
   

Where do I find this? What sub-menu? Does it allow me the option of putting
e-mails into an archive, or does it just purge them?
 

Choose a folder
Click Folder on the menu bar, choose properties.
Read the form.
I think it gets plonked.
You can also get the dialogue by right-clicking the folder.
 

Somewhere else, you get to choose _when_ it expires. Probably you don't 
want it asking silly questions all the time, or having to wait an hour 
or two:-)


--
Cheers
John
-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-12 Thread s. keeling
Incoming from Karsten M. Self:
 :0
 * (^TO|^X-Mailing-List:.*)debian
 {
 
 :0:
 * ^X-Mailing-List:[EMAIL PROTECTED]
 $LISTDIR/Debian/debian-openoffice/

With a little care, you might replace all of the latter with one
recipe:

  :0:
  * ^X-Mailing-List:.*debian-\/@lists\.debian\.org
  $LISTDIR/Debian/debian-${MATCH}/


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)   http://www.spots.ab.ca/~keeling 
- -


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-12 Thread s. keeling
Incoming from James Sinnamon:
 Karsten and others,
 
 Firstly, thank you all for the responses.
 
 On Mon, 12 Jul 2004 02:35 pm, Karsten M. Self wrote:
  on Sun, Jul 11, 2004 at 07:18:55PM +1000, James Sinnamon 
 snip/
So could anyone tell me how they handle ever growing Mail 
   folders?  Perhaps 'mutt' is the way to go?
 
  Procmail, or its equivalents.
  snip/
 
 On Sun, 11 Jul 2004 10:32 pm, S.D.A. wrote:
  What I do, is use a nice little utility called archivemail and set it up
 
 I take it that archivemail can handle mail folders and files which are

I don't know what he uses for archiving mail, but a shell script
wrapped around gzip that appends mail to a gzip archive works well.
cron runs mine:

  --
PATH=/usr/bin:/bin
MAILDIR=/home/keeling/Mail
YEAR=$(date '+%Y')

for f in abuse headhunters headhunter_reply procmail root spamcop-reports spam; do
   if [ -e ${MAILDIR}/${f} ]; then
  cat ${MAILDIR}/${f} | gzip  /home/keeling/dox/archive_Mail/${YEAR}_Mail_${f}.gz
  sleep 2
  sync ; sync ; sync
  echo ${0}: archived ${f} to: \$HOME/dox/archive_Mail/${YEAR}_Mail_${f}.gz
  cat /dev/null  ${MAILDIR}/${f}
   fi
done
  --

If your MUA (mutt?) is smart enough, it can even read gzipped mail
folders. 


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)   http://www.spots.ab.ca/~keeling 
- -


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-12 Thread Karsten M. Self
on Sun, Jul 11, 2004 at 07:18:55PM +1000, James Sinnamon ([EMAIL PROTECTED]) wrote:
 Dear List,
 
 My ${HOME}/Mail directory is currently nearly 350 Megs in size.  
 A lot of it is due to high volume mailing lists such as debian-user  
 (48 Meg so far), and this can only get much worse as I join more 
 and more high volume lists.
 
 So could anyone tell me how they handle ever growing Mail
 folders?  Perhaps 'mutt' is the way to go?
 
 I had thought of splitting the {HOME}/Mail into two and
 run a second instance of Kmail, with a different profile,
 to handle the mailing lists, but KMail doesn't seem to allow
 for this as far as I can tell (perhaps for some good reason).

What you want is procmail (or a similar utility).


There's a long history of tools in 'Nix for managing email.  Filtering
stuff to mailboxes by various criteria is only one side of it.

My own procmail recipies:

  - Add some useful headers to mail
  - Filter list mail to folders.
  - Deal with some high-priority mail (goes straight to my inbox).
  - Keeps track of senders who are on white or grey lists (or a couple
of others).
  - Handles spam with the addition of spamassassin.

You can do all sorts of stuff, including forwarding mail, executing
programs, and whatnot.  The syntax is slighly (ok, very) arcane, but
powerful.

There's a good set of prepared recipies in the spamtools package,
based on Lars Wirzenius's procmail filters.  Do *not* enable the
autoreply feature, but learn from the rest of it.

My own filters run over 24 files and 2000 lines, though most of it I
don't have to mess with (actually, splitting it into that many files
makes it easier to handle).

A small portion of my list management rules follows.  It handles my
Debian list mail.  The first rule identifies the lists globally, the
subsequent rules apply *only* to mail meeting the first, and drops mail
into the appropriate folder.


:0
* (^TO|^X-Mailing-List:.*)debian
{

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-openoffice/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-qa/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-private/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-changes/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-policy/

:0:
* ^X-Mailing-List:.*debian-(admintool|devel)@lists.debian.org
$LISTDIR/Debian/debian-devel/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-user/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-bugs/

# Debian Laptop
:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-laptop/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-security/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-pilot/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-devel/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-firewall/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-python/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-testing/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-bugs/

:0:
* 1^0 (^TO|^X-Mailing-List:.*)[EMAIL PROTECTED]
* 1^0 (^TO|^X-Mailing-List:.*)[EMAIL PROTECTED]
$INBOX

# Catch-all
:0:
$INBOX
}


Peace.

-- 
Karsten M. Self [EMAIL PROTECTED]http://kmself.home.netcom.com/
 What Part of Gestalt don't you understand?
   The opposite of increment is excrement.
   - Seen on Usenet, so it must be true.


signature.asc
Description: Digital signature


Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-12 Thread John Summerfield
Karsten M. Self wrote:
on Sun, Jul 11, 2004 at 07:18:55PM +1000, James Sinnamon ([EMAIL PROTECTED]) wrote:
 

Dear List,
My ${HOME}/Mail directory is currently nearly 350 Megs in size.  
A lot of it is due to high volume mailing lists such as debian-user  
(48 Meg so far), and this can only get much worse as I join more 
and more high volume lists.

So could anyone tell me how they handle ever growing Mail
folders?  Perhaps 'mutt' is the way to go?
I had thought of splitting the {HOME}/Mail into two and
run a second instance of Kmail, with a different profile,
to handle the mailing lists, but KMail doesn't seem to allow
for this as far as I can tell (perhaps for some good reason).
   

What you want is procmail (or a similar utility).
 

Better, turn on Kmail's expiration processing.

--
Cheers
John
-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-12 Thread Karsten M. Self
on Mon, Jul 12, 2004 at 12:05:10AM -0600, s. keeling ([EMAIL PROTECTED]) wrote:
 Incoming from Karsten M. Self:
  :0
  * (^TO|^X-Mailing-List:.*)debian
  {
  
  :0:
  * ^X-Mailing-List:[EMAIL PROTECTED]
  $LISTDIR/Debian/debian-openoffice/
 
 With a little care, you might replace all of the latter with one
 recipe:
 
   :0:
   * ^X-Mailing-List:.*debian-\/@lists\.debian\.org
   $LISTDIR/Debian/debian-${MATCH}/

Nick Moffitt's posted a similar recipie which matches on pretty much all
the common (and otherwise) list serv software headers, and
automagickally filters the mail accordingly.  Pretty slick, all told.

But I drive stick.


Peace.

-- 
Karsten M. Self [EMAIL PROTECTED]http://kmself.home.netcom.com/
 What Part of Gestalt don't you understand?
   Moderator, Free Software Law Discussion mailing list:
 http://lists.alt.org/mailman/listinfo/fsl-discuss/


signature.asc
Description: Digital signature


Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-12 Thread Karsten M. Self
on Mon, Jul 12, 2004 at 03:49:25PM +1000, James Sinnamon ([EMAIL PROTECTED]) wrote:
 Karsten and others,
 
 Firstly, thank you all for the responses.

NP.
 
 On Mon, 12 Jul 2004 02:35 pm, Karsten M. Self wrote:
  on Sun, Jul 11, 2004 at 07:18:55PM +1000, James Sinnamon 
 snip/
So could anyone tell me how they handle ever growing Mail 
   folders?  Perhaps 'mutt' is the way to go?
 
  Procmail, or its equivalents.

...

 Of course you would be aware that Kmail's filtering capabilities 
 can do something similar to what is done above.  Do you use procmail 
 instead of, or as a complement to, a GUI e-mail client such as Kmail?

The difference is this:

  - If you use KMail's filtering tools, when you decide to switch to
another mail client (permanently or temporarially), you lose the
filtering.

  - If you use procmail, your filters are independent of your mailer.  I
can access my mail with mutt, balsa, kmail, evolution, or the shell.
Procmail doesn't care.

This is the advantage of proper scoping and modularization of tools.
It's a powerful concept.
 
 
 I take it that archivemail can handle mail folders and files which are
 already broken down in to sub-folders, such as mine, some of which
 are shown below?

Procmail reads messages from stdin.  Generally as the mail is delivered.
So that when you open your mail client, the mail is filtered and waiting
for you.

You can also (re)filter existing mailboxes by various means.


Peace.

-- 
Karsten M. Self [EMAIL PROTECTED]http://kmself.home.netcom.com/
 What Part of Gestalt don't you understand?
GNOME (and real UI developers) READ THIS:
http://use.perl.org/~btilly/journal/18678


signature.asc
Description: Digital signature


Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-12 Thread John Summerfield
Karsten M. Self wrote:
on Mon, Jul 12, 2004 at 03:49:25PM +1000, James Sinnamon ([EMAIL PROTECTED]) wrote:
 

Karsten and others,
Firstly, thank you all for the responses.
   

NP.
 

On Mon, 12 Jul 2004 02:35 pm, Karsten M. Self wrote:
   

on Sun, Jul 11, 2004 at 07:18:55PM +1000, James Sinnamon 
 

snip/
   

So could anyone tell me how they handle ever growing Mail 
 

folders?  Perhaps 'mutt' is the way to go?
   

Procmail, or its equivalents.
 

...
 

Of course you would be aware that Kmail's filtering capabilities 
can do something similar to what is done above.  Do you use procmail 
instead of, or as a complement to, a GUI e-mail client such as Kmail?
   

The difference is this:
 - If you use KMail's filtering tools, when you decide to switch to
   another mail client (permanently or temporarially), you lose the
   filtering.
 

It's a standard kmail feature. Most people do not want to come to terms 
with procmail: I've used it, I had some pretty fancy filters that could 
spot most mailing lists, even those I'd never seen before, and drop the 
email into the appropriate folder, creating it if necessary.

Of course, if I changed email client I'd have to change those filters 
too, because the email folder format would likely be different.

Now I have an IMAP email service where per-user procmail filters are not 
possible.

At the time I was using procmail, using it with kmail was unsafe - the 
authors said so.

 - If you use procmail, your filters are independent of your mailer.  I
   can access my mail with mutt, balsa, kmail, evolution, or the shell.
   Procmail doesn't care.
This is the advantage of proper scoping and modularization of tools.
It's a powerful concept.
 

Procmail is fine for handling email at the time of delivery. In this 
case, the email's already in the folders.Kmail folders. Kmail can expire 
old email, all by itself.


--
Cheers
John
-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



OT: Managing huge Mail/ folders (with mutt?)

2004-07-11 Thread James Sinnamon
Dear List,

My ${HOME}/Mail directory is currently nearly 350 Megs in size.  
A lot of it is due to high volume mailing lists such as debian-user  
(48 Meg so far), and this can only get much worse as I join more 
and more high volume lists.

So could anyone tell me how they handle ever growing Mail
folders?  Perhaps 'mutt' is the way to go?

I had thought of splitting the {HOME}/Mail into two and
run a second instance of Kmail, with a different profile,
to handle the mailing lists, but KMail doesn't seem to allow
for this as far as I can tell (perhaps for some good reason).

TIA,

James

-- 
James Sinnamon
[EMAIL PROTECTED] net au 
+61 412 319669, +61 2 95692123
(aka jaymz-.a.t.-bigpond-net-auStralia)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-11 Thread S.D.A.
On Sun, Jul 11, 2004 at 07:18:55PM +1000 or thereabouts, James Sinnamon wrote:
 Dear List,
 
 My ${HOME}/Mail directory is currently nearly 350 Megs in size.  
 A lot of it is due to high volume mailing lists such as debian-user  
 (48 Meg so far), and this can only get much worse as I join more 
 and more high volume lists.
 
 So could anyone tell me how they handle ever growing Mail
 folders?  Perhaps 'mutt' is the way to go?
 
 I had thought of splitting the {HOME}/Mail into two and
 run a second instance of Kmail, with a different profile,
 to handle the mailing lists, but KMail doesn't seem to allow
 for this as far as I can tell (perhaps for some good reason).

What I do, is use a nice little utility called archivemail and set it up via
CRON to archive my mail folders (mbox) at least once a month. Then I use another
utility called grepmail which can search both my active mboxes and the
compressed archived mail.

-- 
Steve
+
  Sunday Jul 11 2004 08:21:02 AM EDT
+
The human mind treats a new idea the way the body treats a strange
protein -- it rejects it.
-- P. Medawar


pgpBTZLKZLIuz.pgp
Description: PGP signature


Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-11 Thread s. keeling
Incoming from S.D.A.:
 On Sun, Jul 11, 2004 at 07:18:55PM +1000 or thereabouts, James Sinnamon wrote:
  
  My ${HOME}/Mail directory is currently nearly 350 Megs in size.  
  A lot of it is due to high volume mailing lists such as debian-user  
  (48 Meg so far), and this can only get much worse as I join more 
  and more high volume lists.
  
  So could anyone tell me how they handle ever growing Mail
  folders?  Perhaps 'mutt' is the way to go?

Though I use and recommend mutt, it has little to do with this problem.

 What I do, is use a nice little utility called archivemail and set it up via
 CRON to archive my mail folders (mbox) at least once a month. Then I use another
 utility called grepmail which can search both my active mboxes and the
 compressed archived mail.

I do all that too.  However, for the OP, it might be simpler to just
not archive mailing list mail.  You're duplicating lists.debian.org.
If it's all out there in a searchable archive, why do you also need it
on your box?


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)   http://www.spots.ab.ca/~keeling 
- -


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-11 Thread S.D.A.
On Sun, Jul 11, 2004 at 09:23:20AM -0600 or thereabouts, s. keeling wrote:
 Incoming from S.D.A.:
  On Sun, Jul 11, 2004 at 07:18:55PM +1000 or thereabouts, James Sinnamon wrote:

snip

   So could anyone tell me how they handle ever growing Mail
   folders?  Perhaps 'mutt' is the way to go?
 
 Though I use and recommend mutt, it has little to do with this problem.
 
  What I do, is use a nice little utility called archivemail and set it up via
  CRON to archive my mail folders (mbox) at least once a month. Then I use another
  utility called grepmail which can search both my active mboxes and the
  compressed archived mail.
 
 I do all that too.  However, for the OP, it might be simpler to just
 not archive mailing list mail.  You're duplicating lists.debian.org.
 If it's all out there in a searchable archive, why do you also need it
 on your box?

Good point. Personally, I prefer to have an archive locally as opposed to
online, for those occasional times, one can't reach the 'net.

-- 
Steve
+
  Sunday Jul 11 2004 12:26:01 PM EDT
+



pgp1sjNAWyeCA.pgp
Description: PGP signature


Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-11 Thread Kenward Vaughan
On Sun, Jul 11, 2004 at 09:23:20AM -0600, s. keeling wrote:
...
 I do all that too.  However, for the OP, it might be simpler to just
 not archive mailing list mail.  You're duplicating lists.debian.org.
 If it's all out there in a searchable archive, why do you also need it
 on your box?

The letters I hold on to typically have some info I figure I may
want/need later.  I could see holding those locally since searching
them can be much easier/faster than anything online (including Google).

If the OP holds ALL the list mail, then I see that as a waste of space,
and agree with your assessment.  

Time for me to look at those tools... heheh.

Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-11 Thread Karsten M. Self
on Sun, Jul 11, 2004 at 07:18:55PM +1000, James Sinnamon ([EMAIL PROTECTED]) wrote:
 Dear List,
 
 My ${HOME}/Mail directory is currently nearly 350 Megs in size.  
 A lot of it is due to high volume mailing lists such as debian-user  
 (48 Meg so far), and this can only get much worse as I join more 
 and more high volume lists.
 
 So could anyone tell me how they handle ever growing Mail
 folders?  Perhaps 'mutt' is the way to go?

Procmail, or its equivalents.

There's a long, long tradition of tools in 'Nix to automate filtering
(and other processing) of email.  Procmail is one of the traditional
tools for doing this.  You can even start with some largely configured
scripts by installing the spamfilter package (based on Lars Wirzenius's
procmail recipies).

At its simplest, procmail allows you to direct mail into appropriate
buckets by mailing list.   I use mine to additionally:

  - Filter duplicate messages
  - Filter spam
  - Filter out blacklisted addresses/domains
  - Add various headers to mail

It runs to 24 files and 2700+ lines, most of which is largely stock.
Sounds intimidating, but works pretty damned well, and rarely needs
tweaking.  Primary exeptions are the list rules as I subscribe to new
mailing lists (and there are ways to largely automate this, if you trust
headers).

A small section of my own list.rules file, handling Debian mailing
lists, looks like the following.  Basically, it says if this was a
Debian list mail..., then tests for various list signatures and drops
the mail into an appropriate box:


* (^TO)[EMAIL PROTECTED]
$LISTDIR/Debian/debian-bad/

:0
* (^TO|^X-Mailing-List:.*)debian
{

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-openoffice/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-qa/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-private/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-changes/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-policy/

:0:
* ^X-Mailing-List:.*debian-(admintool|devel)@lists.debian.org
$LISTDIR/Debian/debian-devel/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-user/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-bugs/

# Debian Laptop
:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-laptop/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-security/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-pilot/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-devel/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-firewall/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-python/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-testing/

:0:
* ^X-Mailing-List:[EMAIL PROTECTED]
$LISTDIR/Debian/debian-bugs/

:0:
* 1^0 (^TO|^X-Mailing-List:.*)[EMAIL PROTECTED]
* 1^0 (^TO|^X-Mailing-List:.*)[EMAIL PROTECTED]
$INBOX

# Catch-all
:0:
$INBOX
}



Peace.

-- 
Karsten M. Self [EMAIL PROTECTED]http://kmself.home.netcom.com/
 What Part of Gestalt don't you understand?
GNOME (and real UI developers) READ THIS:
http://use.perl.org/~btilly/journal/18678


signature.asc
Description: Digital signature


Re: OT: Managing huge Mail/ folders (with mutt?)

2004-07-11 Thread James Sinnamon
Karsten and others,

Firstly, thank you all for the responses.

On Mon, 12 Jul 2004 02:35 pm, Karsten M. Self wrote:
 on Sun, Jul 11, 2004 at 07:18:55PM +1000, James Sinnamon 
snip/
   So could anyone tell me how they handle ever growing Mail 
  folders?  Perhaps 'mutt' is the way to go?

 Procmail, or its equivalents.
snip/
 A small section of my own list.rules file, handling Debian mailing
 lists, looks like the following.  Basically, it says if this was a
 Debian list mail..., then tests for various list signatures and drops
 the mail into an appropriate box:

 
 * (^TO)[EMAIL PROTECTED]
 $LISTDIR/Debian/debian-bad/

 :0

 * (^TO|^X-Mailing-List:.*)debian
 {

 :0:

 * ^X-Mailing-List:[EMAIL PROTECTED]
 $LISTDIR/Debian/debian-openoffice/

 :0:

 * ^X-Mailing-List:[EMAIL PROTECTED]
 $LISTDIR/Debian/debian-qa/

snip/
 :0:

 * 1^0 (^TO|^X-Mailing-List:.*)[EMAIL PROTECTED]
 * 1^0 (^TO|^X-Mailing-List:.*)[EMAIL PROTECTED]
 $INBOX

 # Catch-all

 :0:

 $INBOX
 }
 
Thanks for the explanation of procmail and the example. 

Of course you would be aware that Kmail's filtering capabilities 
can do something similar to what is done above.  Do you use procmail 
instead of, or as a complement to, a GUI e-mail client such as Kmail?

On Sun, 11 Jul 2004 10:32 pm, S.D.A. wrote:
 What I do, is use a nice little utility called archivemail and set it up
 via CRON to archive my mail folders (mbox) at least once a month. Then I
 use another utility called grepmail which can search both my active
 mboxes and the compressed archived mail.

I take it that archivemail can handle mail folders and files which are
already broken down in to sub-folders, such as mine, some of which
are shown below?

---
  me:Mail$ find .
  .
  ./inbox
  ./.inbox.index
  ./outbox
  ./.outbox.index
  ./sent-mail
  ./.sent-mail.index
  ./trash
  ./.trash.index
  ./drafts
  ./.drafts.index

  ...

  ./.lists.directory

  ...

  ./.lists.directory/zope
  ./.lists.directory/zope/new
  ./.lists.directory/zope/cur
  ./.lists.directory/zope/cur/1084688626.13214.23Wk:2,S
  ./.lists.directory/zope/cur/1084707019.13214.qrEX:2,S

  ...

  ./.lists.directory/zope/cur/1087378026.2080.H4Yb:2,S
  ./.lists.directory/zope/tmp
  ./.lists.directory/.zope.index
  ./.lists.directory/.zope.index.ids

  ...

  ./.lists.directory/debian-user
  ./.lists.directory/debian-user/new
  ./.lists.directory/debian-user/cur
  ./.lists.directory/debian-user/cur/1085365323.1786.Ui0D:2,S
  ./.lists.directory/debian-user/cur/1085365323.1786.Ejn3:2,S

  ...

  ./.djvm.index.sorted
  ./.srec.index.sorted
  ./.tmp.index.sorted

---

Thanks again all,

regards,

James

-- 
James Sinnamon
[EMAIL PROTECTED] net au 
+61 412 319669, +61 2 95692123
(aka jaymz-.a.t.-bigpond-net-auStralia)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Shared IMAP folders in Mutt

2004-03-03 Thread Alex Malinovich
I've set up my Bayesian filter to scan two shared IMAP folders for ham
and spam. Using evolution, when I get spam, I can just Move it to the
shared spam folder and that's that. However, in mutt, I can't seem to
access shared IMAP folders. So what can I do to move spam in there? I
know that people usually use Bounce in mutt for spam filtering, but as
the folder is a shared folder and not an actual account, I can't do
that. Any suggestions? TIA.
-- 
Alex Malinovich
Support Free Software, delete your Windows partition TODAY!
Encrypted mail preferred. You can get my public key from any of the
pgp.net keyservers. Key ID: A6D24837



signature.asc
Description: This is a digitally signed message part


Re: Shared IMAP folders in Mutt

2004-03-03 Thread CW Harris
On Wed, Mar 03, 2004 at 02:44:37PM -0600, Alex Malinovich wrote:
 I've set up my Bayesian filter to scan two shared IMAP folders for ham
 and spam. Using evolution, when I get spam, I can just Move it to the
 shared spam folder and that's that. However, in mutt, I can't seem to
 access shared IMAP folders. So what can I do to move spam in there? I

Tag the messages and save them to the IMAP folder?  I haven't tried
this, but it seems it should work.  Note the mutt syntax for imap access
imap://user@imap.server/INBOX

See the mutt docs for more details and possible IMAP problems.

Or maybe I'm completely missing your question?

 know that people usually use Bounce in mutt for spam filtering, but as
 the folder is a shared folder and not an actual account, I can't do

I just save them to a folder in my home directory.

 that. Any suggestions? TIA.
 -- 
 Alex Malinovich
 Support Free Software, delete your Windows partition TODAY!
 Encrypted mail preferred. You can get my public key from any of the
 pgp.net keyservers. Key ID: A6D24837
 



-- 

Chris Harris [EMAIL PROTECTED]
---
GNU/Linux --- The best things in life are free.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Shared IMAP folders in Mutt

2004-03-03 Thread Alex Malinovich
On Wed, 2004-03-03 at 15:17, CW Harris wrote:
 On Wed, Mar 03, 2004 at 02:44:37PM -0600, Alex Malinovich wrote:
  I've set up my Bayesian filter to scan two shared IMAP folders for ham
  and spam. Using evolution, when I get spam, I can just Move it to the
  shared spam folder and that's that. However, in mutt, I can't seem to
  access shared IMAP folders. So what can I do to move spam in there? I
 
 Tag the messages and save them to the IMAP folder?  I haven't tried
 this, but it seems it should work.  Note the mutt syntax for imap access
   imap://user@imap.server/INBOX

Well, you didn't solve the problem outright but you got me looking in
the right direction at least. :) I decided to actually look at my
Maildir by hand, and what do I see inside but a directory called
shared-folders. Apparently when I subscribed to the shared folders via
Evolution, the appropriate folders were made within my Maildir. So now
it's just a matter of copying the files over into
=shared-folders/Bayes/IsSpam and I'm all set. Thanks! :)

-- 
Alex Malinovich
Support Free Software, delete your Windows partition TODAY!
Encrypted mail preferred. You can get my public key from any of the
pgp.net keyservers. Key ID: A6D24837



signature.asc
Description: This is a digitally signed message part


Re: Folders in Mutt

2001-07-23 Thread will trillich
On Wed, Jul 18, 2001 at 01:02:13PM -0700, Paul Mackinney wrote:
 - Nothing ever gets put in my /var/spool/mail/username mbox file, it 
 all gets diverted to one of the mboxes listed. The only bummer is that my
 mailcheck at login always says no mail... because I haven't booked 
 up on the consequences of hacking my MAIL_DIR variable or the default
 login behavior. I've considered replacing /var/spool/mail/username
 with a symlink to ~/Mail/inbox, but since it ain't broken...

instead of the mailcheck thing, if you use procmail you can use
mailstat instead:

$ mailstat ~/path/to/logfile
  Total  Number Folder
  -  -- --
  67964   6 JUNK-O-RAMA
   2649   2 cron
1304826 442 debian-user
   2835   1 domain-dontuthink.com
 469406   3 easyDXFtype
  24138   4 gunk
  27406  10 mperl
 395912 134 pg-general
  20556  26 root
   2759   2 serensoft
   2221   1 webmaster-serensoft.com
  -  --
2538441 684

it'll tell how how many (after how much!) went into each folder,
thanks to procmail. (of course, mailstat COMES with procmail;
i.e. apt-get install procmail to get it.)

or if you're sick of procmail, you can use the much more
friendly exim filters (~/.forward files starting with '# Exim
filter') instead, as long as you log correctly:

# Exim filter
logfile $home/path/to/logfile 0600
# ...
if some condition then
deliver SomeFolderOrOther
logwrite From $return_path $tod_log\n Subject: $h_subject:\n  
Folder: SomeFolderOrOther\t\t\t  $message_size
elif another condition then
# ...

-- 
DEBIAN NEWBIE TIP #79 from USM Bish [EMAIL PROTECTED]
:
When using a display manager (xdm, kdm, gdm) are your SHELL
DEFAULTS IGNORED IN X?  Just add 'source /etc/profile' to
~/.bashrc... or duplicate /etc/profile in ~/.profile

Also see http://newbieDoc.sourceForge.net/ ...



Re: follow-up to my queries on folders in mutt

2001-07-21 Thread Paul Mackinney
Sam Varghese muttered:
 thanks to those who responded to my query about
 getting folders organised in mutt. i now actually
 have folders - though i can only save manually.
 ideally, i would like all read material to go
 into a folder once i log out.
 
 i also found that some of the syntax which i came
 across in .muttrc files on the web does not do
 what it is supposed to. i use mutt to download
 and read my mail with exim doing the smtp bit.
 i wanted to automate the mail checks but the
 syntax set pop_checkinterval=60 doesn't appear
 to be valid.
 
 i am using version 1.2.5i on potato.
 
 sam
 -- 
Sam,

Did you try a .forward file? Exim downloads my mail and put's in the
mailboxes I specify. Also, check out the contents of /etc/cron
and the /etc/cron.d folder, this is where automatic mail checking is
scheduled.
-- 
Paul Mackinney
[EMAIL PROTECTED]



follow-up to my queries on folders in mutt

2001-07-20 Thread Sam Varghese
thanks to those who responded to my query about
getting folders organised in mutt. i now actually
have folders - though i can only save manually.
ideally, i would like all read material to go
into a folder once i log out.

i also found that some of the syntax which i came
across in .muttrc files on the web does not do
what it is supposed to. i use mutt to download
and read my mail with exim doing the smtp bit.
i wanted to automate the mail checks but the
syntax set pop_checkinterval=60 doesn't appear
to be valid.

i am using version 1.2.5i on potato.

sam
-- 
(Sam Varghese)
http://www.gnubies.com



Folders in Mutt

2001-07-18 Thread Sam Varghese
I am a newbie to mutt - after flirting with a
dozen or more GUI mail programs.

I have managed to configure most of what I want in
mutt but the setting up of folders just beats me.

I'd like to have a few folders into which I can
move mail after reading but if the mail supposed to
go there does so automatically I wouldn't mind either.

I'd appreciate feedback from any mutt user on this
list.

Sam
-- 
(Sam Varghese)
http://www.gnubies.com



Re: Folders in Mutt

2001-07-18 Thread Stephen Rueger
On Wed, Jul 18, 2001 at 04:37:57PM +1000, Sam Varghese wrote:
 I am a newbie to mutt - after flirting with a
 dozen or more GUI mail programs.
 
 I have managed to configure most of what I want in
 mutt but the setting up of folders just beats me.
 
 I'd like to have a few folders into which I can
 move mail after reading but if the mail supposed to
 go there does so automatically I wouldn't mind either.

Either use procmail (as I do) or use mbox-hooks. The difference is, that
procmail sorts everything in the right folder before you see it and
mbox-hooks after that.
 
 I'd appreciate feedback from any mutt user on this
 list.

greetz

Stephen Rueger

-- 
Registered Linux User #205361
  (http://counter.li.org)



Re: Folders in Mutt

2001-07-18 Thread Rebecca Dridan
On Wed, Jul 18, 2001 at 04:37:57PM +1000, Sam Varghese wrote:
 I am a newbie to mutt - after flirting with a
 dozen or more GUI mail programs.
 
 I have managed to configure most of what I want in
 mutt but the setting up of folders just beats me.
 
 I'd like to have a few folders into which I can
 move mail after reading but if the mail supposed to
 go there does so automatically I wouldn't mind either.

I have a fairly basic Mutt setup. If I want to save a message to a folder I
just press s, then the name of the folder.  Folders are all under ~/mail/
If the folder doesn't exist, it asks whether it should create it.

I've included the relevant bits of my .muttrc below, the mailboxes line sets
which mailboxes/folders will be checked for new mail.

There are lots of web sites around with good examples of .muttrc files.  I'm
sure someone will chime in with URLs.

To automatically sort the mail when it is received, I use procmail, but there
are better people on the list to explain procmail setup.

HTH

Bec

--- .muttrc ---

set tmpdir=~/tmp # directory for temporary files 
set folder=~/mail  # directory with all mail folders
set postponed=~/mail/postponed-msgs


set alias_file=~/.mutt.aliases
source ~/.mutt.aliases

folder-hook . set sort=mailbox-order

folder-hook debian- set sort=threads
folder-hook systers set sort=threads

mailboxes ! =rootmail =debian-announce =debian-news =flite =systers-students 
=systers =debian-devel =debian-user =auscert 


## 
## VARIABLES:
## 

set confirmcreate  # set: prompt for confirmation on creation of folders

---



Re: Folders in Mutt

2001-07-18 Thread Michael Perry
Quoting Sam Varghese on Wed, Jul 18, 2001 at 04:37:57PM +1000:
 I am a newbie to mutt - after flirting with a
 dozen or more GUI mail programs.
 
 I have managed to configure most of what I want in
 mutt but the setting up of folders just beats me.
 
 I'd like to have a few folders into which I can
 move mail after reading but if the mail supposed to
 go there does so automatically I wouldn't mind either.
 
 I'd appreciate feedback from any mutt user on this
 list.
 
 Sam
 -- 
 (Sam Varghese)
 http://www.gnubies.com
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 
Hi-

I do a few different things with mutt.  One is to manage multiple POP email
accounts inside one set of files.  My main way of moving mail is to use
procmail recipes to move mail into associated files.  Then one can write
mbox-hook commands in a .muttrc file to manage those files.  One thing I do
is use mbox-hooks to move read mail in mailing lists to an oldmail
directory and then purge those old files after a set time goes by.  One can
do all of the above with a variable set of folder-hooks and mbox-hook files. 
A good resource for muttrc's and mutt in general is www.mutt.org and check
out folks' different muttrc files.  Another good one is www.dotfile.org I
believe.  It contains various and sundry dotfiles for preview or download.


-- 
Michael Perry
[EMAIL PROTECTED]




Re: Folders in Mutt

2001-07-18 Thread William Morris
Sam

I am no expert with mutt, but I use the 's' command to save to a mailbox.
After hitting s, mutt prompts with the name of a mailbox and I can then 
change it if I want to.

The relevant entries in my ~/.muttrc are:

# Set the directory in which mailboxes will be saved
set folder=~/mail
# Save all outgoing mail to sent-mail under ~/mail
set record=+sent-mail

# Send a copy of mails sent to domain innovation-tk.com to mailbox itk
fcc-hookinnovation-tk.com +itk
# Save mails sent from domain innovation-tk.com to mailbox itk
save-hook   innovation-tk.com +itk

Hope this helps
Regards
-- 
William Morris
[EMAIL PROTECTED]



Re: Folders in Mutt

2001-07-18 Thread Andy Mott
David Turetsky ([EMAIL PROTECTED]) wrote:
 
 To copy mail into a folder (does not overwrite existing mail in that
 folder), just depress C and specify the folder to the resulting dialog
 when viewing that piece of mail, or from the index
 
 To just save the folder copy, depress d, then follow same sequence

-- 8--- (snip)

There's no need for this - simply use 's', and it will save the message to the 
folder you choose, *and* delete the one in your inbox (or wherever).

One useful option when saving is the '?' - it allows you to browse the folders 
in your mail directory, making saving to the right place far easier. It should 
be noted that this doesn't seem to work with IMAP folders (at least I haven't 
managed it yet!)



Re: Folders in Mutt

2001-07-18 Thread David Turetsky
On Wed, Jul 18, 2001 at 04:37:57PM +1000, Sam Varghese muttered:
Sam 
Sam I am a newbie to mutt - after flirting with a
Sam dozen or more GUI mail programs.
Sam 
Sam I have managed to configure most of what I want in
Sam mutt but the setting up of folders just beats me.
Sam 
Sam I'd like to have a few folders into which I can
Sam move mail after reading but if the mail supposed to
Sam go there does so automatically I wouldn't mind either.
Sam 
Sam I'd appreciate feedback from any mutt user on this
Sam list.
Sam 

To copy mail into a folder (does not overwrite existing mail in that
folder), just depress C and specify the folder to the resulting dialog
when viewing that piece of mail, or from the index

To just save the folder copy, depress d, then follow same sequence

I'm still coming up to speed on mutt myself, but the more I use it, the
more I enjoy it. I just about totally abandoned Outlook Express in Windows a 
week ago as I've been able to expand my knowledge of mutt. Press F1 for full 
documentation, then use your editor's search function to explore different 
features. The list is also very helpful

-- 
David
-



Re: Folders in Mutt

2001-07-18 Thread Paul Mackinney
Sam Varghese muttered:
 
 I'd like to have a few folders into which I can
 move mail after reading but if the mail supposed to
 go there does so automatically I wouldn't mind either.
 
- My system is essentially single user, right now I'm only checking one 
POP3 account for incoming mail. I use exim to forward local mail to my
user account (root, webmaster, etc. all go to my Linux username) and to 
send outgoing mail to my ISP's SMTP server. 

- Fetchmail gets my POP3 mail, here are the files I had to set up:

# ~/.fetchmailrc these settings mean that when I log in as username,
# I can just type 'fetchmail' to poll my pop3 account.
poll pop3server.myisp.com proto pop3 user pmackinney is username
# end of file

# /etc/cron.d/fetchmail: crontab fragment for fetchmail
# Run queue every 15 minutes
08,23,38,53 * * * * username   /usr/bin/fetchmail
# end of file

Because of exim  fetchmail, I don't check mail with mutt directly at
all, it's just a reader. The 'c' command to change mbox will
default to the next mbox that has mail, the list of mboxes that it
checks are set up in your muttrc file. I was able to edit this file 
and do all kinds of neat stuff:
/usr/doc/mutt/examples/sample.muttrc.gz

- Here's the .forward file that sorts my incoming mail before I see it. 
I got the example from someone else on this list. THANKS! 

# Exim filter  make sure your .forward file starts like this!
if error_message then
finish
elif $h_Resent-Sender: contains debian then
save $home/Mail/deb.inbox
elif $h_From: contains [EMAIL PROTECTED] then
save $home/Mail/admin
elif $h_List-Id: contains Bay Area Debian then
save $home/Mail/bad.inbox
elif $h_Reply-To: contains linux-beta then
save $home/Mail/rcl.inbox
else
save $home/Mail/inbox
endif
# end of file

- Nothing ever gets put in my /var/spool/mail/username mbox file, it 
all gets diverted to one of the mboxes listed. The only bummer is that my
mailcheck at login always says no mail... because I haven't booked 
up on the consequences of hacking my MAIL_DIR variable or the default
login behavior. I've considered replacing /var/spool/mail/username
with a symlink to ~/Mail/inbox, but since it ain't broken...

 HTH, Paul



Re: Folders in Mutt

2001-07-18 Thread Sam Varghese
On Wed, Jul 18, 2001 at 01:02:13PM -0700, Paul Mackinney wrote:
 - My system is essentially single user, right now I'm only checking one 
 POP3 account for incoming mail. I use exim to forward local mail to my
 user account (root, webmaster, etc. all go to my Linux username) and to 
 send outgoing mail to my ISP's SMTP server. 
 
 - Fetchmail gets my POP3 mail, here are the files I had to set up:

Thanks very much to all those who responded to my query.
I'm floored by the response - I'm new to this list and
the others I subscribe to are rather soporific, to put it
mildly.

I'll experiment with my muttrc over the weekend and report back.

Sam
-- 
(Sam Varghese)
http://www.gnubies.com



Re: folders and mutt

2000-06-22 Thread Will Trillich
On Tue, Jun 20, 2000 at 11:49:12PM +0200, Sven Burgener wrote:
 On Mon, Jun 19, 2000 at 06:47:09PM -0500, Ashley Clark wrote:
 
  Procmail has a lot of flexibility and if you want I'll send you my
  procmail rules which do neat things like eliminating duplicate messages
  based on Message-ID headers and fix archaic PGP message formats
  (---BEGIN PGP MESSAGE--- ... ---END ...---)
 
 Sure if you don't mind, I'd like that.

/lurk

so would i!

   I get to like mutt more and more every day.
  Me too.

me too!



Re: folders and mutt

2000-06-21 Thread kmself
On Sun, Jun 18, 2000 at 11:16:28PM +0200, Sven Burgener wrote:
 Hello list
 
 I wanted to know how to most easily use folders in mutt. It'd be even
 better if that would include the use of procmail. I am still a mutt 
 beginner. I have used procmail a bit though.

It's also helpful to know that mutt used tab completion for both folders
and addresses (something I stumbled on without realizing a couple of
times).  To move a post to a folder, type s=, and the start of the
folder name, say debi, and tab out.  You'll get the unique completion
if it exists, else a list of possible folders from which you can choose.
Saves typing and remembering.

Similar feature works with your alias file on sender, cc, and bcc
recipients.

-- 
Karsten M. Self kmself@ix.netcom.com http://www.netcom.com/~kmself
  Evangelist, Opensales, Inc.   http://www.opensales.org
   What part of Gestalt don't you understand?  Debian GNU/Linux rocks!
 http://gestalt-system.sourceforge.net/  K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595  DC61 3847 889F 55F2 B9B0


pgp3DJqBLPE4l.pgp
Description: PGP signature


Re: folders and mutt

2000-06-21 Thread Sven Burgener
On Wed, Jun 21, 2000 at 10:13:18AM -0700, kmself@ix.netcom.com wrote:

 It's also helpful to know that mutt used tab completion for both folders
 and addresses (something I stumbled on without realizing a couple of

Yes, that is neat. As a bash user who makes excessive use of this
feature on the CLI, I found out quickly. :)

 times).  To move a post to a folder, type s=, and the start of the

I didnt know that though. Thanks.
Mutt is a nice mail agent, I like it.

-- 
S. Burgener
Powered by Debian GNU/Linux 2.2



Re: folders and mutt

2000-06-21 Thread Sven Burgener
On Mon, Jun 19, 2000 at 06:47:09PM -0500, Ashley Clark wrote:

[snip-snip]

 :0:
 * ^X-Loop: [EMAIL PROTECTED]
 * ^X-Loop: debian-\/[EMAIL PROTECTED]
 $DEBIAN/$MATCH

In the above regex, does the [EMAIL PROTECTED] part match anything not starting 
with an '@', correct? What follows doesn't matter, right?

Thanks a lot
-- 
S. Burgener
Powered by Debian GNU/Linux 2.2



Re: folders and mutt

2000-06-20 Thread Sven Burgener
On Mon, Jun 19, 2000 at 06:47:09PM -0500, Ashley Clark wrote:

 * man 5 muttrc
 | spoolfile

Thanks, that's precisely what I needed.

 You can save your procmail logfile into a .procmail directory off your
 $HOME:

Done that, it's now out of the way if you so like. :)

 You can also do this little trick in your .procmailrc:
 
 MAILDIR=$HOME/Mail
 DEBIAN=$MAILDIR/debian
 
 :0:
 * ^X-Loop: [EMAIL PROTECTED]
 * ^X-Loop: debian-\/[EMAIL PROTECTED]
 $DEBIAN/$MATCH

Now, that's just _neat_ as can be. Thanks!

 Procmail has a lot of flexibility and if you want I'll send you my
 procmail rules which do neat things like eliminating duplicate messages
 based on Message-ID headers and fix archaic PGP message formats
 (---BEGIN PGP MESSAGE--- ... ---END ...---)

Sure if you don't mind, I'd like that.

  I get to like mutt more and more every day.
 Me too.

:)

Thanks tons for your help, good stuff.
-- 
S. Burgener
Powered by Debian GNU/Linux 2.2



Re: folders and mutt

2000-06-19 Thread Sven Burgener
On Sun, Jun 18, 2000 at 11:25:43PM +0100, Colin Watson wrote:

 Put all your mail somewhere like a ~/mail directory; then tell procmail
 (or an exim filter) to put inbox mail in ~/mail/inbox, and your other
 folders are stored as files in ~/mail. You can subdivide folders into
 groups by using subdirectories.

Done so. I also added the following to my .procmailrc:

DEFAULT=$HOME/Mail/mbox

This way, my $MAIL file is never greater than 0 bytes - all mail gets
moved out of there. Now, as mutt reads $MAIL by default, I would like 
to know how to change this behaviour. I tried zgrep'ing /usr/dox/mutt 
for this, but have not found anything. ($MAIL is /var/spool/mail/svn)

I dont want to *not* use procmail's DEFAULT as my default inbox is
~/Mail/mbox and not ~/mbox as mutt suggests. (Even if I did use ~/mbox, 
I'd still have to press 'y' instead of just hitting Enter which 
is annoying :))

 'c' in mutt changes from one folder to another. Have a look at the
 'mailboxes' .muttrc command to designate several folders as ones in
 which you expect to receive incoming mail, then hitting 'c' will select
 the next folder with new mail by default.

For this, I have the following in my .muttrc:

mailboxes $HOME/Mail/mbox
mailboxes $HOME/Mail/debian-user
mailboxes $HOME/Mail/debian-isp
mailboxes $HOME/Mail/debian-firewall
mailboxes $HOME/Mail/debian-user-de

Funnily tho, when hitting TAB, I get a listing of the _directory_ 
~/Mail. This way I also see my procmail logfile which I don't want to 
see when I browse through my mails; besides I didn't add it to my 
mailboxes in .muttrc...
Isn't this weird or am I just doing something fundamentally wrong here? :)

I get to like mutt more and more every day.

TIA
Sven
-- 
Powered by Debian GNU/Linux 2.2



Re: folders and mutt

2000-06-19 Thread Ashley Clark
* Sven Burgener in Re: folders and mutt dated 2000/06/19 20:33 wrote:

 On Sun, Jun 18, 2000 at 11:25:43PM +0100, Colin Watson wrote:
 
  Put all your mail somewhere like a ~/mail directory; then tell
  procmail (or an exim filter) to put inbox mail in ~/mail/inbox, and
  your other folders are stored as files in ~/mail. You can subdivide
  folders into groups by using subdirectories.
 
 Done so. I also added the following to my .procmailrc:
 
 DEFAULT=$HOME/Mail/mbox
 
 Now, as mutt reads $MAIL by default, I would like to know how to
 change this behaviour.

* man 5 muttrc
| spoolfile
|  Type: path
|  Default: 
|
|  If your spool mailbox is  in  a  non-default  place where Mutt
|  cannot find it, you can specify its location with this variable. 
|  Mutt will automatically set this variable to the value of the
|  environment variable MAIL if it is not set.

  'c' in mutt changes from one folder to another. Have a look at the
  'mailboxes' .muttrc command to designate several folders as ones in
  which you expect to receive incoming mail, then hitting 'c' will
  select the next folder with new mail by default.
 
 For this, I have the following in my .muttrc:
 
 mailboxes $HOME/Mail/mbox
 mailboxes $HOME/Mail/debian-user
 mailboxes $HOME/Mail/debian-isp
 mailboxes $HOME/Mail/debian-firewall
 mailboxes $HOME/Mail/debian-user-de

You can also specify this in your .muttrc:
set folder=~/Mail
mailboxes ! +mbox +debian-user +debian-isp +debian-etc ...

 Funnily tho, when hitting TAB, I get a listing of the _directory_ 
 ~/Mail. This way I also see my procmail logfile which I don't want to 
 see when I browse through my mails; besides I didn't add it to my
 mailboxes in .muttrc... Isn't this weird or am I just doing something
 fundamentally wrong here? :)

You can save your procmail logfile into a .procmail directory off your
$HOME:

PROCMAILDIR=$HOME/.procmail
LOGFILE=$PROCMAILDIR/procmail.log

You can also do this little trick in your .procmailrc:

MAILDIR=$HOME/Mail
DEBIAN=$MAILDIR/debian

:0:
* ^X-Loop: [EMAIL PROTECTED]
* ^X-Loop: debian-\/[EMAIL PROTECTED]
$DEBIAN/$MATCH

To automatically split any [EMAIL PROTECTED] emails to
$HOME/Mail/debian/*

Procmail has a lot of flexibility and if you want I'll send you my
procmail rules which do neat things like eliminating duplicate messages
based on Message-ID headers and fix archaic PGP message formats
(---BEGIN PGP MESSAGE--- ... ---END ...---)

 I get to like mutt more and more every day.

Me too.

-- 
Ashley Clark

GCS/M d- s:-- a-- C++$ UL$ P L+++ E W++ N+ o K++ w O M V--
PS+(++) PE(++) Y+ PGP++(+++) t* 5+ X+ R* tv b+ DI++ D G e* h* r++ y+

finger [EMAIL PROTECTED] for GPG public keyhttp://ghoti.org/


pgpuqPH0TTu4Q.pgp
Description: PGP signature


folders and mutt

2000-06-18 Thread Sven Burgener
Hello list

I wanted to know how to most easily use folders in mutt. It'd be even
better if that would include the use of procmail. I am still a mutt 
beginner. I have used procmail a bit though.

TIA
Sven
-- 
Powered by Debian GNU/Linux 2.2



Re: folders and mutt

2000-06-18 Thread Colin Watson
[EMAIL PROTECTED] wrote:
I wanted to know how to most easily use folders in mutt. It'd be even
better if that would include the use of procmail. I am still a mutt 
beginner. I have used procmail a bit though.

Put all your mail somewhere like a ~/mail directory; then tell procmail
(or an exim filter) to put inbox mail in ~/mail/inbox, and your other
folders are stored as files in ~/mail. You can subdivide folders into
groups by using subdirectories.

'c' in mutt changes from one folder to another. Have a look at the
'mailboxes' .muttrc command to designate several folders as ones in
which you expect to receive incoming mail, then hitting 'c' will select
the next folder with new mail by default.

-- 
Colin Watson [EMAIL PROTECTED]