hi mutt users,

 time ago i set folder hooks to set different macros for different
folders, in particulary gmail's imap. now these hooks don't work
anymore. i controlled it twice and i'm preatty sure they worked for a
while: when i change folder and enter gmail's inbox, folder variable is
still set to '~/mail' and macros are not changed.

i'm using debian testing's package[1] and before debian stable, maybe in
the upgrade something changed.

thanks
m.

here the hooks:

        unhook folder-hook

        folder-hook . 'push <collapse-all>; \
                set folder=~/mail; \
                source ~/.mutt/key_bindings; \
                macro index,pager S "<enter-command>unset 
wait_key<enter><pipe-message>spamassassin --progress 
-r<enter><enter-command>set wait_key<enter><save-message>=spam<enter>" \
                        "Tags a given message as SPAM and report it to 
spamassassin"; \
                macro index,pager H "<enter-command>unset 
wait_key<enter><pipe-message>sa-learn --progress --ham<enter><enter-command>set 
wait_key<enter><save-message>=inbox<enter>" \
                        "Tags a given message as HAM and save it to inbox";'


        folder-hook 'imaps://imap\.gmail\.com/' 'set 
folder=imaps://imap.gmail.com; \
                macro index,pager S 
"<save-message>=[Google<esc><space>Mail]/Spam<enter>" \
                        "Mark message as spam"; \
                macro index,pager H "<save-message>=INBOX<enter>" "mark message 
as ham";'


[1] Mutt 1.5.20 (2009-06-14)
        Copyright (C) 1996-2009 Michael R. Elkins and others.
        Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
        Mutt is free software, and you are welcome to redistribute it
        under certain conditions; type `mutt -vv' for details.

        System: Linux 2.6.33.1 (x86_64)
        ncurses: ncurses 5.7.20100313 (compiled with 5.7)
        libidn: 1.15 (compiled with 1.18)
        hcache backend: tokyocabinet 1.4.37
        Opzioni di compilazione:
        -DOMAIN
        +DEBUG
        -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  +USE_FCNTL  
-USE_FLOCK   
        +USE_POP  +USE_IMAP  +USE_SMTP  
        -USE_SSL_OPENSSL  +USE_SSL_GNUTLS  +USE_SASL  +USE_GSS  
+HAVE_GETADDRINFO  
        +HAVE_REGCOMP  -USE_GNU_REGEX  
        +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
        +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
        +CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  
+CRYPT_BACKEND_GPGME  
        -EXACT_ADDRESS  -SUN_ATTACHMENT  
        +ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS  
+HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR  
        +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  
        -ISPELL
        SENDMAIL="/usr/sbin/sendmail"
        MAILPATH="/var/mail"
        PKGDATADIR="/usr/share/mutt"
        SYSCONFDIR="/etc"
        EXECSHELL="/bin/sh"
        MIXMASTER="mixmaster"
        To contact the developers, please mail to <[email protected]>.
        To report a bug, please visit http://bugs.mutt.org/.

        debian-specific/467432-write_bcc.patch
        debian-specific/Md.etc_mailname_gethostbyname.diff
        debian-specific/Muttrc
        debian-specific/assumed_charset-compat
        debian-specific/build_doc_adjustments.diff
        debian-specific/correct_docdir_in_man_page.diff
        debian-specific/document_debian_defaults
        debian-specific/dont_document_not_present_features.diff
        debian-specific/sort-patchlist
        debian-specific/use_usr_bin_editor.diff
        features-old/patch-1.5.4.vk.pgp_verbose_mime
        features/compressed-folders
        features/compressed-folders.debian
        features/ifdef
        features/purge-message
        features/sensible_browser_position
        features/trash-folder
        features/xtitles
        misc/am-maintainer-mode
        misc/define-pgp_getkeys_command.diff
        misc/gpg.rc-paths
        misc/hg.pmdef.debugtime
        misc/hyphen-as-minus.patch
        misc/smime.rc
        misc/smime_keys-manpage.patch
        mutt.org
        upstream/228671-pipe-mime.patch
        upstream/311296-rand-mktemp.patch
        upstream/383769-score-match.patch
        upstream/393926-internal-viewer.patch
        upstream/528233-readonly-open.patch
        upstream/531430-imapuser.patch
        upstream/533209-mutt_perror.patch
        upstream/533370-pgp-inline.patch
        upstream/533439-mbox-time.patch
        upstream/533459-unmailboxes.patch
        upstream/533520-signature-highlight.patch
        upstream/534543-imap-port.patch
        upstream/535096-pop-port.patch
        upstream/537694-segv-imap-headers.patch
        upstream/537818-emptycharset.patch
        upstream/538128-mh-folder-access.patch
        upstream/542344-dont_fold_From_
        upstream/542817-smimekeys-tmpdir.patch
        upstream/542910-search-segfault.patch
        upstream/543467-thread-segfault.patch
        upstream/544180-italian-yesorno.patch
        upstream/544794-smtp-batch.patch
        upstream/545316-header-color.patch
        upstream/547739-manual-typos.patch
        upstream/547980-smime_keys-chaining.patch
        upstream/548494-swedish-intl.patch
        upstream/548577-gpgme-1.2.patch
        upstream/553238-german-intl.patch
        upstream/553321-ansi-escape-segfault.patch
        upstream/557395-muttrc-crypto.patch
        upstream/568295-references.patch
        upstream/573823-imap_internal_date

-- 
Lo punite del fatto che la sua infanzia ha strisciato sul suolo senza
stelo e senza tutore; gli imputate come un misfatto l'isolamento in cui
lo avete lasciato; della sua sventura fate il suo delitto! Nessuno gli
ha insegnato a sapere ciò che faceva: quest'uomo ignora. La sua colpa
appartiene al suo destino, non a lui. Voi colpite un innocente.
                -- Victor Hugo

Reply via email to