2016-03-03 11:04:32 +01:00
|
|
|
/*
|
|
|
|
* import.h, SJ
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IMPORT_H
|
|
|
|
#define _IMPORT_H
|
|
|
|
|
|
|
|
|
|
|
|
int import_message(char *filename, struct session_data *sdata, struct __data *data, struct __config *cfg);
|
|
|
|
void update_import_job_stat(struct session_data *sdata, struct __data *data);
|
|
|
|
|
|
|
|
int read_gui_import_data(struct session_data *sdata, struct __data *data, char *folder_imap, char *skiplist, int dryrun, struct __config *cfg);
|
|
|
|
|
|
|
|
int import_from_maildir(char *directory, struct session_data *sdata, struct __data *data, int *tot_msgs, 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, int *tot_msgs, struct __config *cfg);
|
|
|
|
int import_from_pop3_server(char *server, char *username, char *password, int port, struct session_data *sdata, struct __data *data, int dryrun, struct __config *cfg);
|
|
|
|
int import_from_imap_server(char *server, char *username, char *password, int port, struct session_data *sdata, struct __data *data, char *folder_imap, char *skiplist, int dryrun, struct __config *cfg);
|
|
|
|
|
2016-04-05 21:10:09 +02:00
|
|
|
int connect_to_pop3_server(int sd, char *username, char *password, struct __data *data, int use_ssl);
|
2016-03-03 11:04:32 +01:00
|
|
|
int process_pop3_emails(int sd, struct session_data *sdata, struct __data *data, int use_ssl, int dryrun, struct __config *cfg);
|
|
|
|
|
2016-04-05 21:10:09 +02:00
|
|
|
int connect_to_imap_server(int sd, int *seq, char *username, char *password, struct __data *data, int use_ssl);
|
2016-12-19 20:02:07 +01:00
|
|
|
int list_folders(int sd, int *seq, int use_ssl, char *folder_name, struct __data *data);
|
2016-03-03 11:04:32 +01:00
|
|
|
int process_imap_folder(int sd, int *seq, char *folder, struct session_data *sdata, struct __data *data, int use_ssl, int dryrun, struct __config *cfg);
|
|
|
|
void send_imap_close(int sd, int *seq, struct __data *data, int use_ssl);
|
|
|
|
|
|
|
|
#endif /* _IMPORT_H */
|
|
|
|
|