procmail testing

Robert Moskowitz rgm at htt-consult.com
Tue Jan 21 19:37:25 UTC 2014


On 01/21/2014 08:49 AM, Robert Moskowitz wrote:
>
> On 01/21/2014 08:39 AM, Heinz Diehl wrote:
>> On 21.01.2014, Robert Moskowitz wrote:
>>
>>> cat d1.letter |procmail
>> You can also re-run existing mails through the whole system, e.g. by
>> piping the mail into "formail -ds | procmail". You can do that in mutt
>> by pressing the "|" and writing the command in the field which opened
>> up.
>>> So what is missing? What is mutt saying was not done in constructing
>>> /var/spool/mail/rgm?
>> Maybe a permission problem?
>>
>> [htd at kiera ~]$ ls -l /var/spool/mail/htd
>> -rw-rw----. 1 htd mail 2630378 Jan 21 17:37 /var/spool/mail/htd
>
> No permission problem.  I have the same permissions:
>
>  ls -l /var/spool/mail/
> total 4
> -rw-rw----. 1 rgm mail 663 Jan 21 08:19 rgm
> -rw-rw----. 1 rpc mail   0 Jan  6 07:03 rpc
>
> and mutt opens the file.  But there is something it does not like 
> about it.  Something missing.

So I changed the run time to 11am, and procmail DID drop something into 
/var/spool/mail/rgm, but mutt says it is not a valid mailbox. I have 
emailed one of my smtp oldtimers for help, but meanwhile here is what is 
going into my mail (anyone see any obvious mail format problem?):

From: "(Cron Daemon)" <rgm>
To: rgm
Subject: Cron <rgm at lx120e> rsync -tvz ftp.rfc-editor.org::rfcs/*.txt 
/home/common/ietf/rfcs
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=45>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/1000>
X-Cron-Env: <LANG=en_US.utf8>
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=rgm>
X-Cron-Env: <HOME=/home/rgm>
X-Cron-Env: <LOGNAME=rgm>
X-Cron-Env: <USER=rgm>

skipping non-regular file "rfc-ref.txt"
RFCs_for_errata.txt
rfcxx00.txt

sent 3,486 bytes  received 125,267 bytes  15,147.41 bytes/sec
total size is 365,871,233  speedup is 2,841.65





More information about the users mailing list