Commit 94450bc8 94450bc88b13fafafdea52ac188d0f5087845231 by Sergey Poznyakoff

(undelete0): Set cursor if it is zero.

1 parent bc5296e0
...@@ -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
......