In my opinion, it's better to leave things alone and allow people to use Mail/ or whatever other subdirectory name they want. For all you know, some power user may want to reference his home directory.

If you really want to go ahead with your intended strategy, then do something like the following early in routine mailboxfile():

  size_t i = mailsubdir ? strlen (mailsubdir) : 0;
  if (i && !strncmp (name,mailsubdir,i) && (name[i] == '/')) name += i + 1;

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.

Reply via email to