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

Re: Setting subscribe/list within muttrc (using IMAP) [SOLVED]



Hi,

* David J. Weller-Fahy wrote:
* Rocco Rutte <pdmef@xxxxxxx> [2007-09-06 06:19 -0700]:

Just a minor note: When does this script get called? I'm asking
because if it gets called more than once per session, you'll keep
adding the same lines of folder-hook and subscribe all the time. Or do
you clear them previously?

Sorry, just noticed this email.

The script gets called every time a new mailbox is entered.  I do not
clear the values, because I assumed that identical values would be
overwritten.  That may be a bad assumption.  I'll have to contemplate my
setup and see if there's a better way to do what I want to do, again. ;]

Sorry, my fault. I looked at the code and does check for duplicates for folder-hook and subscribe. So as long as the input is stable (and the script seems to do that) it should be fine (it does check strings so e.g. spaces can matter).

Rocco