[Hastymail-cvs] SF.net SVN: hastymail:[1578] trunk/hastymail2/lib/post_action_class.php
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2010-06-18 15:41:55
|
Revision: 1578 http://hastymail.svn.sourceforge.net/hastymail/?rev=1578&view=rev Author: sailfrog Date: 2010-06-18 15:41:49 +0000 (Fri, 18 Jun 2010) Log Message: ----------- make sure a destination folder is submitted when moving or copying messages Modified Paths: -------------- trunk/hastymail2/lib/post_action_class.php Modified: trunk/hastymail2/lib/post_action_class.php =================================================================== --- trunk/hastymail2/lib/post_action_class.php 2010-06-18 15:37:57 UTC (rev 1577) +++ trunk/hastymail2/lib/post_action_class.php 2010-06-18 15:41:49 UTC (rev 1578) @@ -385,10 +385,14 @@ } switch ($post['prev_next_action']) { case 'copy': - $this->perform_imap_action('COPY', $post['mailbox'], array($post['uid']), false, $prev_next_folder); + if ($prev_next_folder) { + $this->perform_imap_action('COPY', $post['mailbox'], array($post['uid']), false, $prev_next_folder); + } break; case 'move': - $this->perform_imap_action('MOVE', $post['mailbox'], array($post['uid']), false, $prev_next_folder); + if ($prev_next_folder) { + $this->perform_imap_action('MOVE', $post['mailbox'], array($post['uid']), false, $prev_next_folder); + } break; case 'expunge': $trash_folder = false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |