| Summary | Add new Ingo action (keep and file to folder) |
| Queue | Ingo |
| Queue Version | 1.0-ALPHA |
| Type | Enhancement |
| State | Resolved |
| Priority | 1. Low |
| Owners | Horde Developers (at) , slusarz (at) horde (dot) org |
| Requester | kevin_myer (at) iu13 (dot) org |
| Created | 07/01/2004 (7799 days ago) |
| Due | |
| Updated | 08/17/2004 (7752 days ago) |
| Assigned | 07/01/2004 (7799 days ago) |
| Resolved | 08/17/2004 (7752 days ago) |
| Milestone | |
| Patch | No |
State ⇒ Resolved
the imap driver also.
Priority ⇒ 1. Low
Assigned to
New Attachment: ingo.patch
ingo-1.0-Alpha.
ingo-1.0-Alpha.
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Queue ⇒ Ingo
to keep a copy of a message in my INBOX and file it into a folder. I
use this action so that certain important messages (such as CERT
advisories) make it to my INBOX, where I see them, and are also filed
into a CERT folder for historical reference.
Tested and works against Sieve for CMU IMAPd server. Probably would
work with other filter backends but haven't bothered to test there
since I don't use them.
--- lib/Storage.php.old Mon Jun 28 13:05:02 2004
+++ lib/Storage.php Mon Jun 28 13:11:54 2004
@@ -16,6 +16,7 @@
/** @const INGO_STORAGE_ACTION_VACATION */
define('INGO_STORAGE_ACTION_VACATION', 8);
/** @const INGO_STORAGE_ACTION_WHITELIST */
define('INGO_STORAGE_ACTION_WHITELIST', 9);
/** @const INGO_STORAGE_ACTION_FORWARD */
define('INGO_STORAGE_ACTION_FORWARD', 10);
+/** @const INGO_STORAGE_ACTION_MOVEKEEP */
define('INGO_STORAGE_ACTION_MOVEKEEP', 11);
// Ingo_Storage:: 'flags' constants
/** @const INGO_STORAGE_FLAG_ANSWERED */
define('INGO_STORAGE_FLAG_ANSWERED', 1);
@@ -305,6 +306,12 @@
$ob->flags = true;
break;
+ case INGO_STORAGE_ACTION_MOVEKEEP:
+ $ob->label = _("Deliver into my INBOX and copy to");
+ $ob->type = 'folder';
+ $ob->flags = true;
+ break;
+
case INGO_STORAGE_ACTION_REJECT:
$ob->label = _("Reject with reason");
break;
--- lib/Script/sieve.php.old Mon Mar 15 17:44:14 2004
+++ lib/Script/sieve.php Mon Jun 28 13:13:32 2004
@@ -25,6 +25,7 @@
INGO_STORAGE_ACTION_DISCARD,
INGO_STORAGE_ACTION_REDIRECT,
INGO_STORAGE_ACTION_REDIRECTKEEP,
+ INGO_STORAGE_ACTION_MOVEKEEP,
INGO_STORAGE_ACTION_REJECT
);
@@ -414,6 +415,11 @@
$action[] = &new Sieve_Action_Keep();
break;
+ case INGO_STORAGE_ACTION_MOVEKEEP:
+ $action[] = &new Sieve_Action_Keep();
+ $action[] = @new Sieve_Action_Fileinto(array('folder'
=> $filter['action-value']));
+ break;
+
case INGO_STORAGE_ACTION_WHITELIST:
foreach ($whitelistBlocks as $white) {
$this->addBlock($white);