Bug 267214 - Filter Action "Send Fake MDN" Bug? (MDN Not sent.)
Summary: Filter Action "Send Fake MDN" Bug? (MDN Not sent.)
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: filtering (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-27 00:12 UTC by Carl Sopchak
Modified: 2011-07-28 09:30 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 Carl Sopchak 2011-02-27 00:12:19 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

I am trying to send an MDN for emails with a blank subject.  I have the filter defined, and the message is being marked as read, and moved to the Trash folder, but the Send Fake MDN action does not seem to be executed.

I have the configuration for MDN's set to ASK, as I want the choice for incoming emails requesting an MDN.

To me, this appears to be a bug in the KMFilterAction::sendMDN logic:

 KMMessage * mdn = msg->createMDN( KMime::MDN::AutomaticAction, d, false, m );
 
(The “false” parameter is allowGUI.)

whereas early on in createMDN, you have 

  if ( mode == 1 /* ask */ && !allowGUI )
    return 0; // don't setMDNSentState here!

Since allowGUI is false in the sendMDN call, and my configuration is set to ASK, my requested fake MDN will never be sent.

Both of these configurations (for the filter to send the MDN, and to ASK before sending MDN's) are my choice, and therefore should be allowed instead of being silently ignored.

Assuming createMDN is called elsewhere (makes sense), I'd suggest that the simplest solution would be that the call from sendMDN send a true for the allowGUI parameter.

Or, add another parameter to createMDN, perhaps named “forced” or “requested”, that causes createMDN to ignore the general MDN configuration setting.  (If I'm telling a filter to send an MDN, I want the MDN to be sent, regardless of the general MDN setting!)

As an aside, I tried using Forward To in the filter, but that didn't work because I couldn't configure it to “forward” to the sender of the email.

Carl

Reproducible: Always

Steps to Reproduce:
Set general MDN response to ASK.
Create a filter to send a fake MDN.
Send email that matches filter criteria.


Actual Results:  
No MDN is sent

Expected Results:  
MDN Sent as requested.

I'm somewhat confused as to which version of kmail I'm using.  Bugzilla states "kmail prior to anakonda" should be filed under "kamil", and anakonda version is kmail2, but the version I am using (Fedora 12) uses anakonda, but Help -> About Kamil shows 1.13.5, which is not in the dropdown above.  (KDE 4.4.5)  Sorry if this if filed under the wrong kmail, but may apply to kmail2 as well...
Comment 1 Laurent Montel 2011-06-27 13:07:13 UTC
Ok was a kmail1 bug...
I fixed for kmail2 and it's not the same bug.
So in kmail2 it will work :)
Comment 2 Laurent Montel 2011-07-27 12:04:33 UTC
Will fix it soon. It's right filteraction mustn't look at kmail config if we want to send a MDN.
Comment 3 Laurent Montel 2011-07-28 08:04:09 UTC
Ok I saw that it's not easy to implement it.
By default we don't have add to send notification.
So perhaps we must reimplement it.

Will look at it
Comment 4 Laurent Montel 2011-07-28 09:30:17 UTC
Fixed in master/4.7