Bug 293720 - Pipe-through filter does not get full mail/does not work on mails with attachments
Summary: Pipe-through filter does not get full mail/does not work on mails with attach...
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: filtering (show other bugs)
Version: 1.99.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 15:09 UTC by itsef-admin
Modified: 2012-03-07 08:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description itsef-admin 2012-02-09 15:09:05 UTC
Version:           1.99.0 (using KDE 4.8.0) 
OS:                Linux

Seen on Kubuntu 11.10 with KDE SC 4.8 installed from Kubuntu backports
ppa. Pipe-through filters only work on mails with no attachments.

This was discovered when trying to use a filter that removes attachments (kmailpt.pl) which would fail to modify the mail (worked in KMail 3.5.x).

Reproducible: Always

Steps to Reproduce:
1) Create a manual pipe-through filter with the following command:
tee /tmp/out.txt
(Note: tee was chosen as the simplest possible "filter" for testing)

2A) Select a standard mail with no attachments and apply the filter
2B) Select a mail with attachment and apply the filter

Actual Results:  
3A) (mail w/o attachment): /tmp/out.txt contains the complete mail, as expected

3B) (mail w/ attachment): /tmp/out.txt *only* contains the headers of the mail - the complete body (and attachments) are missing

Expected Results:  
The complete mail with body and all should end up in /tmp/out.txt (or, in case of a "real" filter as input for the filter).

OS: Linux (i686) release 3.0.0-15-generic
Compiler: gcc
Comment 1 Tobias Koenig 2012-02-11 13:57:17 UTC
Hej,

just fixed a bug in the pipe-through code. Can you retest with current version, please?

Ciao,
Tobias
Comment 2 itsef-admin 2012-02-16 10:04:52 UTC
(In reply to comment #1)
> just fixed a bug in the pipe-through code. Can you retest with current version,
> please?

Thanks for the heads-up - will do as soon as there are newer packages available in the PPA, as right now I lack both time and skills to pull the newest version in in another manner (e.g. from CVS).

I can give you another datapoint, though: I've installed a second machine with Kubuntu 11.10 and tried the same tests with the KMail2 that was installed out-of-the-box (4.7.3) - there, the pipe-through filters worked as expected. So, it must have been some change between 4.7.3 and 4.8.0 causing this.
Comment 3 itsef-admin 2012-03-07 08:04:07 UTC
I just re-tried this with the Kubuntu-ppa 4.8.1 packages installed and I can confirm that the filters work again.