newt: write message header and body to virtual file before printing, to avoid stutter

front
stanley lieber 2014-04-25 09:25:08 -04:00
parent 3dbc32d794
commit ab2838aa39
1 changed files with 7 additions and 5 deletions

View File

@ -103,17 +103,19 @@ y synchronize message list with server
} }
fn printp{ fn printp{
if(test -d $mnt/$group/$1){ if(test -d $mnt/$group/$1){
{ # don't stutter
grep -e '(^From|^Newsgroups|^Subject|^Date)' $1/header grep -e '(^From|^Newsgroups|^Subject|^Date)' $1/header
echo echo
cat $1/body cat $1/body
} >/tmp/p
cat /tmp/p
} }
echo echo
prompt=$group/$1 prompt=$group/$1
} }
fn printpp{ fn printpp{
if(test -d $mnt/$group/$1){ if(test -d $mnt/$group/$1)
cat $1/article cat $1/article
}
echo echo
prompt=$group/$1 prompt=$group/$1
} }