(util_mark_read): New function
Showing
2 changed files
with
15 additions
and
2 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc. |
3 | 3 | ||
4 | GNU Mailutils is free software; you can redistribute it and/or modify | 4 | GNU Mailutils is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
... | @@ -327,6 +327,8 @@ void util_run_cached_commands __P((list_t *list)); | ... | @@ -327,6 +327,8 @@ void util_run_cached_commands __P((list_t *list)); |
327 | const char *util_reply_prefix __P((void)); | 327 | const char *util_reply_prefix __P((void)); |
328 | void util_rfc2047_decode __P((char **value)); | 328 | void util_rfc2047_decode __P((char **value)); |
329 | 329 | ||
330 | void util_mark_read __P((message_t msg)); | ||
331 | |||
330 | extern int ml_got_interrupt __P ((void)); | 332 | extern int ml_got_interrupt __P ((void)); |
331 | extern void ml_clear_interrupt __P ((void)); | 333 | extern void ml_clear_interrupt __P ((void)); |
332 | extern void ml_readline_init __P ((void)); | 334 | extern void ml_readline_init __P ((void)); | ... | ... |
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001, 2002, 2003, | 2 | Copyright (C) 1999, 2000, 2001, 2002, 2003, |
3 | 2004 Free Software Foundation, Inc. | 3 | 2004, 2005 Free Software Foundation, Inc. |
4 | 4 | ||
5 | GNU Mailutils is free software; you can redistribute it and/or modify | 5 | GNU Mailutils is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
... | @@ -604,6 +604,16 @@ util_isdeleted (size_t n) | ... | @@ -604,6 +604,16 @@ util_isdeleted (size_t n) |
604 | return attribute_is_deleted (attr); | 604 | return attribute_is_deleted (attr); |
605 | } | 605 | } |
606 | 606 | ||
607 | void | ||
608 | util_mark_read (message_t msg) | ||
609 | { | ||
610 | attribute_t attr; | ||
611 | |||
612 | message_get_attribute (msg, &attr); | ||
613 | attribute_set_read (attr); | ||
614 | attribute_set_userflag (attr, MAIL_ATTRIBUTE_SHOWN); | ||
615 | } | ||
616 | |||
607 | char * | 617 | char * |
608 | util_get_homedir () | 618 | util_get_homedir () |
609 | { | 619 | { |
... | @@ -1392,3 +1402,4 @@ util_rfc2047_decode (char **value) | ... | @@ -1392,3 +1402,4 @@ util_rfc2047_decode (char **value) |
1392 | *value = tmp; | 1402 | *value = tmp; |
1393 | } | 1403 | } |
1394 | } | 1404 | } |
1405 | ... | ... |
-
Please register or sign in to post a comment