copy and move operations from messages page

This commit is contained in:
Eugene Korbut 2009-02-08 05:24:23 +10:00
parent a679ea1deb
commit a997c9d97a
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@
<div id="messages">
<div id="msglist">
<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>
<input type="hidden" name="page" value="<%=@page%>"/>

View file

@ -335,7 +335,7 @@ class IMAPFolder
def move_multiple(message_uids, dst_folder)
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.folders[dst_folder].cached = false if @mailbox.folders[dst_folder]
@mailbox.folders[dst_folder].mcached = false if @mailbox.folders[dst_folder]