diff --git a/src/com/fsck/k9/mail/filter/CountingOutputStream.java b/src/com/fsck/k9/mail/filter/CountingOutputStream.java index 19a5d7661..05960243d 100644 --- a/src/com/fsck/k9/mail/filter/CountingOutputStream.java +++ b/src/com/fsck/k9/mail/filter/CountingOutputStream.java @@ -21,4 +21,10 @@ public class CountingOutputStream extends OutputStream { public void write(int oneByte) throws IOException { mCount++; } + public void write(byte b[], int offset, int len) throws IOException { + mCount += len; + } + public void write(byte[] b) throws IOException { + mCount += b.length; + } }