Group :: Rede/E-Mail
RPM: claws-mail
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: claws-mail-alt-textviewer.patch
Download
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 ||
{