Back to index

courier  0.68.2
Defines | Functions
imapd.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define HIERCH   '.' /* Hierarchy separator char */
#define HIERCHS   "." /* Hierarchy separator char */
#define NEWMSG_FLAG   '*' /* Prefixed to mimeinfo to indicate new msg */
#define is_sharedsubdir(dir)
#define SUBSCRIBEFILE   "courierimapsubscribed"
#define CHECK_RIGHTSM(mailbox, varname, rights)

Functions

void check_rights (const char *mailbox, char *rights_buf)

Define Documentation

#define CHECK_RIGHTSM (   mailbox,
  varname,
  rights 
)
Value:
char varname[sizeof(rights)]; \
       strcpy(varname, rights); \
       check_rights(mailbox, varname);

Definition at line 25 of file imapd.h.

#define HIERCH   '.' /* Hierarchy separator char */

Definition at line 10 of file imapd.h.

#define HIERCHS   "." /* Hierarchy separator char */

Definition at line 11 of file imapd.h.

#define is_sharedsubdir (   dir)
Value:
(strncmp((dir), SHAREDSUBDIR "/", \
               sizeof (SHAREDSUBDIR "/")-1) == 0)

Definition at line 16 of file imapd.h.

#define NEWMSG_FLAG   '*' /* Prefixed to mimeinfo to indicate new msg */

Definition at line 13 of file imapd.h.

#define SUBSCRIBEFILE   "courierimapsubscribed"

Definition at line 20 of file imapd.h.


Function Documentation

void check_rights ( const char *  mailbox,
char *  rights_buf 
)

Definition at line 2777 of file imapd.c.

{
       char *r=get_myrightson(mailbox);
       char *p, *q;

       if (!r)
       {
              fprintf(stderr, "ERR: Error reading ACLs for %s: %s\n",
                     mailbox, strerror(errno));
              *rights_buf=0;
              return;
       }

       for (p=q=rights_buf; *p; p++)
       {
              if (strchr(r, *p) == NULL)
                     continue;

              *q++ = *p;
       }
       *q=0;
       free(r);
}

Here is the call graph for this function: