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

Diff of /mailutils/imap4d/copy.c

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

revision 1.11 by sroberts, Tue Mar 12 03:34:35 2002 UTC revision 1.12 by gray, Mon Apr 15 09:04:02 2002 UTC
# Line 73  imap4d_copy0 (char *arg, int isuid, char Line 73  imap4d_copy0 (char *arg, int isuid, char
73        return RESP_BAD;        return RESP_BAD;
74      }      }
75    
76    if (strcasecmp (name, "INBOX") == 0 && !mu_virtual_domain)    mailbox_name = namespace_getfullpath (name, delim);
     {  
       struct passwd *pw = mu_getpwuid (getuid());  
       mailbox_name = strdup ((pw) ? pw->pw_name : "");  
     }  
   else  
     mailbox_name = namespace_getfullpath (name, delim);  
77    
78    if (!mailbox_name)    if (!mailbox_name)
79      {      {
# Line 117  imap4d_copy0 (char *arg, int isuid, char Line 111  imap4d_copy0 (char *arg, int isuid, char
111        return RESP_OK;        return RESP_OK;
112      }      }
113    
114    /* Unless it is certain that the destination mailbix can not be created,    /* Unless it is certain that the destination mailbox can not be created,
115       the server MUST send the response code "[TRYCREATE]" as the prefix       the server MUST send the response code "[TRYCREATE]" as the prefix
116       of the text of the tagged NO response.  This gives a hint to the       of the text of the tagged NO response.  This gives a hint to the
117       client that it can attempt a CREATE command and retry the copy if       client that it can attempt a CREATE command and retry the copy if

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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