[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Config Mutt (Was: Re: [Soluble] libstdc++2.8 mais quelques interrogations)



Am 2004-05-16 12:13:01, schrieb Sébastien Mengin:
>Le dim 16 mai 04 à 17:40, Michelle Konzack a écrit:
>> Pourquoi ca ?
>> 
>>   ______ ( ~/.muttrc ) _________________________________________________
>>  /
>> |  subscribe debian-user-french@lists.debian.org
>> |  set follow_up_to=no
>>  \______________________________________________________________________
>
>Moi ce que j'aimerais savoir c'est comment vous faites pour citer comme
>ça avec de jolies étiquettes autour des lignes extraites du système ?

C'est un petit bash-Script :-)

>C'est à la main, ou c'est une fonction de l'éditeur ?

Je utiliser mcedit et dan le editeur -> <F11>i et selectione 
la ligne de comand... par example:

    box ~/.mutt/muttrc

ou avec le stdin

    cat ~/.mutt/muttrc |box

Je rajouter le script comme attachment...
Il es pas encore pafect, mais ca marcher :-)

>Sébastien

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)
#!/bin/bash

if [ $1 ] ; then 
    IN_FILE=$1
else 
    TEMPFILE=`tempfile`
    cat /dev/stdin > $TEMPFILE
    IN_FILE="(stdin)"
fi
TITLE="  ____ $IN_FILE _______________________________"
echo "$TITLE"
echo " /"
if [ ! $IN_FILE == "(stdin)" ] ; then
    if [ $1 ] ; then
	sed 's/^/|  /' $1
    else
	echo "|"
    fi
else
    if [ $TEMPFILE ] ; then
	sed 's/^/|  /' $TEMPFILE
    else
	echo "|"
    fi
    rm $TEMPFILE
fi
FOOTER=" \______________________________________"
while [ `echo "$FOOTER" |wc -L` -lt `echo "$TITLE" |wc -L` ] ; do
    FOOTER="$FOOTER""_" 
done
echo "$FOOTER"

Attachment: signature.asc
Description: Digital signature


Reply to: