Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37759475
en ru br
ALT Linux repos
S:4.1.1-alt2
5.0: 3.6.1.cvs5-alt1.2
4.1: 3.6.1.cvs5-alt0.M41.2
4.0: 3.6.1.cvs5-alt0.M40.1

Other repositories
Upstream:3.3.1

Group :: Networking/Mail
RPM: claws-mail

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: claws-mail-alt-textviewer.patch
Download


diff --git a/tools/textviewer.sh b/tools/textviewer.sh
index 38c8894..b3ce01c 100755
--- a/tools/textviewer.sh
+++ b/tools/textviewer.sh
@@ -180,7 +180,7 @@ case $TYPE in
 		echo -e "Displaying \"$1\" using \"unrtf\":\n";
 		unrtf -t text "$1" 2>/dev/null | egrep  -v '^### ' | fold -s -w 72  ;;
 
-	TEXT)	cat "$1"				;;
+	TEXT)	cat "$1" | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g";;
 
 	MSWORD) which antiword  > /dev/null  2>&1 || 
 		{
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin