diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-11-24 00:13:41 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-11-24 00:13:41 +0200 |
commit | 43853ce85b785d36b44b6850ceac7136c54f54f0 (patch) | |
tree | 091a2815b0378aa27366e04c9d7fb0c0cbcab58d /include/mailutils/sys/amd.h | |
parent | 764ebfd7f22dd2634413f1d427ab0f51b0b7797b (diff) | |
download | mailutils-43853ce85b785d36b44b6850ceac7136c54f54f0.tar.gz mailutils-43853ce85b785d36b44b6850ceac7136c54f54f0.tar.bz2 |
mh: implement rmmproc.
* include/mailutils/sys/amd.h (_amd_data) <delete_msg>: New method.
* libmailutils/base/amd.c (amd_expunge): If delete_msg is defined,
use it.
* libproto/mh/mbox.c (_mh_msg_delete): New method.
(_mailbox_mh_init): Set delete_msg if "rmmproc" component is
defined.
* mh/tests/movemsg: New file.
* mh/tests/Makefile.am (EXTRA_DIST): Add movemsg.
* mh/tests/rmm.at: Test rmmproc effects.
* mh/tests/rmf.at (MH_KEYWORDS): Fix copy-n-paste error.
* doc/texinfo/mu-mh.texi: Document rmmproc.
* mh/TODO: Update.
Diffstat (limited to 'include/mailutils/sys/amd.h')
-rw-r--r-- | include/mailutils/sys/amd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mailutils/sys/amd.h b/include/mailutils/sys/amd.h index 2f921a327..fde26da92 100644 --- a/include/mailutils/sys/amd.h +++ b/include/mailutils/sys/amd.h @@ -82,7 +82,8 @@ struct _amd_data int (*message_uid) (mu_message_t msg, size_t *puid); size_t (*next_uid) (struct _amd_data *mhd); int (*remove) (struct _amd_data *); - + int (*delete_msg) (struct _amd_data *, struct _amd_message *); + /* List of messages: */ size_t msg_count; /* number of messages in the list */ size_t msg_max; /* maximum message buffer capacity */ |