summaryrefslogtreecommitdiff
path: root/plugins/archive/archive.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-10-30 10:32:48 +0100
committerAleksander Machniak <alec@alec.pl>2013-10-30 10:32:48 +0100
commit691cbc276d06fd3e4827e8b650471b243cbc6ff4 (patch)
tree8dea2fbd3bba880bb04d2d6ca65eb0308e8a55ee /plugins/archive/archive.js
parent60e1b34e33a2030b016f22a133ce03983588697b (diff)
Fix archive action for all messages in a folder (#1489405)
Diffstat (limited to 'plugins/archive/archive.js')
-rw-r--r--plugins/archive/archive.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/archive/archive.js b/plugins/archive/archive.js
index cf44b74d4..f9fc7d630 100644
--- a/plugins/archive/archive.js
+++ b/plugins/archive/archive.js
@@ -1,6 +1,6 @@
/*
* Archive plugin script
- * @version 2.0
+ * @version 2.1
*/
function rcmail_archive(prop)
@@ -15,15 +15,7 @@ function rcmail_archive(prop)
}
else {
// let the server sort the messages to the according subfolders
- var post_data = { _uid: rcmail.env.uid ? rcmail.env.uid : rcmail.message_list.get_selection().join(','), _mbox: rcmail.env.mailbox };
-
- if (rcmail.env.display_next && rcmail.env.next_uid)
- post_data._next_uid = rcmail.env.next_uid;
-
- if (rcmail.env.action)
- post_data._from = rcmail.env.action;
-
- rcmail.http_post('plugin.move2archive', post_data);
+ rcmail.http_post('plugin.move2archive', rcmail.selection_post_data());
}
}
}