Dag Wieers said: > When I want to save it, I get: > > Formatting error: Internal base64 decoder error: Error writing > attachment > to "/home/dag/dstat-color.patch"
Hmm, maybe it's time to file a bug against SquirrelMail, too :-) (Looks like it forgot a newline between the base64 part and the MIME boundary-- strange...) I'll try attaching it again, but if you download the patch from the link at http://bugs.debian.org/300288 and chop off the last line (garbage from decoding the boundary), it should be OK. -- Charles Lepple
--- dstat.orig 2005-03-01 17:06:35.000000000 -0500 +++ dstat 2005-03-18 23:25:59.000000000 -0500 @@ -1251,7 +1251,10 @@ ### Check terminal capabilities # if not sys.stdout.isatty() or not curses.wrapper(lambda s:curses.has_colors()): - if not sys.stdout.isatty() or os.environ.get('TERM',None) not in ('ansi', 'linux', 'rxvt', 'screen', 'screen-w', 'xterm'): + if sys.stdout.isatty(): + if os.environ.get('TERM',None) not in ('ansi', 'linux', 'rxvt', 'screen', 'screen-w', 'xterm', 'xterm-color'): + op.color = False + else: op.color = False op.nolimit = True op.update = False