/[mailutils]/mailutils/imap4d/select.c
ViewVC logotype

Diff of /mailutils/imap4d/select.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by sroberts, Tue Mar 12 03:31:28 2002 UTC revision 1.21 by gray, Mon Apr 15 09:04:02 2002 UTC
# Line 57  imap4d_select0 (struct imap4d_command *c Line 57  imap4d_select0 (struct imap4d_command *c
57        imap4d_sync ();        imap4d_sync ();
58      }      }
59    
60    if (strcasecmp (mailbox_name, "INBOX") == 0 && !mu_virtual_domain)    mailbox_name = namespace_getfullpath (mailbox_name, "/");
     {  
       pw = mu_getpwuid (getuid ());  
       if (pw)  
         {  
           mailbox_name = malloc (strlen (mu_path_maildir) +  
                                  strlen (pw->pw_name) + 1);  
           if (!mailbox_name)  
             {  
               syslog (LOG_ERR, "Not enough memory");  
               return util_finish (command, RESP_NO, "Not enough memory");  
             }  
           sprintf (mailbox_name, "%s%s", mu_path_maildir, pw->pw_name);  
         }  
       else  
         mailbox_name = strdup ("/dev/null");  
     }  
   else  
     mailbox_name = namespace_getfullpath (mailbox_name, "/");  
61    
62    if (!mailbox_name)    if (!mailbox_name)
63      return util_finish (command, RESP_NO, "Couldn't open mailbox");      return util_finish (command, RESP_NO, "Couldn't open mailbox");

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26