mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
notmuch part: Fix part numbering to match what's reported by "notmuch show"
Since commit c51d5b3cdb
we are counting
multipart containers when emitting part numbers in the "notmuch show"
output. Unfortunately, "notmuch part" wasn't updated with the same
numbering, (and the test suite is inadequate to catch this).
Fix this by adding a similar part-numbering change to "notmuch part" here.
This commit is contained in:
parent
dcdb843094
commit
02ec2e420c
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,8 @@ show_one_part_worker (GMimeObject *part, int *part_count, int desired_part)
|
||||||
GMimeMultipart *multipart = GMIME_MULTIPART (part);
|
GMimeMultipart *multipart = GMIME_MULTIPART (part);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
*part_count = *part_count + 1;
|
||||||
|
|
||||||
for (i = 0; i < g_mime_multipart_get_count (multipart); i++) {
|
for (i = 0; i < g_mime_multipart_get_count (multipart); i++) {
|
||||||
show_one_part_worker (g_mime_multipart_get_part (multipart, i),
|
show_one_part_worker (g_mime_multipart_get_part (multipart, i),
|
||||||
part_count, desired_part);
|
part_count, desired_part);
|
||||||
|
|
Loading…
Reference in a new issue