imap-fetch.c revision 6389aeec8c26b585e583c364b48ad12adf741898
/* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "istream.h"
#include "ostream.h"
#include "str.h"
#include "message-send.h"
#include "message-size.h"
#include "imap-date.h"
#include "commands.h"
#include "imap-fetch.h"
#include <unistd.h>
{
}
const struct mail_full_flags *flags)
{
return FALSE;
}
return TRUE;
}
{
return FALSE;
return TRUE;
}
{
return FALSE;
return TRUE;
}
{
const char *body;
return FALSE;
return TRUE;
}
{
const char *bodystructure;
if (bodystructure == NULL)
return FALSE;
return TRUE;
}
{
const char *envelope;
return FALSE;
return TRUE;
}
{
const char *str;
return FALSE;
}
return FALSE;
}
{
struct message_size hdr_size;
const char *str;
return FALSE;
}
return FALSE;
}
{
const char *str;
return FALSE;
}
return FALSE;
}
{
const struct mail_full_flags *flags;
struct imap_fetch_body_data *body;
if (!ctx->update_seen)
else {
return FALSE;
return FALSE;
seen_updated = TRUE;
}
}
t_push();
do {
/* write the data into temp string */
break;
break;
break;
break;
break;
break;
/* send the data written into temp string */
break;
data_written = TRUE;
/* large data */
break;
break;
break;
break;
}
} while (0);
if (data_written) {
}
t_pop();
return !failed;
}
enum mail_fetch_field fetch_data,
enum imap_fetch_field imap_data,
struct imap_fetch_body_data *bodies,
const char *messageset, int uidset)
{
struct imap_fetch_context ctx;
int all_found;
/* If we have any BODY[..] sections, \Seen flag is added for
all messages */
struct imap_fetch_body_data *body;
break;
}
}
}
messageset, uidset);
return -1;
break;
}
}
return -1;
}