Changeset 4973:83ca0fb6e36a for imap

Show
Ignore:
Timestamp:
2007-03-12 10:32:35 (21 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
default
Message:

Substitute INBOX for empty mailbox _after_ cleanup (closes: #2841)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imap/util.c

    r4787 r4973  
    296296  int x = 0; 
    297297 
    298   if (!mailbox || !*mailbox) 
    299   { 
    300     strfcpy (path, "INBOX", plen); 
    301     return path; 
    302   } 
    303  
    304298  while (mailbox && *mailbox && (x < (plen - 1))) 
    305299  { 
     
    319313    x++; 
    320314  path[x] = '\0'; 
     315 
     316  if (!path[0]) 
     317    strfcpy (path, "INBOX", plen); 
     318 
    321319  return path; 
    322320}