A little eye-surgery and suddenly you appreciate being to ready email.
;)

[snips throughout]

* Cameron Simpson <c...@zip.com.au> [2009-06-26 16:40 -0500]:
> On 25Jun2009 23:50, David J. Weller-Fahy 
> <dave-lists-mutt-us...@weller-fahy.com> wrote:
> | * Cameron Simpson <c...@zip.com.au> [2009-06-03 23:56 -0500]:
> | > folder-hook . "macro index '\$' \"<change-folder>\$my_folder<enter>\""
> | > folder-hook . 'push ":\`cs-mutt-per-folder\ $my_folder\`\<enter\>"'
> |
> | Hrm... so every-time you sync your mailbox, you change folders to the
> | current folder?  Why is that - checking for new mail?
>
> The first hook does indeed re-enter the folder if I type '$' in the
> index view. ('$' in pager view still does a plain <sync>.)
>
> The reason for this is that the <sync> operation only commits my
> changes (deleted, unread->read transitions etc) to the folder. It does
> not check the folder for new mail. So your surmise is exactly correct.

Hrm... I'm currently using a remap of the '.' key, as follows.

#v+
folder-hook '^imap(s)?://' 'macro index,pager . "<imap-fetch-mail><buffy-list>"'
#v-

This works rather handily for me as I use the buffy-list incessently.

> | Now I can clean out my mutt config folder again, and update my
> | master muttrc file.  This will be quite a change to the master
> | muttrc considering the lines made obsolete.
>
> You have a config folder? How's that work? A bunch of special purpose
> muttrcs that get sourced at need?

Nothing nearly so neat (although I used to have an ssl-enabled perl
script solely to get into my imap server and get a folder list so I
could parse it to get a mailboxes list).  My config folder is simply my
~/.mutt directory.  I keep everything (except my passfile) in a git
repository on my server so I won't have to worry about backing up my
linux configuration when I create a new VM, or switch to a MacBook this
fall/winter (rubbing hands in anticipation).

I have the following rc files.

#v+
d...@eeyore:~/.mutt$ ls | grep -v hcache
cache/
incorporate/
old/
aliases
colors
headers
imap
mailbox-based-ids.pl*
muttrc
passfile
sendmail
signature.afsa
signature.list
signature.normal
#v-

The cache directory is for both body and header caching.  passfile sets
my IMAP password, and is ignored by git.  Most rc files are read one
time on startup.  The incorporate and old directories are rc files from
before I set up the "one muttrc to rule them all" repository and had
multiple versions scattered between mutt instances.  I have yet to
collect enough round-tuits to comb through them for any nuggets of
wisdom.

So, not rocket science, but it keeps things out of my home directory. ;)

Regards,
-- 
dave [ please don't CC me ]

Reply via email to