Back to index

citadel  8.12
Functions
imap_search.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void imap_search (int num_parms, ConstStr *Params)
void imap_uidsearch (int num_parms, ConstStr *Params)

Function Documentation

void imap_search ( int  num_parms,
ConstStr *  Params 
)

Definition at line 630 of file imap_search.c.

                                                  {
       int i;

       if (num_parms < 3) {
              IReply("BAD invalid parameters");
              return;
       }

       for (i = 0; i < IMAP->num_msgs; ++i) {
              IMAP->flags[i] |= IMAP_SELECTED;
       }

       imap_do_search(num_parms-2, &Params[2], 0);
       IReply("OK SEARCH completed");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void imap_uidsearch ( int  num_parms,
ConstStr *  Params 
)

Definition at line 649 of file imap_search.c.

                                                     {
       int i;

       if (num_parms < 4) {
              IReply("BAD invalid parameters");
              return;
       }

       for (i = 0; i < IMAP->num_msgs; ++i) {
              IMAP->flags[i] |= IMAP_SELECTED;
       }

       imap_do_search(num_parms-3, &Params[3], 1);
       IReply("OK UID SEARCH completed");
}

Here is the call graph for this function:

Here is the caller graph for this function: