tentare di raccattare le mail direttamente
dai file D, se non ricordo male basta ``scartare'' le prime N righe...

questo è quello che sto cercando di fare, con
for FILE in `ls /var/spool/exim4/input/*D`
do
echo $FILE
cat $FILE | tail +12 >> /home/kerush/Mail/inbox
done

ma così facendo mutt dice "/home/kerush/Mail/inbox" non è una mailbox...
eppure a me non sembra male!! Scusate l'ignoranza ma qual'è il formato
di una mailbox?? La mia inbox è del tipo:

$ cat mbox | head -45
Return-path: <[EMAIL PROTECTED]>
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
       by localhost.localdomain with esmtp (Exim 4.62)
       (envelope-from <[EMAIL PROTECTED]>)
       id 1Ffzsl-000238-J8
       for [EMAIL PROTECTED]; Tue, 16 May 2006 15:46:39 +0200
Received: from unibo.mm.cineca.it [130.186.10.202]
       by localhost.localdomain with POP3 (fetchmail-6.3.4)
       for <[EMAIL PROTECTED]> (single-drop); Tue, 16 May 2006 15:46:39
+0200 (CEST)
Received: from posta.studio.unibo.it ([unix socket])
       by posta.studio.unibo.it (Cyrus v2.1.4) with LMTP; Thu, 07 Nov
2002 17:34:59 +0100
Received: from av2.mm.cineca.it (av2.mm.cineca.it [130.186.10.239])
       by smtp-in.unibo.mm.cineca.it (Postfix) with ESMTP id 598E33D42
       for <[EMAIL PROTECTED]>; Thu,  7 Nov 2002
17:34:59 +0100 (MET)
Received: from mail.supereva.it (unknown [195.110.126.60])
       by av2.mm.cineca.it (Postfix) with SMTP id E7A8F3B6D5
       for <[EMAIL PROTECTED]>; Thu,  7 Nov 2002
17:34:58 +0100 (CET)
Received: (qmail 19549 invoked by uid 320); 7 Nov 2002 16:34:57 -0000
Date: 7 Nov 2002 16:34:57 -0000
Message-ID: <[EMAIL PROTECTED]>
Received: from 137.204.45.36 ([EMAIL PROTECTED]) by mail.supereva.it
with HTTP; Thu Nov  7 17:34:57 2002
X-Originating-IP: [137.204.45.36]
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
Subject: Your first email on this server!!
X-Virus-Scanned: Spin SafeMail


auto-test of the email server

-----------------------------------------------------
Invia un sms gratis!
http://freesms.supereva.it/index.php

messaggio inviato con Freemail by www.superEva.it
-----------------------------------------------------


Return-path: <[EMAIL PROTECTED]>
Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
       by localhost.localdomain with esmtp (Exim 4.62)

...e via con l'altro messaggio...

Sto uscendo pazzo!!  Penso che dovrò provare con l'altro sistema:

editare i file nelle code di spool (c'è un file
H con i dati di spedizione e un file D con la mail vera e propria)

ovvero mi basta trasformare
[...]029  Auto-Submitted: auto-replied
065F From: Mail Delivery System <[EMAIL PROTECTED]>
023T To: [EMAIL PROTECTED]
059  Subject: Mail delivery failed: returning message to sender
054I Message-Id: <[EMAIL PROTECTED]>
038  Date: Wed, 17 May 2006 15:30:47 +0200
[...]
in To: [EMAIL PROTECTED]

Ancora many thanks!
Ci riuscirò prima o poi??

Reply via email to