[dev] prefix display

Max Kalika max@the-triumvirate.net
Mon, 13 Nov 2000 13:35:59 -0800


Quoting Anil Madhavapeddy <anil@recoil.org>:

> I was looking at stripping out the prefix in the success messages
> displayed from create/rename/delete, but the relevant functions in
> folder.php just get passed the fully qualified name.
> 
> Should we change the API slightly, or let the success message 
> be raised by the code calling the function?
> (I prefer the former option)

There are a few other places that a folder is displayed and would look better 
(at least to the user) if the prefix was left out.  How about an 
IMP_folder::label() function that accepts the fully qualified name strips out 
the prefix and returns just the folder name?

something like:

return substr($folder, strpos($folder, preambleString()) + strlen(preambleString
()))


--mk23