Problem applying filter from inside kmail -- perhaps arguments for external command lost
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdepim (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am having a problem with the filtering mechanism inside Kmail. The issue is that right now I cannot determine if the problem is in the definition of the filters or somewhere else.
The scenario is the following. I am using the crm114 mechanism for classifying spam mail and for indicating crm114 which I would like to be classified as good and which as spam. For crm114 I am using the mailreaver method as recommended. The problem is when defining the filter for identifying a mail as spam and making crm114 to learn it as such. Being defined some rules for filtering before, the rule for learning a mail as spam I am using is the following:
Redirect through: 'crm -u ~/.crm114 mailreaver.crm --spam'
This has been done so since it is recommended in the crm114 documentation. This rule is the last one of the set of rules defined inside kmail. Seriously, I do not know if when intended to be applied this filter some other filter is taken instead --but this filter is indeed intended to be used since I've tried to do so from the menu and from an icon placed on purpose on the tools bar-- or if what happens is that the '--spam' option were not considered at all, so that when one thinks that it is learning that mail as spam it is taken in fact as good. I have tried to run that command with the option outside kmail and then it learns it as spam correctly, but from inside Kmail it is making somethig else.
I can also say that I have the impression that I had been experiencing this issue with some previous versions of kmail as well.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: kmail 4:4.9.98-0ubuntu1
ProcVersionSign
Uname: Linux 3.8.0-1-generic x86_64
NonfreeKernelMo
ApportVersion: 2.8-0ubuntu2
Architecture: amd64
Date: Tue Jan 22 08:31:34 2013
MarkForUpload: True
ProcEnviron:
LANGUAGE=es_ES
TERM=xterm
PATH=(custom, no user)
LANG=es_ES.UTF-8
SHELL=/bin/bash
SourcePackage: kdepim
UpgradeStatus: No upgrade log present (probably fresh install)
Now... I have upgraded today finally to version KDE 4.10 exactly within the same system and now I am experiencing something that I do not know if it is 'sligthly' different or if it is due to exactly the same issue. The issue that I wanted to refer to now is that appart from a first set of four rules for making the filtering of mails to look for possible spam and classify it, I have three different additional filters to select among depending on the learning procedure I would wish to follow with a specific mail in particular. The issue is that in the first group of filters I have set a "StopProcessing Here" option set to true, since it is intended to be configured for working more or less automatically with the spam identification program (in this case, crm114), and the three last filters would be filters to be possible to choose among. I can say that, and I do not know why, independently of the filter I manually choose it always runs the first one of this set of additional three.
I add the contents of the akonadi_ mailfilter_ agentrc file:
[Filter #0] ut=false r=false ere=false name-0= filter app or-equal JORrw8L9eSZHmYP 1
Applicability=1
AutomaticName=false
ConfigureShortc
ConfigureToolba
Enabled=true
Icon=system-run
StopProcessingH
ToolbarName=For all messages
action-args-0=crm -u /home/user/.crm114 mailreaver.crm
action-
actions=1
apply-on=check-mail
contentsA=0
fieldA=<size>
funcA=greater-
identifier=
name=For all messages
operator=all
rules=1
[Filter #1] ut=false r=false ere=true name-1= transfer X-CRM114- Status YTcswhM5YZRYsnx j
Applicability=1
AutomaticName=false
ConfigureShortc
ConfigureToolba
Enabled=true
Icon=system-run
StopProcessingH
ToolbarName=Spam
action-args-0=P
action-args-1=314
action-args-2=R
action-name-0=set status
action-
action-name-2=set status
actions=3
apply-on=check-mail
contentsA=SPAM
fieldA=
funcA=contains
identifier=
name=Spam
operator=or
rules=1
[Filter #2] ut=false r=false ere=true Possible spam X-CRM114- Status YTcswhM5YZRYsnx j
Applicability=1
AutomaticName=false
ConfigureShortc
ConfigureToolba
Enabled=true
Icon=system-run
StopProcessingH
ToolbarName=
action-args-0=P
action-name-0=set status
actions=1
apply-on=check-mail
contentsA=UNSURE
fieldA=
funcA=contains
identifier=
name=Possible spam
operator=or
rules=1
[Filter #3] ut=false r=false ere=true YTcswhM5YZRYsnx j
Applicability=1
AutomaticName=false
ConfigureShortc
ConfigureToolba
Enabled=true
Icon=system-run
StopProcessingH
ToolbarName=Ham - stop
action-args-0=H
action-args-1=U
action-name-0=set status
action-name-1=set status
actions=2
apply-on=check-mail
contentsA=0
fieldA=<size>
funcA=greater
identifier=
name=Ham - stop
operator=all
rules=1
[Filter #4] ut=true r=true ere=true Classify as spam and remove set=akonadi_ pop3_resource_ 6,akonadi_ mbox_resource_ 0,akonadi_ pop3_resource_ 5,akonadi_ pop3_resource_ 9,akonadi_ pop3_resource_ 0,akonadi_ pop3_resource_ 4,akonadi_ maildir_ resource_ 0,akonadi_ pop3_resource_ 8,akonadi_ pop3_resource_ 13,akonadi_ pop3_resource_ 1,akonadi_ imap_resource_ 0,akonadi_ pop3_resource_ 3
Applicability=0
AutomaticName=false
ConfigureShortc
ConfigureToolba
Enabled=true
Icon=security-low
StopProcessingH
ToolbarName=
accounts-
action-args-0=cat > /tmp/spam.txt
action-args-1=R
acti...