}
// Now begin the traversal.
- if (num_msgs > 0) for (a = 0; a < num_msgs; ++a) {
+ if (num_msgs > 0) for (a = 0; a < num_msgs; ++a) if (msglist[a] > 0) {
// If the caller is looking for a specific MIME type, filter
// out all messages which are not of the type requested.