[kmail2] [Bug 400770] Erratic Kmail filtering (startup problem?)

David Lochrin bugzilla_noreply at kde.org
Sat Nov 10 03:05:15 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=400770

--- Comment #1 from David Lochrin <dlochrin at key.net.au> ---
I'd like to add another observation which may be relevant.

I created a filter for testing purposes, the first to be executed, which simply
copies each incoming email into a scratch folder and continues to the next
filter.  A subsequent filter ("Link") tests the Return-Path header then, if
true, moves the email to another folder and exits.

But sometimes two copies of the email go to the Link mailbox, one which seems
perfectly OK and a second which has no bodypart, is permanently flagged as
"unread", and cannot be deleted.  Other effects are unpredictable; I have an
instance now where the same two copies also appeared in the scratch folder but
the copy with a blank bodypart was successfully deleted.

I've just disabled the first filter (which creates a copy) and I'll see if the
problem returns.

Does this sound like some sort of race condition?  I should say that one filter
(there are now only three active) pipes the bodypart of flowed-format emails
through the following bash script in order to remove the flowed-format line
wraps, and I think / assume piped procedures are executed synchronously:
   sed ':L1; /\x20$/{N; s/\x20\x0D/\x20/g; s/\x20\x0A/\x20/g; bL1}'
   exit 0

DL

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list