Bonjour!
Le titre n’est pas très explicite, donc je m’explique :
Je récupère mes mails via fetchmail. Ces derniers sont stockés dans le dossier ~/Maildir/new . Pour les lire, je fais un simple
Cependant, le résultat est vraiment laid :
[code]Return-path: root@lothlorien
Envelope-to: root@lothlorien
Delivery-date: Fri, 10 Sep 2010 09:55:44 +0200
Received: from root by Lothlorien with local (Exim 4.72)
(envelope-from root@lothlorien)
id 1OtySV-0005cQ-VF
for root@lothlorien; Fri, 10 Sep 2010 09:55:44 +0200
Date: Fri, 10 Sep 2010 09:55:43 +0200
Message-Id: E1OtySV-0005cQ-VF@Lothlorien
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Subject: =?utf-8?q?apt-listchanges=C2=A0=3A_nouveaut=C3=A9s_pour_Lothlor
To: root@lothlorien
From: root root@lothlorien
sudo (1.7.4p4-2) unstable; urgency=low
The HOME and MAIL environment variables are now reset based on the
target user’s password database entry when the env_reset sudoers optio
is enabled (which is the case in the default configuration). Users
wishing to preserve the original values should use a sudoers entry lik
Defaults env_keep += HOME
to preserve the old value of HOME and
Defaults env_keep += MAIL
to preserve the old value of MAIL.
The change in handling of HOME is known to affect programs like pbuild
– Bdale Garbee bdale@gag.com Wed, 08 Sep 2010 14:29:16 -0600
[/code]
Je voudrais arranger tout ça. Je pense bien que je peux récupérer les champs from et Subject et Date à coup de grep. Mais pour ensuite n’avoir que le message, comment puis-je faire? Existe-t-il un soft du même genre que html2text mais pour les mails?
)
.