diff options
Diffstat (limited to 'libsylph/procmime.c')
-rw-r--r-- | libsylph/procmime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c index 2789563f..dfbda477 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -770,7 +770,7 @@ void procmime_scan_content_type_partial(const gchar *content_type, procmime_mime_params_free(mparams); - if (t > 0 && n > 0 && t >= n && id_str) { + if (n > 0 && (t == 0 || t >= n) && id_str) { *total = t; *part_id = id_str; *number = n; |