El vie, 20-04-2012 a las 15:54 -0400, Alejandro VG escribió:
> Hola lister@s, necesito que un mensaje que sea enviado por correo,
> que 
> lleva un monton de cabezeras (por todos los servidores que ha pasado, 
> etc.) limpiarlo, o sea que solo me quede el texto como tal del mensaje
> y 
> en caso de que traiga alguna firma, de esas que ponen los servidores
> al 
> final o el mismo usuario, lo mismo. O sea lo que necesito es
> puramente 
> el texto del correo. Existe alguna manera de hacer eso en PHP o en
> bash??? 

te veo jugando con grep, en el email todos los encabezados comienzan por
su nombre ej

**************
Received: from [200.55.154.3] (port=59484 helo=ns2.jovenclub.cu) by
 tinored.jovenclub.cu with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim
 4.69) (envelope-from <yso...@uci.cu>) id 1SFqDZ-0006gv-Jo for
 gutl-l@jovenclub.cu; Thu, 05 Apr 2012 13:11:29 -0400
Received: from mx3.uci.cu ([200.55.140.180]) by ns2.jovenclub.cu with
smtp
 (Exim 4.69) (envelope-from <yso...@uci.cu>) id 1SFqDW-0002Db-Ez for
 gutl-l@jovenclub.cu; Thu, 05 Apr 2012 13:11:27 -0400
Received: (qmail 12844 invoked from network); 5 Apr 2012 17:11:23 -0000
Received: from unknown (HELO ucimail5.uci.cu) (10.0.0.188) by 0 with
SMTP;
 5 Apr 2012 17:11:23 -0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by
 ucimail5.uci.cu (Postfix) with ESMTP id 7C5FC1103E5 for
 <gutl-l@jovenclub.cu>; Thu,  5 Apr 2012 13:11:23 -0400 (CDT)
X-Virus-Scanned: amavisd-new at uci.cu
Received: from ucimail5.uci.cu ([127.0.0.1]) by localhost
(ucimail5.uci.cu
 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x1RoIgVGojfl for
 <gutl-l@jovenclub.cu>; Thu,  5 Apr 2012 13:11:22 -0400 (CDT)
Received: by ucimail5.uci.cu (Postfix, from userid 101) id 9BE011103EC;
 Thu,  5 Apr 2012 13:11:22 -0400 (CDT)
Received: from [10.53.4.121] (unknown [10.53.4.121]) (Authenticated
sender:
 yso...@uci.cu) by ucimail5.uci.cu (Postfix) with ESMTPSA id 946F21103E5
for
 <gutl-l@jovenclub.cu>; Thu,  5 Apr 2012 13:11:22 -0400 (CDT)
Message-ID: <1333646038.8977.3.camel@Fujitsu-LifeBook>
From: Yunier Soler Franco <yso...@uci.cu>
To: gutl-l@jovenclub.cu
Date: Thu, 05 Apr 2012 13:13:58 -0400
In-Reply-To: <1333641663.2817.56.camel@debian>
References: <018953e7-dd8a-4dc9-92a1-8a1057b23...@ucimail2.uci.cu>
         <1333637549.2817.45.camel@debian>
<4f7dc608.3080...@contre.sum.uo.edu.cu>
         <1333641663.2817.56.camel@debian>
X-Mailer: Evolution 3.2.3-0ubuntu5 
Mime-Version: 1.0
X-BeenThere: gutl-l@jovenclub.cu
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To:
=?iso-8859-1?q?Lista_cubana_de_soporte_t=E9cnico_en_Tecnologias?=
=?iso-8859-1?q?_Libres?= <gutl-l@jovenclub.cu>
List-Id:
 =?iso-8859-1?q?Lista_cubana_de_soporte_t=E9cnico_en_Tecnologias_Libres?=
 <gutl-l.jovenclub.cu>
List-Unsubscribe:
 <https://listas.jovenclub.cu/cgi-bin/mailman/options/gutl-l>, 
 <mailto:gutl-l-requ...@jovenclub.cu?subject=unsubscribe>
List-Archive: <http://listas.jovenclub.cu/pipermail/gutl-l>
List-Post: <mailto:gutl-l@jovenclub.cu>
List-Help: <mailto:gutl-l-requ...@jovenclub.cu?subject=help>
List-Subscribe:
 <https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l>, 
 <mailto:gutl-l-requ...@jovenclub.cu?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: gutl-l-boun...@jovenclub.cu
Errors-To: gutl-l-boun...@jovenclub.cu
X-SA-Exim-Connect-IP: 192.168.250.7
X-SA-Exim-Mail-From: gutl-l-boun...@jovenclub.cu
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
ns2.jovenclub.cu
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,RDNS_NONE,SPF_FAIL
 autolearn=no version=3.2.5
Subject: Re: [Gutl-l] Ayuda con paquete roto, estado grave de
inconsistencia
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000)
X-SA-Exim-Scanned: Yes (on ns2.jovenclub.cu)
X-Evolution-Source: pop://clement%40inder...@pop.inder.cu/

Prueba con esto que a mi me resolvio un problema similar:

$ sudo rm /var/lib/dpkg/info/adobe-flashplugin.list =

$ sudo rm /var/lib/dpkg/info/adobe-flashplugin.postinst
$ sudo rm /var/lib/dpkg/info/adobe-flashplugin.prerm
********************

tienes que estar haciendo grep -v  a las cabeceras que quieres eliminar
hasta lograr el resultado, 

ojo.. es tedioso pues o todos los emails tienen exactamente las mismas
cabeceras..


-- 
Salu2 
 ________________________
 Ulinx
 ???
 Linux user 366775
"En un problema con n ecuaciones
siempre habrá al menos n+1 incógnitas."


I Forum Mundial de Educacion Fisica - 
I Taller Internacional de Actividad Fisica y Calidad de Vida - 
Festival Internacional de Coreografia Aerobia - 
La Habana, Cuba. 6 al 9 de Noviembre de 2012


______________________________________________________________________
Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba.
Gutl-l@jovenclub.cu
https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l

Reply via email to