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

Diff of /mailutils/imap4d/list.c

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

revision 1.14 by gray, Wed Apr 10 13:22:13 2002 UTC revision 1.15 by gray, Mon Aug 5 08:11:31 2002 UTC
# Line 65  imap4d_list (struct imap4d_command *comm Line 65  imap4d_list (struct imap4d_command *comm
65    char *wcard;    char *wcard;
66    const char *delim = "/";    const char *delim = "/";
67    
   if (! (command->states & state))  
     return util_finish (command, RESP_BAD, "Wrong state");  
   
68    ref = util_getword (arg, &sp);    ref = util_getword (arg, &sp);
69    wcard = util_getword (NULL, &sp);    wcard = util_getword (NULL, &sp);
70    if (!ref || !wcard)    if (!ref || !wcard)
# Line 143  imap4d_list (struct imap4d_command *comm Line 140  imap4d_list (struct imap4d_command *comm
140                dir++;                dir++;
141              }              }
142            else            else
143                dir = wcard;          
144              break;              break;
145          }          }
146    
# Line 169  imap4d_list (struct imap4d_command *comm Line 167  imap4d_list (struct imap4d_command *comm
167            inode_rec.next = NULL;            inode_rec.next = NULL;
168            inode_rec.inode = st.st_ino;            inode_rec.inode = st.st_ino;
169            inode_rec.dev   = st.st_dev;            inode_rec.dev   = st.st_dev;
170            list_file (cwd, ref, (dir) ? dir : "", delim, &inode_rec);            list_file (cwd, ref, (dir) ? dir : wcard, delim, &inode_rec);
171            chdir (homedir);            chdir (homedir);
172          }          }
173        free (cwd);        free (cwd);

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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