Summary: | No fax sent when special characters are included in the sender information | ||
---|---|---|---|
Product: | [Unmaintained] kdeprint | Reporter: | comet.friend |
Component: | kdeprintfax | Assignee: | KDEPrint Devel Mailinglist <kde-print-devel> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | christian.schupfner, jlayt |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Slackware | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
comet.friend
2005-05-27 11:17:00 UTC
UNCONFIRMED (batch reassigning messed this) *** Bug 113421 has been marked as a duplicate of this bug. *** SVN commit 532670 by tibirna: allow for # (hash) characters in a fax number allow passing the raw number to the commandline fax command Both fixes courtesy of Ray Lischner. Thank you! CCMAIL:rl.news@tempest-sw.com BUG:106369 M +5 -3 faxctrl.cpp --- branches/KDE/3.5/kdebase/kdeprint/kdeprintfax/faxctrl.cpp #532669:532670 @@ -60,9 +60,9 @@ KConfig *conf = KGlobal::config(); conf->setGroup( "Personal" ); - // removes any non-numeric character, except ('+','*') (hope it's supported by faxing tools) + // removes any non-numeric character, except ('+','*','#') (hope it's supported by faxing tools) QString strip_s = s; - strip_s.replace( QRegExp( "[^\\d+*]" ), "" ); + strip_s.replace( QRegExp( "[^\\d+*#]" ), "" ); if ( strip_s.find( '+' ) != -1 && conf->readBoolEntry( "ReplaceIntChar", false ) ) strip_s.replace( "+", conf->readEntry( "ReplaceIntCharVal" ) ); return strip_s; @@ -253,6 +253,8 @@ // arguments else if (isTag( match, "%number" )) v = processTag( match, stripNumber( item.number) ); + else if (isTag( match, "%rawnumber" )) + v = processTag( match, item.number ); else if (isTag( match, "%name" )) v = processTag(match, item.name); else if (isTag( match, "%comment" )) @@ -395,7 +397,7 @@ addLogTitle( i18n( "Sending fax to %1 (%2)" ).arg( item.number ).arg( item.name ) ); - QString cmd = replaceTags( m_command, tagList( 3, "%number", "%name", "%enterprise" ), NULL, item ); + QString cmd = replaceTags( m_command, tagList( 4, "%number", "%name", "%enterprise", "%rawnumber" ), NULL, item ); m_process->clearArguments(); *m_process << cmd; addLog(i18n("Sending to fax using: %1").arg(cmd)); Closing old Resolved status bug. |