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

Re: canonicalizing and de-canonicalizing



* Mon Nov  3 2008 Kyle Wheeler <kyle-mutt-dev@xxxxxxxxxxxxxx>
> On Friday, October 31 at 11:21 PM, quoth TAKAHASHI Tamotsu:
>> So here is another patch.
>> %e is a pretty version of %f in $folder_format.
>
> Hmm... there's a minor problem... in browsing around an IMAP server,  
> going to the parent folder is normally labelled "..", but after going  
> through mutt_pretty_mailbox, it gets transformed into the parent  
> directory of the local disk.

Oops, I'm sorry.

> It's easy to special-case that, of  
> course... but is that the right thing to do?

grepping '\"\.\.' *.c tells me that it's normal.

imap/browser.c gives you "../" (not ".."),
so strcmp(s,"../") will fix this problem.

      if (op == 'e' && mutt_strcmp (s, "../"))


-- 
tamo