logo       

Re: Stop muttng from reading ~/Maildir on its own: msg#00065

mail.mutt.mutt-ng.user

Subject: Re: Stop muttng from reading ~/Maildir on its own

On Thu, 08.09.2005 at 23:08:27 +0000, Rocco Rutte wrote:
> How do you invoke all this? Via some macro? What did you mean by 'reset'? Do
> you just
> change the values via 'set folder=foo' or really reset them via 'reset
> folder'?

Ok, I wrote my setup in another mail, which I then sent to the wrong
list address, here it is in a nutshell:

env:
MAILDIR=/home/q/Maildir

muttngrc:
macro index <f4> "<enter-command>source .mutt/remoteconfig<enter>\
<enter-command>source .mutt/mailboxes<enter>\
<enter-command>source .mutt/folder-hooks<enter>\
<enter-command>source .mutt/fcc-hooks<enter>" "Remote Maildir"
macro index <f5> "<enter-command>source .mutt/localconfig<enter>\
<enter-command>source .mutt/mailboxes<enter>\
<enter-command>source .mutt/folder-hooks<enter>\
<enter-command>source .mutt/fcc-hooks<enter>" "Local Maildir"

(don't wonder about ".mutt" these files reside still in my .mutt dir.

localconfig look like this:
set mbox_type="Maildir"
set folder="~/Maildir"
set mbox="~/Maildir"

remoteconfig:
set mbox_type="Maildir"
set folder="/home_remote/q/Maildir"
set mbox="/home_remote/q/Maildir"

Where /home_remote/ is my NFS mounted home "backup".

mailboxes:
unmailboxes *
mailboxes \
+ \
+ls3 \
+stuff \
+muttng \
...

Apart from unmailboxes not working, I still think there is another bug.
After starting muttng (it will start with the "localconfig") the sidebar
displays the folders like this:
0
ls3 62
ls3/da 74[1]
ls3/poseidon 83
...

yes, the first line is empty and it's telling me there are now mails,
that was not the case with the "old" muttng. Now pressing F4 as defined
above I get the following:

Maildir 0
ls3 62
da 74[1]
poseidon 83
...
0
ls3 0
ls3/da 0
ls3/poseidon 0

As you can see, the names have changed back to the last part of the path
(which is good, and the way it has always been), and the old mailboxes
are still there. The mail count for the "root" maildir is off, and gets
updated, as soon as I switch the current folder, to the real "=" mailbox
(which is now /home_remote/q/Maildir).

The count for poseidon is also off, as the email count obviously doesn't
get updated at all.

I then hit F5 to go back to the localconfig:
0
ls3 62
ls3/da 74[1]
ls3/poseidon 83
...
Maildir 45[4]
ls3 62
da 74[1]
poseidon 84


> While looking into this, I used the following macro:
>
> | macro index ,c "<enter-command>unmailboxes *<enter><enter-command>set
> folder=/mnt$HOME/Maildir<enter><enter-command>source
> ~/.mutt/setup/mail.mailboxes<enter>'
>
> where the mail.mailboxes file just contains some 'mailboxes =foo' commands.
> The actual
> files are in ~/Maildir while /mnt$HOME/Maildir expands to my remote "main"
> spool.

Yes, that's exactly what I'm doing, but I'm rereading folderhooks too,
as the absolute paths have changed and this was necessary in the
original setup.

> Also, can you please try revision 494?

Time permitting, I'll see what I can do and report back. Thanks for the
quick reply!

Ulrich Spoerlein
--
PGP Key ID: F0DB9F44 Encrypted mail welcome!
Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44
Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn."
didn't you understand?



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise