/* imap_access: Check permissions on an IMAP mailbox.
* TODO: ACL checks. Right now we assume if it exists we can
* mess with it. */
-int imap_access(const char *path, int flags)
+int imap_access(const char *path)
{
struct ImapData *idata = NULL;
struct ImapMbox mx;
strfcpy(mailbox, "INBOX", sizeof(mailbox));
FREE(&mx.mbox);
- /* really we should also check for W_OK */
- if ((rc = imap_access(ctx->path, F_OK)) == 0)
+ if ((rc = imap_access(ctx->path)) == 0)
return 0;
if (rc == -1)
};
/* imap.c */
-int imap_access(const char *path, int flags);
+int imap_access(const char *path);
int imap_check_mailbox(struct Context *ctx, int force);
int imap_delete_mailbox(struct Context *ctx, struct ImapMbox *mx);
int imap_sync_mailbox(struct Context *ctx, int expunge);
{
#ifdef USE_IMAP
if (mx_is_imap(path))
- return imap_access(path, flags);
+ return imap_access(path);
#endif
return access(path, flags);