You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, July 25th 2008, 1:32am

Kmail Toolbar Change Crashes Kontact

I recently moved Linux distributions and brought my Kmail data (mail and kmailrc) to the new system (Ubuntu). Everything set up great even though I am now running Kmail through Kontact. So far I like it but I have noticed that Spam filtering stopped working. So, I used the wizard to configure Spam filter in hopes that it would help. It did not, but everything worked fine.

So I was looking around and I decided to check if Bogofilter (or whatever it is called) had a different button than the "Filter Classify as Spam" button. So, I went to configure the Kmail Toolbar and I noticed that although the toolbar contained the "Filter Classify as Spam" and the "Filter Classify as NOT Spam" buttons were on the toolbar the toolbar configuration menu showed they were not present. So, I selected each button and placed it on the toolbar and clicked okay. Kontact crashed. Every time I try and start Kontact, it crashes.

I have looked around but cannot seem to locate which file to modify so that the Kmail toolbar in Kontact goes back to normal.

Does anybody have any ideas?

Thank you,
Don

2

Friday, July 25th 2008, 5:12am

Okay, I found it. Of course the configuration is handled through the "kmailrc". What threw me off was that the button is configured through the filter definition.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[Filter #17]
Applicability=0
AutomaticName=true
ConfigureShortcut=false
ConfigureToolbar=false
Icon=mail_spam
StopProcessingHere=true
accounts-set=
action-args-0=P
action-args-1=bogofilter -N -s
action-args-2=Junk
action-name-0=set status
action-name-1=execute
action-name-2=transfer
actions=3
apply-on=
contentsA=0
fieldA=<size>
funcA=greater-or-equal
name=Classify as spam
operator=and
rules=1

[Filter #18]
Applicability=0
AutomaticName=true
ConfigureShortcut=false
ConfigureToolbar=false
Icon=mail_ham
StopProcessingHere=true
accounts-set=
action-args-0=H
action-args-1=bogofilter -S -n
action-name-0=set status
action-name-1=execute
actions=2
apply-on=
contentsA=0
fieldA=<size>
funcA=greater-or-equal
name=Classify as NOT spam
operator=and
rules=1


I just changed "ConfigureShortcut" and "ConfigureToolbar" to false. Once I made this change it started right up. After playing around a little bit it seems that the "ConfigureShortcut" is the problem. But I cannot get "ConfigureToolbar" to go back to true. Also, now the buttons do not show up in the configuration menu at all.

So, then I ran the SpamWizard again and the buttons reappeared. Great, but when I restart Kmail crashes again. So, once again, no Anti-Spam.

Should I submit a bug or am I doing something wrong here?

Thank you,
Cutaway

Similar threads