summaryrefslogtreecommitdiff
path: root/mail/page.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/page.c')
-rw-r--r--mail/page.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/mail/page.c b/mail/page.c
index 367c8cfbe..2f243d3c6 100644
--- a/mail/page.c
+++ b/mail/page.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 2005-2019 Free Software Foundation, Inc.
+ Copyright (C) 2005-2024 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -31,7 +31,7 @@ static int
_fill_map (msgset_t *mspec, mu_message_t msg, void *data)
{
unsigned *pos = data;
- page_map[*pos] = mspec->msg_part[0];
+ page_map[*pos] = msgset_msgno (mspec);
++*pos;
return 0;
}
@@ -176,13 +176,10 @@ page_do (msg_handler_t func, void *data)
for (i = 0; i < page_avail; i++)
{
mu_message_t msg;
- msgset_t set;
-
- set.next = NULL;
- set.npart = 1;
- set.msg_part = page_map + i;
+ msgset_t *set = msgset_make_1 (page_map[i]);
mu_mailbox_get_message (mbox, page_map[i], &msg);
- func (&set, msg, data);
+ func (set, msg, data);
+ msgset_free (set);
}
}

Return to:

Send suggestions and report system problems to the System administrator.