summary refs log tree commit diff
path: root/magrep.c
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-02-21 18:34:22 +0100
committerDuncaen <mail@duncano.de>2017-02-23 20:35:14 +0100
commit24e329172360651a2b3557da787df98b02fa6d16 (patch)
tree1d4b922917556c95a368b0ba98bd772ec19a6abf /magrep.c
parent10ed969f06ed906bd5429f2b520f93b293a3ae8e (diff)
downloadmblaze-24e329172360651a2b3557da787df98b02fa6d16.tar.gz
mblaze-24e329172360651a2b3557da787df98b02fa6d16.tar.xz
mblaze-24e329172360651a2b3557da787df98b02fa6d16.zip
magrep: continue matching mime parts in -p and or -o mode
Diffstat (limited to 'magrep.c')
-rw-r--r--magrep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/magrep.c b/magrep.c
index e6e53cc..0804071 100644
--- a/magrep.c
+++ b/magrep.c
@@ -89,8 +89,8 @@ match_part(int depth, struct message *msg, char *body, size_t bodylen)
 				for (p = s = body; p < body+bodylen+1; p++) {
 					if (*p == '\r' || *p == '\n') {
 						*p = 0;
-						if (p-s > 1 && match(curfile, "/", s))
-							r = MIME_STOP;
+						if (p-s > 1)
+							match(curfile, "/", s);
 						s = p+1;
 					}
 				}