Re: folder-hook commands
* Michael Tatge schrieb: * On Wed, May 06, 2009 03:33PM +0200 Alex Huth (alex.h...@alice-dsl.net) muttered: folder-hook . 'set sort=reverse-date-received' folder-hook =freebsd-current 'set sort=threads' folder-hook =freebsd-acpi 'source ~/.mutt/defaults.maillist' Now i get the reverse sort as default, threads in freebsd-current and the error unknown command for freebsd-acpi. All folder-hooks now have valid syntax good. It seems that source is the problem. Yes But if this is a unknown command in folder-hooks, how can i set multiple values for a folder? It's not the source command that's the problem. Lost likely there an error in the sourced file. So check ~/.mutt/defaults.maillist for errors. HTH, Michael -- Linux is not user-friendly. It _is_ user-friendly. It is not ignorant-friendly and idiot-friendly. -- Seen somewhere on the net PGP-Key-ID: 0xDC1A44DD Jabber: init...@amessage.de Thanks for the help and the patience, that was the problem. In the sourced file was a space after the =. Alex
Re: folder-hook commands
* On Tue, May 05, 2009 06:09PM +0200 Alex Huth (alex.h...@alice-dsl.net) muttered: folder-hook . set sort = reverse-date-received folder-hook = freebsd-current source ~/.mutt/defaults.maillist better quote the argument folder-hook . 'set sort = reverse-date-received' folder-hook =freebsd-current 'source ~/.mutt/defaults.maillist' ^ also note that there's a space in your quoted version HTH, Michael -- BOFH excuse #233: TCP/IP UDP alarm threshold is set too low. PGP-Key-ID: 0xDC1A44DD Jabber: init...@amessage.de
Re: folder-hook commands
* Gary Johnson schrieb: On 2009-05-05, Alex Huth wrote: Hello! I have a problem using a command in folder-hooks. I wnat to read a config file using folder-hooks: folder-hooks: folder-hook . set sort = reverse-date-received folder-hook = freebsd-current source ~/.mutt/defaults.maillist defaults.maillist: set sort = threads set strict_threads = yes set collapse_unread = yes set uncollapse_jump = yes Using this i get unknown command when i open the mailbox. Is it not possible to use source in folder-hooks? If not how can i configure it to get it working? The folder-hook command is expecting to see the command as a single argument. Therefore, if the command includes any whitespace, the command must be enclosed in quotes, or the whitespace otherwise removed. With that change, your hooks would become: folder-hook . set sort=reverse-date-received folder-hook =/freebsd-current source ~/.mutt/defaults.maillist I removed the spaces surrounding the = in the set command because the manual doesn't indicate that spaces are allowed there. I also added a / in the folder name of the second folder-hook, assuming that one belongs there. HTH, Gary First folder-hook worked without qoutes, full path for the second hook is ~/Mail/freebsd/freebsd-current. But even with your version i get the error unknown command for the second hook. Alex
Re: folder-hook commands
* Michael Tatge schrieb: * On Tue, May 05, 2009 06:09PM +0200 Alex Huth (alex.h...@alice-dsl.net) muttered: folder-hook . set sort = reverse-date-received folder-hook = freebsd-current source ~/.mutt/defaults.maillist better quote the argument folder-hook . 'set sort = reverse-date-received' folder-hook =freebsd-current 'source ~/.mutt/defaults.maillist' ^ also note that there's a space in your quoted version HTH, Michael -- BOFH excuse #233: TCP/IP UDP alarm threshold is set too low. PGP-Key-ID: 0xDC1A44DD Jabber: init...@amessage.de Have checked it now more then twice and added next row: folder-hook . 'set sort=reverse-date-received' folder-hook =freebsd-current 'set sort=threads' folder-hook =freebsd-acpi 'source ~/.mutt/defaults.maillist' Now i get the reverse sort as default, threads in freebsd-current and the error unknown command for freebsd-acpi. It seems that source is the problem. But if this is a unknown command in folder-hooks, how can i set multiple values for a folder? Alex
Re: folder-hook commands
* On Wed, May 06, 2009 03:33PM +0200 Alex Huth (alex.h...@alice-dsl.net) muttered: folder-hook . 'set sort=reverse-date-received' folder-hook =freebsd-current 'set sort=threads' folder-hook =freebsd-acpi 'source ~/.mutt/defaults.maillist' Now i get the reverse sort as default, threads in freebsd-current and the error unknown command for freebsd-acpi. All folder-hooks now have valid syntax good. It seems that source is the problem. Yes But if this is a unknown command in folder-hooks, how can i set multiple values for a folder? It's not the source command that's the problem. Lost likely there an error in the sourced file. So check ~/.mutt/defaults.maillist for errors. HTH, Michael -- Linux is not user-friendly. It _is_ user-friendly. It is not ignorant-friendly and idiot-friendly. -- Seen somewhere on the net PGP-Key-ID: 0xDC1A44DD Jabber: init...@amessage.de
Re: folder-hook commands
On 2009-05-06, Alex Huth alex.h...@alice-dsl.net wrote: * Michael Tatge schrieb: * On Tue, May 05, 2009 06:09PM +0200 Alex Huth (alex.h...@alice-dsl.net) muttered: folder-hook . set sort = reverse-date-received folder-hook = freebsd-current source ~/.mutt/defaults.maillist better quote the argument folder-hook . 'set sort = reverse-date-received' folder-hook =freebsd-current 'source ~/.mutt/defaults.maillist' ^ also note that there's a space in your quoted version Have checked it now more then twice and added next row: folder-hook . 'set sort=reverse-date-received' folder-hook =freebsd-current 'set sort=threads' folder-hook =freebsd-acpi 'source ~/.mutt/defaults.maillist' Now i get the reverse sort as default, threads in freebsd-current and the error unknown command for freebsd-acpi. It seems that source is the problem. But if this is a unknown command in folder-hooks, how can i set multiple values for a folder? The source command should work fine in a folder-hook. I have this in my muttrc for setting a number of default message-hooks: folder-hook . 'source ~/.mutt/default-message-hooks' Perhaps the unknown command is in ~/.mutt/defaults.maillist. (I'm glad Michael showed you the right folder-name syntax. I don't know what I was thinking when I put the / after the =.) Regards, Gary
Re: folder-hook commands
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday, May 6 at 03:33 PM, quoth Alex Huth: Now i get the reverse sort as default, threads in freebsd-current and the error unknown command for freebsd-acpi. It seems that source is the problem. But if this is a unknown command in folder-hooks, It's not an unknown command. Like Michael said, it's probably something going wrong in the file that you're sourcing. how can i set multiple values for a folder? There's LOTS of ways to do that. You don't need an extra file. The most obvious way is to just create multiple hooks: folder-hook =freebsd-acpi 'set sort=last-received' folder-hook =freebsd-acpi 'set sort_aux=size' They will both be triggered for the freebsd-acpi folder. But, if you prefer, you can combine them into a single hook. Just do this: folder-hook =freebsd-acpi 'set sort=last-received sort_aux=size' Another way of doing multiple commands from a single hook is to separate them with a semicolon, like this: folder-hook =freebsd-acpi 'set sort=last-received; set sort_aux=size' And you can break that into multiple lines like this: folder-hook =freebsd-acpi 'set sort=last-received; \ set sort_aux=size' Does that make sense? ~Kyle - -- Patriotism is the last refuge of a scoundrel. -- Samuel Johnson -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iD8DBQFKAauCBkIOoMqOI14RAjsnAKCs6ijna9rxJFXXPfqleVKH4Mo7hACfXEja E3s2Et0sYUwOwwWx5VQPw9E= =IrU9 -END PGP SIGNATURE-
folder-hook commands
Hello! I have a problem using a command in folder-hooks. I wnat to read a config file using folder-hooks: folder-hooks: folder-hook . set sort = reverse-date-received folder-hook = freebsd-current source ~/.mutt/defaults.maillist defaults.maillist: set sort = threads set strict_threads = yes set collapse_unread = yes set uncollapse_jump = yes Using this i get unknown command when i open the mailbox. Is it not possible to use source in folder-hooks? If not how can i configure it to get it working? Thanks in advance Alex
Re: folder-hook commands
On 2009-05-05, Alex Huth wrote: Hello! I have a problem using a command in folder-hooks. I wnat to read a config file using folder-hooks: folder-hooks: folder-hook . set sort = reverse-date-received folder-hook = freebsd-current source ~/.mutt/defaults.maillist defaults.maillist: set sort = threads set strict_threads = yes set collapse_unread = yes set uncollapse_jump = yes Using this i get unknown command when i open the mailbox. Is it not possible to use source in folder-hooks? If not how can i configure it to get it working? The folder-hook command is expecting to see the command as a single argument. Therefore, if the command includes any whitespace, the command must be enclosed in quotes, or the whitespace otherwise removed. With that change, your hooks would become: folder-hook . set sort=reverse-date-received folder-hook =/freebsd-current source ~/.mutt/defaults.maillist I removed the spaces surrounding the = in the set command because the manual doesn't indicate that spaces are allowed there. I also added a / in the folder name of the second folder-hook, assuming that one belongs there. HTH, Gary