Back to index

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

Go to the source code of this file.


#define MAILBOX_MARKED   0x0001
#define MAILBOX_UNMARKED   0x0002
#define MAILBOX_NOCHILDREN   0x0004
#define MAILBOX_NOINFERIORS   0x0008
#define MAILBOX_CHILDREN   0x0010
#define MAILBOX_NOSELECT   0x0020
#define LIST_SUBSCRIBED   0x0100
#define LIST_ACL   0x0200
#define LIST_MYRIGHTS   0x0400
#define LIST_POSTADDRESS   0x0800
#define LIST_CHECK1FOLDER   0x1000


int mailbox_scan (const char *ref, const char *name, int list_options, int(*callback_func)(const char *hiersep, const char *mailbox, int flags, void *void_arg), void *void_arg)

Define Documentation

#define LIST_ACL   0x0200

Definition at line 20 of file mailboxlist.h.

#define LIST_CHECK1FOLDER   0x1000

Definition at line 23 of file mailboxlist.h.

#define LIST_MYRIGHTS   0x0400

Definition at line 21 of file mailboxlist.h.

#define LIST_POSTADDRESS   0x0800

Definition at line 22 of file mailboxlist.h.

#define LIST_SUBSCRIBED   0x0100

Definition at line 19 of file mailboxlist.h.

#define MAILBOX_CHILDREN   0x0010

Definition at line 16 of file mailboxlist.h.

#define MAILBOX_MARKED   0x0001

Definition at line 12 of file mailboxlist.h.

#define MAILBOX_NOCHILDREN   0x0004

Definition at line 14 of file mailboxlist.h.

#define MAILBOX_NOINFERIORS   0x0008

Definition at line 15 of file mailboxlist.h.

#define MAILBOX_NOSELECT   0x0020

Definition at line 17 of file mailboxlist.h.

#define MAILBOX_UNMARKED   0x0002

Definition at line 13 of file mailboxlist.h.

Function Documentation

int mailbox_scan ( const char *  ref,
const char *  name,
int  list_options,
int(*)(const char *hiersep, const char *mailbox, int flags, void *void_arg)  callback_func,
void *  void_arg 

Definition at line 132 of file mailboxlist.c.

       char   *pattern, *p;
       int    nullname= *name == 0;
       int    rc;


       strcpy(pattern, reference);

       p=strrchr(pattern, HIERCH);
       if (p && p[1] == 0)  *p=0; /* Strip trailing . for now */
       if (*pattern)
              struct maildir_info mi;

              if (maildir_info_imap_find(&mi, pattern,
                     return (0); /* Invalid reference */

       /* Combine reference and name. */
       if (*pattern && *name)
              strcat(pattern, hierchs);
       strcat(pattern, name);

       if (name && *name)
       char *s=strrchr(pattern, HIERCH);

              if (s && s[1] == 0)  *s=0;  /* strip trailing . */


       /* Now, do the list */

       rc=do_mailbox_list(list_options, pattern, nullname,
                        callback_func, void_arg);
       return (rc);

Here is the call graph for this function:

Here is the caller graph for this function: