mail-sort.h revision ef217a40ec3cc7aa7ce2c2b4ba36a44510c982e9
#ifndef __MAIL_SORT_H
#define __MAIL_SORT_H
#include "mail-storage.h"
/* Maximum size for sort program, 2x for reverse + END */
struct mail_sort_funcs {
/* arrival, date */
void *context);
/* size */
void *context);
/* cc, from, to. Return the mailbox of the first address. */
void *context);
/* subject */
void *context);
/* done parsing this message, free all resources */
void (*input_reset)(void *context);
/* result callback */
};
/* input and output are arrays of sort programs ending with MAIL_SORT_END.
input specifies the order in which the messages are arriving to sorting.
It may be just MAIL_SORT_END if the order is random. The better the ordering
is known, the less memory is used. */
struct mail_sort_context *
/* id is either UID or sequence number of message, whichever is preferred
in MailSortFuncs parameters. */
#endif