Updated. Added emacs local variables to facilitate editing
Showing
1 changed file
with
56 additions
and
0 deletions
1 | 2002-08-03 Sergey Poznyakoff | ||
2 | |||
3 | Use of attributes made consistent throughout the package: | ||
4 | |||
5 | * imap4d/fetch.c (fetch_flags0): Use util_print_flags. | ||
6 | * imap4d/search.c (cond_keyword): Likewise for | ||
7 | util_attribute_matches_flag. | ||
8 | * imap4d/imap4d.h (util_print_flags,util_attribute_to_type, | ||
9 | util_attribute_matches_flag): New prototypes. | ||
10 | * imap4d/select.c (imap4d_select_status): Run imap4d_sync() | ||
11 | to output EXISTS and RECENT untagged responses. | ||
12 | * imap4d/store.c (get_attribute_type): Removed. | ||
13 | util_attribute_to_type() does the job. | ||
14 | (imap4d_store0): Use util_attribute_to_type(). | ||
15 | * imap4d/sync.c: Output the actual number of recent messages. | ||
16 | |||
17 | * imap4d/util.c: For consistency, reduced all operations | ||
18 | with flags to manipulations with _imap4d_attrlist array | ||
19 | RFC2060 states that \Seen flag means "Message has been read", | ||
20 | so it should be mapped to our MU_ATTRIBUTE_READ. | ||
21 | (util_print_flags, util_attribute_matches_flag): New functions. | ||
22 | |||
23 | * include/mailutils/mutil.h (mu_register_getpwuid): Fixed proto. | ||
24 | * mailbox/mutil.c: Likewise. | ||
25 | |||
26 | * include/mailutils/attribute.h (MU_ATTRIBUTE_IS_UNSEEN, | ||
27 | MU_ATTRIBUTE_IS_UNREAD): New macros. | ||
28 | * mailbox/attribute.c (attribute_is_recent): Use | ||
29 | MU_ATTRIBUTE_IS_UNSEEN. | ||
30 | (attribute_set_flags): If the required bits are already set, | ||
31 | do not modify anything | ||
32 | (attribute_unset_flags): If the required bits are already | ||
33 | cleared, do not modify anything | ||
34 | * mailbox/mbx_mbox.c (mbox_messages_recent): use | ||
35 | MU_ATTRIBUTE_IS_UNSEEN. | ||
36 | (mbox_message_unseen): use MU_ATTRIBUTE_IS_UNREAD. | ||
37 | * mailbox/mbx_mh.c (mh_messages_recent, mh_message_unseen): Likewise. | ||
38 | |||
39 | * imap4d/bye.c (imap4d_bye0): Use mailbox_flush. | ||
40 | * imap4d/close.c (imap4d_close): Likewise. | ||
41 | * mail/quit.c (mail_mbox_close): Likewise. | ||
42 | * pop3d/quit.c (pop3d_quit): Likewise. | ||
43 | * include/mailutils/mailbox.h (mailbox_flush): New prototype. | ||
44 | * mailbox/mailbox.c (mailbox_flush): New function. Marks all | ||
45 | messages as seen and saves the attributes to the mailbox, | ||
46 | optionally expunging it. | ||
47 | * mailbox/folder_imap.c (imap_flags): Empty attribute | ||
48 | list means MU_ATTRIBUTE_SEEN. | ||
49 | * mailbox/mbx_imap.c (flags_to_string): Map \Seen to | ||
50 | MU_ATTRIBUTE_READ. | ||
51 | |||
1 | 2002-08-02 Sergey Poznyakoff | 52 | 2002-08-02 Sergey Poznyakoff |
2 | 53 | ||
3 | * MySql/MySql.c (getMpwuid): Bugfix. It should take a pointer as | 54 | * MySql/MySql.c (getMpwuid): Bugfix. It should take a pointer as |
... | @@ -6717,3 +6768,8 @@ | ... | @@ -6717,3 +6768,8 @@ |
6717 | 6768 | ||
6718 | * */*: Accomidate directory rearrange | 6769 | * */*: Accomidate directory rearrange |
6719 | 6770 | ||
6771 | |||
6772 | Local Variables: | ||
6773 | mode: change-log | ||
6774 | version-control: never | ||
6775 | End: | ... | ... |
-
Please register or sign in to post a comment