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

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 xxxx" 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-----