piler/src/import.h

29 lines
1.2 KiB
C
Raw Normal View History

2016-03-03 11:04:32 +01:00
/*
* import.h, SJ
*/
#ifndef _IMPORT_H
#define _IMPORT_H
int import_message(struct session_data *sdata, struct data *data, struct config *cfg);
int update_import_table(struct session_data *sdata, struct data *data);
2016-03-03 11:04:32 +01:00
int import_from_maildir(struct session_data *sdata, struct data *data, char *directory, struct config *cfg);
int import_from_mailbox(char *mailbox, struct session_data *sdata, struct data *data, struct config *cfg);
int import_mbox_from_dir(char *directory, struct session_data *sdata, struct data *data, struct config *cfg);
void import_from_pop3_server(struct session_data *sdata, struct data *data, struct config *cfg);
int import_from_imap_server(struct session_data *sdata, struct data *data, struct config *cfg);
2016-03-03 11:04:32 +01:00
int connect_to_pop3_server(struct data *data);
void process_pop3_emails(struct session_data *sdata, struct data *data, struct config *cfg);
2016-03-03 11:04:32 +01:00
int connect_to_imap_server(struct data *data);
int list_folders(struct data *data);
int process_imap_folder(char *folder, struct session_data *sdata, struct data *data, struct config *cfg);
void send_imap_close(struct data *data);
2016-03-03 11:04:32 +01:00
void import_from_pilerexport(struct session_data *sdata, struct data *data, struct config *cfg);
2016-03-03 11:04:32 +01:00
#endif /* _IMPORT_H */