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 /applications | |
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 'applications')
3 files changed, 14 insertions, 2 deletions
diff --git a/applications/kube-mail/package/contents/ui/Composer.qml b/applications/kube-mail/package/contents/ui/Composer.qml index 19a4c331..5502b7f9 100644 --- a/applications/kube-mail/package/contents/ui/Composer.qml +++ b/applications/kube-mail/package/contents/ui/Composer.qml | |||
@@ -23,6 +23,7 @@ import org.kde.kube.mail 1.0 as Mail | |||
23 | 23 | ||
24 | Item { | 24 | Item { |
25 | id: root | 25 | id: root |
26 | property variant originalMessage | ||
26 | 27 | ||
27 | function send() { | 28 | function send() { |
28 | composer.send() | 29 | composer.send() |
@@ -36,8 +37,18 @@ Item { | |||
36 | composer.clear(); | 37 | composer.clear(); |
37 | } | 38 | } |
38 | 39 | ||
40 | Mail.Retriever { | ||
41 | id: retriever | ||
42 | propertyName: "mimeMessage" | ||
43 | model: Mail.MailListModel { | ||
44 | id: mailListModel | ||
45 | mail: root.originalMessage | ||
46 | } | ||
47 | } | ||
48 | |||
39 | Mail.Composer { | 49 | Mail.Composer { |
40 | id: composer | 50 | id: composer |
51 | originalMessage: retriever.value | ||
41 | } | 52 | } |
42 | 53 | ||
43 | ColumnLayout { | 54 | ColumnLayout { |
diff --git a/applications/kube-mail/package/contents/ui/FocusComposer.qml b/applications/kube-mail/package/contents/ui/FocusComposer.qml index 20899817..2be656ab 100644 --- a/applications/kube-mail/package/contents/ui/FocusComposer.qml +++ b/applications/kube-mail/package/contents/ui/FocusComposer.qml | |||
@@ -11,7 +11,6 @@ | |||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. | 12 | * GNU General Public License for more details. |
13 | * | 13 | * |
14 | //import org.kde.kube.mail 1.0 as Mail | ||
15 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License |
16 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. |
17 | */ | 16 | */ |
@@ -22,6 +21,7 @@ import QtQuick.Layouts 1.1 | |||
22 | 21 | ||
23 | Rectangle { | 22 | Rectangle { |
24 | id: root | 23 | id: root |
24 | property variant originalMessage | ||
25 | 25 | ||
26 | visible: false | 26 | visible: false |
27 | 27 | ||
@@ -61,7 +61,7 @@ Rectangle { | |||
61 | 61 | ||
62 | Layout.fillWidth: true | 62 | Layout.fillWidth: true |
63 | Layout.fillHeight: true | 63 | Layout.fillHeight: true |
64 | 64 | originalMessage: root.originalMessage | |
65 | } | 65 | } |
66 | 66 | ||
67 | RowLayout { | 67 | RowLayout { |
diff --git a/applications/kube-mail/package/contents/ui/main.qml b/applications/kube-mail/package/contents/ui/main.qml index 191a7434..cf983dee 100644 --- a/applications/kube-mail/package/contents/ui/main.qml +++ b/applications/kube-mail/package/contents/ui/main.qml | |||
@@ -90,6 +90,7 @@ ApplicationWindow { | |||
90 | iconName: "mail-message-reply" | 90 | iconName: "mail-message-reply" |
91 | text: "Reply" | 91 | text: "Reply" |
92 | onClicked: { | 92 | onClicked: { |
93 | composer.originalMessage = mailListView.currentMail | ||
93 | composer.visible = true | 94 | composer.visible = true |
94 | } | 95 | } |
95 | } | 96 | } |