Bug #1492: Would like the "Draft" flag added to the IMAP flags available for reading
| From: | chuck at horde dot org | Date: | Fri, 04 Jun 1999 16:13:51 +0000 |
| Subject: | Bug #1492: Would like the "Draft" flag added to the IMAP flags available for reading | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6546@lists.php.net to get a copy of this message | ||
From: chuck@horde.org
Operating system:
PHP version: 3.0.8
PHP Bug Type: Feature/Change Request
Bug description: Would like the "Draft" flag added to the IMAP flags available for
reading
Here is a patch against the 3.0.8 distribution:
--- php-3.0.8.orig/functions/imap.c Tue Mar 30 06:25:04 1999
+++ php-3.0.8/functions/imap.c Fri Jun 4 12:00:14 1999
@@ -716,6 +716,7 @@
tmp[2] = cache->flagged ? 'F' : ' ';
tmp[3] = cache->answered ? 'A' : ' ';
tmp[4] = cache->deleted ? 'D' : ' ';
+ tmp[5] = cache->draft ? 'X' : ' ';
sprintf (tmp+5,"%4ld) ",cache->msgno);
mail_date (tmp+11,cache);
tmp[17] = ' ';
@@ -1486,6 +1487,7 @@
add_property_string(return_value,"Flagged",cache->flagged ? "F" :
" ",1);
add_property_string(return_value,"Answered",cache->answered ? "A" :
" ",1);
add_property_string(return_value,"Deleted",cache->deleted ? "D" :
" ",1);
+ add_property_string(return_value,"Draft",cache->draft ? "X" : "
",1);
sprintf (dummy,"%4ld",cache->msgno);
add_property_string(return_value,"Msgno",dummy,1);
mail_date (dummy,cache);
@@ -2349,6 +2351,7 @@
add_property_long(&myoverview,"answered",elt->answered);
add_property_long(&myoverview,"deleted",elt->deleted);
add_property_long(&myoverview,"seen",elt->seen);
+ add_property_long(&myoverview,"draft",elt->draft);
add_next_index_object(return_value,myoverview);
}
}
Apologies for any line wrapping; the changes should be pretty obvious.