diff options
author | Ori Bernstein <ori@eigenstate.org> | 2019-12-10 23:13:25 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2019-12-10 23:13:25 -0800 |
commit | 375d8f437013d0d5106e6c8c6d8dd79db6de456a (patch) | |
tree | fba98e344bc8760d6f64f93d358b5499830cd383 /sys | |
parent | b0384439590d2899456b84b785b365a616ffaf2c (diff) |
remove unused code.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/cmd/upas/fs/imap.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/src/cmd/upas/fs/imap.c b/sys/src/cmd/upas/fs/imap.c index 4b1226f12..975bca5de 100644 --- a/sys/src/cmd/upas/fs/imap.c +++ b/sys/src/cmd/upas/fs/imap.c @@ -1140,31 +1140,6 @@ imap4rename(Mailbox *mb, char *p2, int) return 0; } -/* - * incomplete; when we say remove we want to get subfolders, too. - * so we need to to a list, and recursivly nuke folders. - */ -static char* -imap4remove(Mailbox *mb, int flags) -{ - char *r; - Imap *imap; - - imap = mb->aux; - idprint(imap, "remove %s\n", imap->mbox); - imap4cmd(imap, "delete %s", imap->mbox); - r = imap4resp(imap); - if(!isokay(r)) - return r; - if(flags & Rtrunc){ - imap4cmd(imap, "create %s", imap->mbox); - r = imap4resp(imap); - if(!isokay(r)) - return r; - } - return 0; -} - char* imap4mbox(Mailbox *mb, char *path) { @@ -1216,7 +1191,6 @@ imap4mbox(Mailbox *mb, char *path) mb->fetch = imap4fetch; mb->delete = imap4delete; mb->rename = imap4rename; -// mb->remove = imap4remove; mb->modflags = imap4modflags; mb->addfrom = 1; return nil; |