index-sort.c revision fd4632d0060b2e9eef513b544ccff1e26d1fc222
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "ostream.h"
#include "message-date.h"
#include "imap-envelope.h"
#include "imap-message-cache.h"
#include "mail-index.h"
#include "index-storage.h"
#include "index-sort.h"
static struct imap_message_cache *
{
return NULL;
}
}
}
}
{
struct imap_message_cache *cache;
if (type != MAIL_SORT_SIZE) {
i_unreached();
return 0;
}
}
void *context)
{
enum imap_envelope_field env_field;
switch (type) {
case MAIL_SORT_CC:
break;
case MAIL_SORT_FROM:
break;
case MAIL_SORT_TO:
break;
default:
i_unreached();
return NULL;
}
/* get field from hopefully cached envelope */
return NULL;
return NULL;
return str;
}
{
enum imap_envelope_field env_field;
switch (type) {
case MAIL_SORT_DATE:
break;
case MAIL_SORT_SUBJECT:
break;
default:
i_unreached();
return NULL;
}
/* get field from hopefully cached envelope */
return NULL;
return NULL;
return str;
}
{
struct imap_message_cache *cache;
const char *str;
int timezone_offset;
switch (type) {
case MAIL_SORT_ARRIVAL:
case MAIL_SORT_DATE:
return 0;
return 0;
default:
i_unreached();
return 0;
}
}
static void _input_reset(void *context)
{
}
{
size_t i;
/* FIXME: works only with UIDs! */
for (i = 0; i < count; i++) {
t_push();
t_pop();
}
}
struct mail_sort_callbacks index_sort_callbacks = {
};