Summary: | Spurious "Missing Newsgorups: header" message when article subject contains a newline | ||
---|---|---|---|
Product: | [Unmaintained] knode | Reporter: | Tristan Miller <psychonaut> |
Component: | general | Assignee: | Volker Krause <vkrause> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ana |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Screenshot showing described behaviour
Screenshot showing corrupted outbox |
Description
Tristan Miller
2005-04-29 20:24:49 UTC
Created attachment 10845 [details]
Screenshot showing described behaviour
Important note: because the Subject header's embedded newline is saved along with the message, this bug also causes corruption of the outbox folder. That is, KNode interprets the blank line as the end of the article headers and the beginning of the body. See attached screenshot. Created attachment 10846 [details]
Screenshot showing corrupted outbox
I wasn't able to reproduce the message corruption, but it's definitely a bug, I'll fix this. SVN commit 414155 by vkrause: Remove newlines from the subject. CCBUG: 104788 M +10 -2 trunk/KDE/kdepim/knode/kncomposer.cpp --- trunk/KDE/kdepim/knode/kncomposer.cpp #414154:414155 @@ -1423,8 +1423,16 @@ void KNComposer::slotSubjectChanged(const QString &t) { - if(!t.isEmpty()) setCaption(t); - else setCaption(i18n("No Subject")); + // replace newlines + QString subject = t; + subject.replace( '\n', ' ' ); + subject.replace( '\r', ' ' ); + v_iew->s_ubject->setText( subject ); + // update caption + if( !subject.isEmpty() ) + setCaption( subject ); + else + setCaption( i18n("No Subject") ); } SVN commit 414160 by vkrause: Backport from trunk: Remove newlines from the subject. BUG: 104788 M +10 -2 branches/KDE/3.4/kdepim/knode/kncomposer.cpp --- branches/KDE/3.4/kdepim/knode/kncomposer.cpp #414159:414160 @@ -1423,8 +1423,16 @@ void KNComposer::slotSubjectChanged(const QString &t) { - if(!t.isEmpty()) setCaption(t); - else setCaption(i18n("No Subject")); + // replace newlines + QString subject = t; + subject.replace( '\n', ' ' ); + subject.replace( '\r', ' ' ); + v_iew->s_ubject->setText( subject ); + // update caption + if( !subject.isEmpty() ) + setCaption( subject ); + else + setCaption( i18n("No Subject") ); } |