diff options
Diffstat (limited to 'pith/imap.c')
-rw-r--r-- | pith/imap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pith/imap.c b/pith/imap.c index 869de9ad..fb7c3972 100644 --- a/pith/imap.c +++ b/pith/imap.c @@ -450,6 +450,8 @@ mm_list(MAILSTREAM *stream, int delimiter, char *mailbox, long int attributes) (attributes & LATT_HASNOCHILDREN) ? ", has no children" : "")); #endif + if(!mm_list_info || !mm_list_info->filter) return; + if(!mm_list_info->stream || stream == mm_list_info->stream) (*mm_list_info->filter)(stream, mailbox, delimiter, attributes, mm_list_info->data, @@ -472,6 +474,8 @@ mm_lsub(MAILSTREAM *stream, int delimiter, char *mailbox, long int attributes) (attributes & LATT_HASNOCHILDREN) ? ", has no children" : "")); #endif + if(!mm_list_info || !mm_list_info->filter) return; + if(!mm_list_info->stream || stream == mm_list_info->stream) (*mm_list_info->filter)(stream, mailbox, delimiter, attributes, mm_list_info->data, |