2007-03-15 06:16:29 -07:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
2006-06-11 10:37:53 -07:00
|
|
|
#ifndef IMAP_H
|
|
|
|
#define IMAP_H
|
|
|
|
|
|
|
|
#include <e.h>
|
|
|
|
#include "e_mod_main.h"
|
|
|
|
|
|
|
|
typedef struct _ImapServer ImapServer;
|
|
|
|
typedef struct _ImapClient ImapClient;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
IMAP_STATE_DISCONNECTED,
|
|
|
|
IMAP_STATE_CONNECTED,
|
|
|
|
IMAP_STATE_SERVER_READY,
|
|
|
|
IMAP_STATE_LOGGED_IN,
|
|
|
|
IMAP_STATE_STATUS_OK
|
|
|
|
} ImapState;
|
|
|
|
|
|
|
|
struct _ImapServer
|
|
|
|
{
|
2007-03-15 06:16:29 -07:00
|
|
|
int port;
|
|
|
|
unsigned char local;
|
|
|
|
unsigned char ssl;
|
|
|
|
const char *host;
|
|
|
|
const char *user;
|
|
|
|
const char *pass;
|
|
|
|
|
2006-06-11 10:37:53 -07:00
|
|
|
Ecore_Con_Server *server;
|
|
|
|
Evas_List *clients;
|
2007-01-15 19:36:45 -08:00
|
|
|
Evas_List *current;
|
2006-06-13 05:24:07 -07:00
|
|
|
int cmd;
|
2006-06-11 10:37:53 -07:00
|
|
|
ImapState state;
|
|
|
|
void *data;
|
|
|
|
|
|
|
|
Ecore_Event_Handler *add_handler;
|
|
|
|
Ecore_Event_Handler *del_handler;
|
|
|
|
Ecore_Event_Handler *data_handler;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _ImapClient
|
|
|
|
{
|
|
|
|
Config_Box *config;
|
|
|
|
ImapServer *server;
|
|
|
|
};
|
|
|
|
|
|
|
|
void _mail_imap_check_mail(void *data);
|
|
|
|
void _mail_imap_add_mailbox(void *data);
|
|
|
|
void _mail_imap_del_mailbox(void *data);
|
|
|
|
void _mail_imap_shutdown();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//imap.1and1.com
|
|
|
|
//m39988144-2/3
|
|
|
|
////testing/2
|
|
|
|
//
|