copy and move operations from messages page
This commit is contained in:
parent
a679ea1deb
commit
a997c9d97a
|
@ -22,7 +22,7 @@
|
||||||
<div id="messages">
|
<div id="messages">
|
||||||
<div id="msglist">
|
<div id="msglist">
|
||||||
<h2><%= @folder_name %></h2>
|
<h2><%= @folder_name %></h2>
|
||||||
<%= form_tag({:controller=>'/webmail/webmail', :action=>'messages'})%>
|
<%= form_tag({:controller=>'webmail', :action=>'messages'})%>
|
||||||
<div class='notviscode'><input type="submit" name="op" value="<%=_('Search')%>" /></div>
|
<div class='notviscode'><input type="submit" name="op" value="<%=_('Search')%>" /></div>
|
||||||
<input type="hidden" name="page" value="<%=@page%>"/>
|
<input type="hidden" name="page" value="<%=@page%>"/>
|
||||||
|
|
||||||
|
|
|
@ -335,7 +335,7 @@ class IMAPFolder
|
||||||
|
|
||||||
def move_multiple(message_uids, dst_folder)
|
def move_multiple(message_uids, dst_folder)
|
||||||
activate
|
activate
|
||||||
@mailbox.imap.uid_copy(message_uids, dst_folder)
|
@mailbox.imap.uid_copy(message_uids, @mailbox.folders[dst_folder].utf7_name)
|
||||||
@mailbox.imap.uid_store(message_uids, "+FLAGS", :Deleted)
|
@mailbox.imap.uid_store(message_uids, "+FLAGS", :Deleted)
|
||||||
@mailbox.folders[dst_folder].cached = false if @mailbox.folders[dst_folder]
|
@mailbox.folders[dst_folder].cached = false if @mailbox.folders[dst_folder]
|
||||||
@mailbox.folders[dst_folder].mcached = false if @mailbox.folders[dst_folder]
|
@mailbox.folders[dst_folder].mcached = false if @mailbox.folders[dst_folder]
|
||||||
|
|
Loading…
Reference in a new issue