usando una classe sono riuscito a scaricare gli e-mail da un account pop3
ad es questo è il risultato di RETR 1
codice:
+OK 946 octets
Return-path: <luca_guglielmetti@ticino.com>
Received: from [10.0.0.1] (unverified [62.48.119.41]) by ticino.com
(Rockliffe SMTPRA 6.0.6) with ESMTP id <B0036767063@mail.ticino.com> for <meteo@ticino.com>;
Wed, 23 Feb 2005 17:17:58 +0100
Message-ID: <421CAC6D.4070900@ticino.com>
Date: Wed, 23 Feb 2005 17:16:45 +0100
From: Luca Guglielmetti <luca_guglielmetti@ticino.com>
User-Agent: Mozilla Thunderbird 1.0 (X11/20041208)
X-Accept-Language: it, it-it, en-us, en
MIME-Version: 1.0
To: meteo@ticino.com
Subject: MeteoSud
X-Enigmail-Version: 0.89.5.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
MeteoSvizzera; 5.2.2005
6.2.2005; SO2; SO1; SO1; SO2; SO1; SO1; -10; -6; 1; NE; 10; NE; 10; VRB;
10; -4; -2; 4; NE; 10; NE; 10; VRB; 10; -3; 0; 90; asciutte; trocken;
7.2.2005; SO1; 0; 90; 8.2.2005; SO1; 0; 90; 9.2.2005; SO2; 0; 90
.
io vorrei arrivare ad avere una variabile con la stringa
codice:
MeteoSvizzera; 5.2.2005
6.2.2005; SO2; SO1; SO1; SO2; SO1; SO1; -10; -6; 1; NE; 10; NE; 10; VRB;
10; -4; -2; 4; NE; 10; NE; 10; VRB; 10; -3; 0; 90; asciutte; trocken;
7.2.2005; SO1; 0; 90; 8.2.2005; SO1; 0; 90; 9.2.2005; SO2; 0; 90
come logica cercherei MeteoSvizzera (che è un dato che resta invariato) e selezionerei la stringa a partire dalla M di MeteoSvizzera, solo che non so quali funzioni usare