2016-03-03 11:04:32 +01:00
|
|
|
/*
|
|
|
|
* import.h, SJ
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IMPORT_H
|
|
|
|
#define _IMPORT_H
|
|
|
|
|
|
|
|
|
2017-08-08 15:34:45 +02:00
|
|
|
int import_message(struct session_data *sdata, struct data *data, struct config *cfg);
|
2020-10-27 21:53:16 +01:00
|
|
|
int update_import_table(struct session_data *sdata, struct data *data);
|
2016-03-03 11:04:32 +01:00
|
|
|
|
2017-10-28 22:13:08 +02:00
|
|
|
int import_from_maildir(struct session_data *sdata, struct data *data, char *directory, struct config *cfg);
|
2017-08-08 15:34:45 +02:00
|
|
|
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
|
|
|
|
2017-08-08 15:34:45 +02: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
|
|
|
|
2017-08-08 15:34:45 +02: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
|
|
|
|
2020-12-20 22:01:34 +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 */
|