KDE3.4/KMail/Filters in toolbar problem
In my 3.3.x setup I had a couple of custom filters set up for when messages were incorrectly marked by bogofilter. Basically I could select the messages, and click on one of the toolbar icons (Spam/Ham). This would run the appropriate filter, which would educate bogofilter, mark it as Spam/Ham, and move it into the correct folder (Spam/inbox). Today I upgraded to KDE 3.4, and the toolbar buttons had disappeared. When I try to add them KMail crashes, taking KOrganizer with it. I can restart it, and it starts OK, but moving to other components tends to crash the lot again. By changing the toolbar without moving to any other screen I can remove the problem buttons. Anyone else experiencing this? -- Steve Boddy
Stephen, On Friday 18 March 2005 21:09, Stephen Boddy wrote:
In my 3.3.x setup I had a couple of custom filters set up for when messages were incorrectly marked by bogofilter. Basically I could select the messages, and click on one of the toolbar icons (Spam/Ham). This would run the appropriate filter, which would educate bogofilter, mark it as Spam/Ham, and move it into the correct folder (Spam/inbox).
Today I upgraded to KDE 3.4, and the toolbar buttons had disappeared. When I try to add them KMail crashes, taking KOrganizer with it. I can restart it, and it starts OK, but moving to other components tends to crash the lot again. By changing the toolbar without moving to any other screen I can remove the problem buttons.
Anyone else experiencing this?
Well, that's odd. I had that problem _before_ my upgrade to KDE 3.4 / KMail 1.8. Now it's gone. My toolbars were reset, as well, but I had no trouble reconstituting them. I, too, had a couple of manual filters associated with toolbar buttons (one to strip false positive spam headers and one to undo a thread hijacking). Perhaps you could hand edit the appropriate configuration file. The existing entries might be enough to go on. Here's what the <ToolBar> element from my "~/.kde/share/apps/kmail/kmmainwin.rc" looks like: <ToolBar noMerge="1" name="mainToolBar" fullWidth="true" > <text>Main Toolbar</text> <Action name="new_message" /> <Action name="file_save_as" /> <Action name="file_print" /> <Separator name="separator_11" /> <Action name="check_mail_in" /> <Action name="send_queued" /> <Separator name="separator_10" /> <Action name="message_reply_menu" /> <Action name="message_forward" /> <Separator name="separator_9" /> <Action name="go_prev_unread_message" /> <Action name="go_next_unread_message" /> <Separator name="separator_8" /> <Separator name="separator_7" /> <Action name="view_headers_fancy" /> <Action name="view_headers_brief" /> <Action name="view_headers_standard" /> <Action name="view_headers_long" /> <Action name="view_headers_all" /> <Separator name="separator_6" /> <Action name="toggle_fixedfont" /> <Action name="prefer_html" /> <Separator name="separator_5" /> <Separator name="separator_4" /> <Action name="move_to_trash" /> <Action name="search_messages" /> <Action name="addressbook" /> <Separator name="separator_3" /> <Separator name="separator_2" /> <ActionList name="toolbar_filter_actions" /> <Separator name="separator_1" /> <Separator name="separator_0" /> <Action name="kmail_configure_kmail" /> <Action name="filter" /> </ToolBar> The <ToolBar> element appears just before the <ActionProperties> element, which is the last element in the file. This element is the one that inserts the filters that are marked as toolbar actions: <ActionList name="toolbar_filter_actions" />
Steve Boddy
Randall Schulz
On Saturday 19 March 2005 06:09, Stephen Boddy wrote:
In my 3.3.x setup I had a couple of custom filters set up for when messages were incorrectly marked by bogofilter. Basically I could select the messages, and click on one of the toolbar icons (Spam/Ham). This would run the appropriate filter, which would educate bogofilter, mark it as Spam/Ham, and move it into the correct folder (Spam/inbox).
Today I upgraded to KDE 3.4, and the toolbar buttons had disappeared.
Yes, I know, happens to me with each new KDE version. And it is annoying. Very annoying indeed. I noticed that the clock in kicker suffered from the same problem: disappearing customizations. Personally I think this is unacceptable, and I really hope this will change in KDE-4.0.
When I try to add them KMail crashes,
Hmm, this is odd... Could be just a bad configuration file, or a bad line in a configuration file...
taking KOrganizer with it.
Uhm, do you run KMail in Kontact or stand-alone?
I can restart it, and it starts OK, but moving to other components tends to crash the lot again.
Moving *what* from *where* to *where* crashes *what*? Please be specific (4 times specific). Maybe give an example?
By changing the toolbar without moving to any other screen I can remove the problem buttons.
Why would you move to another screen? What screen? Do you have 2 monitors connected to your pc? Do you mean moving from one monitor to the other? (I'm just trying to understand what you're doing) Cheers, Leen
On Saturday 19 March 2005 05:34, Leendert Meyer wrote:
On Saturday 19 March 2005 06:09, Stephen Boddy wrote:
In my 3.3.x setup I had a couple of custom filters set up for when messages were incorrectly marked by bogofilter. Basically I could select the messages, and click on one of the toolbar icons (Spam/Ham). This would run the appropriate filter, which would educate bogofilter, mark it as Spam/Ham, and move it into the correct folder (Spam/inbox).
Today I upgraded to KDE 3.4, and the toolbar buttons had disappeared.
Yes, I know, happens to me with each new KDE version. And it is annoying. Very annoying indeed. I noticed that the clock in kicker suffered from the same problem: disappearing customizations. Personally I think this is unacceptable, and I really hope this will change in KDE-4.0.
When I try to add them KMail crashes,
Hmm, this is odd... Could be just a bad configuration file, or a bad line in a configuration file...
taking KOrganizer with it.
Uhm, do you run KMail in Kontact or stand-alone?
Gah! Too tired! I meant Kontact all along.
I can restart it, and it starts OK, but moving to other components tends to crash the lot again.
Moving *what* from *where* to *where* crashes *what*?
Please be specific (4 times specific). Maybe give an example?
See below.
By changing the toolbar without moving to any other screen I can remove the problem buttons.
Why would you move to another screen? What screen? Do you have 2 monitors connected to your pc? Do you mean moving from one monitor to the other?
No. Semantic disconnect occurring. I meant moving from the blue intro page to any of Kontacts components such as KOrganiser, Journal, To Do's etc.
(I'm just trying to understand what you're doing)
OK, 1. Start Kontact 2. The filters (Spam and Not_Spam) already exist and work if run manually on a message. 3. Buttons for filters that were there in pre 3.4 are no longer there. 4. Select "Settings -> Configure Toolbars..." 5. Change to "Main Toolbar <kmmainwin>" 6. Drag "Filter Spam" from "Available actions" to "Current actions" 7. Click "OK" and Kontact crashes with SIGSEGV see attached backtrace1.txt 8. Starting Kontact again results in another crash with backtrace2.txt N.B. Before I could start Kontact and it would start up and I could change the toolbar config while it displayed the blue intro screen. Now it looks like it is trying to display the KMail part immediately, and as a result crashes before I can change anything. 9. Removed the line "<Action name="Filter_Spam" />" from "~/.kde/share/apps/kmail/kmmainwin.rc" 10. Kontact starts up fine. -- Steve Boddy
On Saturday 19 March 2005 19:16, Stephen Boddy wrote:
On Saturday 19 March 2005 05:34, Leendert Meyer wrote:
On Saturday 19 March 2005 06:09, Stephen Boddy wrote:
In my 3.3.x setup I had a couple of custom filters set up for when messages were incorrectly marked by bogofilter. Basically I could select the messages, and click on one of the toolbar icons (Spam/Ham). This would run the appropriate filter, which would educate bogofilter, mark it as Spam/Ham, and move it into the correct folder (Spam/inbox).
Today I upgraded to KDE 3.4, and the toolbar buttons had disappeared.
Yes, I know, happens to me with each new KDE version. And it is annoying. Very annoying indeed. I noticed that the clock in kicker suffered from the same problem: disappearing customizations. Personally I think this is unacceptable, and I really hope this will change in KDE-4.0.
When I try to add them KMail crashes,
Hmm, this is odd... Could be just a bad configuration file, or a bad line in a configuration file...
taking KOrganizer with it.
Uhm, do you run KMail in Kontact or stand-alone?
Gah! Too tired! I meant Kontact all along.
Ah! :)
I can restart it, and it starts OK, but moving to other components tends to crash the lot again.
Moving *what* from *where* to *where* crashes *what*?
Please be specific (4 times specific). Maybe give an example?
See below.
By changing the toolbar without moving to any other screen I can remove the problem buttons.
Why would you move to another screen? What screen? Do you have 2 monitors connected to your pc? Do you mean moving from one monitor to the other?
No. Semantic disconnect occurring. I meant moving from the blue intro page to any of Kontacts components such as KOrganiser, Journal, To Do's etc.
(I'm just trying to understand what you're doing)
OK,
1. Start Kontact 2. The filters (Spam and Not_Spam) already exist and work if run manually on a message.
Where do they exist? I do not have them in Settings -> Configure Filters.
3. Buttons for filters that were there in pre 3.4 are no longer there.
Yes. Because of a change in config format, KDE 'forgets' user toolbar configuration, and you have to do that again. Affects not only KMail, but even kicker's clock.
4. Select "Settings -> Configure Toolbars..." 5. Change to "Main Toolbar <kmmainwin>" 6. Drag "Filter Spam" from "Available actions" to "Current actions"
I do not have that Filter, so I tried with 'Filter Log Viewer' FWIW.
7. Click "OK" and Kontact crashes with SIGSEGV see attached backtrace1.txt
Not here.
8. Starting Kontact again results in another crash with backtrace2.txt
Not here.
N.B. Before I could start Kontact and it would start up and I could change the toolbar config while it displayed the blue intro screen. Now it looks like it is trying to display the KMail part immediately, and as a result crashes before I can change anything.
9. Removed the line "<Action name="Filter_Spam" />" from "~/.kde/share/apps/kmail/kmmainwin.rc"
I suppose then the filter with that name is gone too? Or only the button on the toolbar?
10. Kontact starts up fine.
Your recipe was crystal clear, but I could not reproduce the crashes. Cheers, Leen
On Saturday 19 March 2005 19:18, Leendert Meyer wrote:
On Saturday 19 March 2005 19:16, Stephen Boddy wrote:
On Saturday 19 March 2005 05:34, Leendert Meyer wrote:
On Saturday 19 March 2005 06:09, Stephen Boddy wrote:
In my 3.3.x setup I had a couple of custom filters set up for when messages were incorrectly marked by bogofilter. Basically I could select the messages, and click on one of the toolbar icons (Spam/Ham). This would run the appropriate filter, which would educate bogofilter, mark it as Spam/Ham, and move it into the correct folder (Spam/inbox).
Today I upgraded to KDE 3.4, and the toolbar buttons had disappeared.
Yes, I know, happens to me with each new KDE version. And it is annoying. Very annoying indeed. I noticed that the clock in kicker suffered from the same problem: disappearing customizations. Personally I think this is unacceptable, and I really hope this will change in KDE-4.0.
When I try to add them KMail crashes,
Hmm, this is odd... Could be just a bad configuration file, or a bad line in a configuration file...
taking KOrganizer with it.
Uhm, do you run KMail in Kontact or stand-alone?
Gah! Too tired! I meant Kontact all along.
Ah! :)
I can restart it, and it starts OK, but moving to other components tends to crash the lot again.
Moving *what* from *where* to *where* crashes *what*?
Please be specific (4 times specific). Maybe give an example?
See below.
By changing the toolbar without moving to any other screen I can remove the problem buttons.
Why would you move to another screen? What screen? Do you have 2 monitors connected to your pc? Do you mean moving from one monitor to the other?
No. Semantic disconnect occurring. I meant moving from the blue intro page to any of Kontacts components such as KOrganiser, Journal, To Do's etc.
(I'm just trying to understand what you're doing)
OK,
1. Start Kontact 2. The filters (Spam and Not_Spam) already exist and work if run manually on a message.
Where do they exist? I do not have them in Settings -> Configure Filters.
Oh bugger! Still not explicit enough! Spam and Not_Spam are filters I manually created in 3.3 following a tutorial on setting up Bogofilter. Spam filter: Checks size greater than 1 byte (I think this is a fudge for some issue) then: Remove's bogosity header pipe through bogofilter -Ns define as spam pipe through bogofilter -ep runs through to add bogosity header Move to folder Spam Mark as Spam Not_spam filter: Checks size greater than 1 byte (I think this is a fudge for some issue) then: Remove's bogosity header pipe through bogofilter -Sn unregister as spam and register as ham Move to folder inbox
3. Buttons for filters that were there in pre 3.4 are no longer there.
Yes. Because of a change in config format, KDE 'forgets' user toolbar configuration, and you have to do that again. Affects not only KMail, but even kicker's clock.
4. Select "Settings -> Configure Toolbars..." 5. Change to "Main Toolbar <kmmainwin>" 6. Drag "Filter Spam" from "Available actions" to "Current actions"
I do not have that Filter, so I tried with 'Filter Log Viewer' FWIW.
7. Click "OK" and Kontact crashes with SIGSEGV see attached backtrace1.txt
Not here.
8. Starting Kontact again results in another crash with backtrace2.txt
Not here.
N.B. Before I could start Kontact and it would start up and I could change the toolbar config while it displayed the blue intro screen. Now it looks like it is trying to display the KMail part immediately, and as a result crashes before I can change anything.
9. Removed the line "<Action name="Filter_Spam" />" from "~/.kde/share/apps/kmail/kmmainwin.rc"
I suppose then the filter with that name is gone too? Or only the button on the toolbar?
No, that file only defines the toolbar entries, and has nothing to do with the filter itself. The filter is still available and still works if I select it from the "Message -> Apply filter" menu.
10. Kontact starts up fine.
Your recipe was crystal clear, but I could not reproduce the crashes.
Cheers,
Leen
-- Steve Boddy
OK, It's fixed and working. Instead of adding the filters to the toolbar with the "Settings -> Configure Toolbars..." item, I can go into the "Settings -> Configure Filters...", and select the filter. In the screen at the bottom there is a checkbox "Additionally add this filter to the toolbar". Clicking this adds the item to the toolbar without crashing the program. That doesn't add the entry to the kmmainwin file. I think it is probably crashing when it sees the entry in that file, and tries to bind the filter to the toolbar button. -- Steve Boddy
On Saturday 19 March 2005 21:13, Stephen Boddy wrote:
OK,
It's fixed and working. Instead of adding the filters to the toolbar with the "Settings -> Configure Toolbars..." item, I can go into the "Settings -> Configure Filters...", and select the filter. In the screen at the bottom there is a checkbox "Additionally add this filter to the toolbar". Clicking this adds the item to the toolbar without crashing the program.
Well, glad you figured this one out. I didn't know about it, so I've learned something. ;) I usually select the messages I want to filter, and then I press ^J (<Ctrl>-<J>). That combo applies all filters. Cheers, Leen
On Saturday 19 March 2005 20:32, Leendert Meyer wrote:
On Saturday 19 March 2005 21:13, Stephen Boddy wrote:
OK,
It's fixed and working. Instead of adding the filters to the toolbar with the "Settings -> Configure Toolbars..." item, I can go into the "Settings -> Configure Filters...", and select the filter. In the screen at the bottom there is a checkbox "Additionally add this filter to the toolbar". Clicking this adds the item to the toolbar without crashing the program.
Well, glad you figured this one out. I didn't know about it, so I've learned something. ;)
I usually select the messages I want to filter, and then I press ^J (<Ctrl>-<J>). That combo applies all filters.
Yeah, but that executes the whole filter chain. This is executing filters that don't get run on that Ctrl-J because a previous filter stops the processing of filters. These two filters are solely for me to correct Bogofilter manually when it makes a mistake as to what is Spam and what is Ham. Thanks for making me think things through though. Forcing me to retrace and check is what made the diff. -- Steve Boddy
participants (3)
-
Leendert Meyer
-
Randall R Schulz
-
Stephen Boddy