(undelete0): Set cursor if it is zero.
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -28,6 +28,8 @@ undelete0 (msgset_t *mspec, message_t msg, void *data) | ... | @@ -28,6 +28,8 @@ undelete0 (msgset_t *mspec, message_t msg, void *data) |
28 | 28 | ||
29 | message_get_attribute (msg, &attr); | 29 | message_get_attribute (msg, &attr); |
30 | attribute_unset_deleted (attr); | 30 | attribute_unset_deleted (attr); |
31 | if (cursor == 0) | ||
32 | cursor = mspec->msg_part[0]; | ||
31 | return 0; | 33 | return 0; |
32 | } | 34 | } |
33 | 35 | ... | ... |
-
Please register or sign in to post a comment