<<< Date Index >>>     <<< Thread Index >>>

Re: Make unread the same as new



dear list!

i had the same problem for long time and still could find now solution!

On Mon, Oct 13, 2003 at 09:33:13AM +0200, Sander Smeenk wrote:
[...]
> One solution for your problem is switching to Maildir/ mailformat.

it's a solution for what? i guess, it's not only about seeing new or 
rather unread mail after reopeing mut, but also about having a solution 
for archiving your mail without having to open one single file with xxx 
MB everytime you want to read your mail. therefore, maildir may be good, 
but at least i want to have this archive in mbox-format.

i use maildir and courier-imap. as i thought it was off-topic, i didn't 
want to post my question here, but now as you mentioned it ... :-)

how do you use maildir for let's say the mail of the last week only and 
archive the rest? i assume deleting mail after a week shouldn't be a 
problem (i could imagine a macro that does this for me), but what about 
the second point? is it okay just to copy you're mails with procmail to 
an mbox and/or filter it seperately?

> I don't know how your mail is delivered to you, but you might consider
> using procmail. If you set things up to deliver in Maildir/ directories
> you can use formail in combination with procmail to 'convert' all your
> mbox mail to the new Maildir/ style.  It should be an easy switch ;)

is the following enough for that purpose? (i know this is not a
procmail-list and i read the archives, but those settings do not always 
work fine and i thought this thread opened a goog opportunity to ask.)

# /etc/procmailrc
# copys incoming mail to an archive folder
:0 c
$LOGNAME/Mail/archived-mails
# Use $HOME/Maildir for use with courier-imap
MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR/
# EOF

> I use Maildir/ and I can see what mailbox contains new mail, even if I
> enter and exit the mailbox without actually reading all the new
> messages. That is because with Maildir/ new mail is stored in a
> different location until read.

again: how can you archive mail in different mbox-folders than? i moved 
the folders cur, new and tmp to $HOME/Mail and did create a softlink 
from $HOME/Mail to $HOME/Maildir, but this was just an act of 
desperation. :-D

in my $HOME/.procmailrc i have:
MAILDIR=$HOME/Mail
DEFAULT=$MAILDIR/mbox
LOCKFILE=$MAILDIR/mbox.lock

and an archive-setting would look like:
# linux-kernel mailing list
:0:
* ^Sender:.*linux-kernel-owner@xxxxxxxxxxxxxxx
archive/linux-kernel
[...]
# Finally, if the above recipes fail to move your mail
# put it in your INBOX
:0:
$DEFAULT
# EOF

of course, i know, that it's not a good idea to set $MAILDIR again with 
a different path, but you know ... (my desperation again *lol*)
what about just using :0 c to copy the files instead of moving them with 
:0: and writing $HOME/Mail/archive/linux-kernel instead of 
archive/linux-kernel or $MAILDIR/archive/linux-kernel (using the above 
example, of course)?

would this make most of us happy? or is this a rather "dirty" solution?

cheerio,
pablo

-- 
Pablo Hoertner                       | LONG LIVE THE RED PENGUIN AND THE
http://www.redtux.at.tf/contact.html | SOCIALIST WORKERS' WORLD REVOLUTION!

Attachment: signature.asc
Description: Digital signature