Diffstat (limited to 'noncore/net/mail/smtpwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/smtpwrapper.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/noncore/net/mail/smtpwrapper.h b/noncore/net/mail/smtpwrapper.h index 41e9a8c..c0dcc11 100644 --- a/noncore/net/mail/smtpwrapper.h +++ b/noncore/net/mail/smtpwrapper.h | |||
@@ -11,4 +11,6 @@ | |||
11 | 11 | ||
12 | class Mail; | 12 | class Mail; |
13 | class MBOXwrapper; | ||
14 | class RecMail; | ||
13 | class Attachment; | 15 | class Attachment; |
14 | struct mailimf_fields; | 16 | struct mailimf_fields; |
@@ -26,4 +28,5 @@ public: | |||
26 | virtual ~SMTPwrapper(){} | 28 | virtual ~SMTPwrapper(){} |
27 | void sendMail(const Mail& mail,bool later=false ); | 29 | void sendMail(const Mail& mail,bool later=false ); |
30 | void flushOutbox(SMTPaccount*smtp); | ||
28 | 31 | ||
29 | protected: | 32 | protected: |
@@ -35,20 +38,25 @@ protected: | |||
35 | void addFileParts( mailmime *message,const QList<Attachment>&files ); | 38 | void addFileParts( mailmime *message,const QList<Attachment>&files ); |
36 | mailmime *buildTxtPart(const QString&str ); | 39 | mailmime *buildTxtPart(const QString&str ); |
37 | mailmime *buildFilePart(const QString&filename,const QString&mimetype ); | 40 | mailmime *buildFilePart(const QString&filename,const QString&mimetype,const QString&content); |
38 | void smtpSend( mailmime *mail,bool later ); | 41 | void smtpSend( mailmime *mail,bool later, SMTPaccount *smtp ); |
39 | mailimf_field *getField( mailimf_fields *fields, int type ); | ||
40 | clist *createRcptList( mailimf_fields *fields ); | 42 | clist *createRcptList( mailimf_fields *fields ); |
41 | char *getFrom( mailmime *mail ); | ||
42 | SMTPaccount *getAccount(const QString&from ); | 43 | SMTPaccount *getAccount(const QString&from ); |
43 | void writeToFile(const QString&file, mailmime *mail ); | 44 | void writeToFile(const QString&file, mailmime *mail ); |
44 | void readFromFile(const QString&file, char **data, size_t *size ); | 45 | void readFromFile(const QString&file, char **data, size_t *size ); |
45 | void storeMail(char*mail, size_t length, const QString&box); | ||
46 | 46 | ||
47 | static void storeMail(char*mail, size_t length, const QString&box); | ||
47 | static QString mailsmtpError( int err ); | 48 | static QString mailsmtpError( int err ); |
48 | static QString getTmpFile(); | 49 | static QString getTmpFile(); |
49 | static void progress( size_t current, size_t maximum ); | 50 | static void progress( size_t current, size_t maximum ); |
50 | static void addRcpts( clist *list, mailimf_address_list *addr_list ); | 51 | static void addRcpts( clist *list, mailimf_address_list *addr_list ); |
52 | static char *getFrom( mailmime *mail ); | ||
53 | static char *getFrom( mailimf_field *ffrom); | ||
54 | static mailimf_field *getField( mailimf_fields *fields, int type ); | ||
55 | static int smtpSend(char*from,clist*rcpts,char*data,size_t size, SMTPaccount *smtp ); | ||
56 | |||
51 | void storeMail(mailmime*mail, const QString&box); | 57 | void storeMail(mailmime*mail, const QString&box); |
52 | Settings *settings; | 58 | Settings *settings; |
59 | |||
60 | int sendQueuedMail(MBOXwrapper*wrap,SMTPaccount*smtp,RecMail*which); | ||
53 | }; | 61 | }; |
54 | 62 | ||