diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-01 00:08:45 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-01 00:08:45 +0100 |
commit | 235b8cb38214fe1ec919fce8701737d7b944c6de (patch) | |
tree | 92468fe9c9f939086d8dac6f01d36f4f71a40c95 /framework/mail/mailtemplates.h | |
parent | 0467b39e1ca034ec7298017e3055e352c755a386 (diff) | |
download | kube-235b8cb38214fe1ec919fce8701737d7b944c6de.tar.gz kube-235b8cb38214fe1ec919fce8701737d7b944c6de.zip |
Support for mail replies
A template message is generated based on the input message,
including appropriate recepients and quoted text.
Encoding and and options are mostly hardcoded still,
and there might be one or the other crash with HTML mails.
Also image/attachment support is incomplete.
Diffstat (limited to 'framework/mail/mailtemplates.h')
-rw-r--r-- | framework/mail/mailtemplates.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/framework/mail/mailtemplates.h b/framework/mail/mailtemplates.h new file mode 100644 index 00000000..6519122a --- /dev/null +++ b/framework/mail/mailtemplates.h | |||
@@ -0,0 +1,28 @@ | |||
1 | /* | ||
2 | Copyright (c) 2016 Christian Mollekopf <mollekopf@kolabsys.com> | ||
3 | |||
4 | This library is free software; you can redistribute it and/or modify it | ||
5 | under the terms of the GNU Library General Public License as published by | ||
6 | the Free Software Foundation; either version 2 of the License, or (at your | ||
7 | option) any later version. | ||
8 | |||
9 | This library is distributed in the hope that it will be useful, but WITHOUT | ||
10 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public | ||
12 | License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU Library General Public License | ||
15 | along with this library; see the file COPYING.LIB. If not, write to the | ||
16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
17 | 02110-1301, USA. | ||
18 | */ | ||
19 | |||
20 | #pragma once | ||
21 | |||
22 | #include <QByteArray> | ||
23 | #include <KMime/Message> | ||
24 | |||
25 | namespace MailTemplates | ||
26 | { | ||
27 | KMime::Message::Ptr reply(const KMime::Message::Ptr &message); | ||
28 | }; | ||