On Tue, Nov 23, 2010 at 02:24:43PM +0100, Francesco de Virgilio wrote:
I "simply" want to modify the "Sent Mail" folder index to show the the "To:" column. I'm using local mail folders generated by OfflineIMAP, so each folder has the name of the respective tag in Gmail. It appears that the space in "Sent Mail" prevents Mutt to make the folder-hook operative.
[...]
folder-hook =fradeve11/[Gmail].Sent\ Mail 'set index_format ="%30t %Z %{%d/%m/%y} %-25.25n %s"'
According to the muttrc man page, the folder argument to folder-hook is a regexp. A test with a local mbox named 'space test' works for me with this folder hook:
folder-hook =space.test 'set index_format ="%30t %Z %{%d/%m/%y} %-25.25n %s"'That uses the dot regexp character to match any character, including a space. Technically that would also match 'spaceatest', 'spacebtest', etc, but I think it would be unlikely that someone would want to create a Gmail tag named 'SentXMail' where X is anything other than a space. So that solution would be a good workaround as long as you didn't do that.
Mutt's regex parser doesn't seem to support \s to match a space. This didn't work for me:
folder-hook =space\stest 'set index_format ="%30t %Z %{%d/%m/%y} %-25.25n %s"' Ed
signature.txt
Description: Digital signature