procmail
[Top] [All Lists]

Re: procmail and pine

1998-02-10 21:19:31
On Sat, 7 Feb 1998, Thang Chiu wrote:

thang> SHELL=/bin/sh              
thang> LINEBUF=4096             
thang> PATH=$HOME/franklin2/bin:/bin:/usr/bin:/usr/local/bin
thang> VERBOSE=off
thang> MAILDIR=$HOME/Mail
thang> LOGFILE=$MAILDIR/log
thang> # the following recipe to test
thang> :0
thang> * ^From:.*Thang
thang> temp 
thang> 
thang> Both files are user, group, and world-readable. My problem is if
thang> I send myself mail, without the last three lines of the
thang> .procmailrc file, I correctly get mail in the $HOME/Mail/inbox
thang> folder which PINE reads correctly. However, with the last three
thang> lines included, mail is sent correctly to the $HOME/Mail/temp
thang> folder listed as a separate file (such as msg.ArKD), but which
thang> PINE can not read (it said there is 0 message in the temp
thang> folder). In addition, my unix shell prompts me that I receive new
thang> mail, BUT displays the first few lines of the OLDEST message,
thang> instead of the message I just received (the newest message).
thang> Likewise, I get the same errors when I use the above .procmailrc
thang> with the last three lines deleted but with
thang> DEFAULT=$MAILDIR/inbox. (The message is delivered to inbox as a
thang> file (msg.58UE) but which PINE cannot read.) What is the cause of
thang> this

To me 'msg.xxxx' sounds as if you have either created $MAILDIR/temp as a
directory, or appended a '/' to its invocation in the procmail recipe
(evidently not the case with temp, since you gave that recipe, but what
about inbox?), or both. 

thang> and how can I fix it? 

If the target is a directory instead of a flat file, rename it.
Procmail will then create the flat file itself, the next time it
delivers to the target.

Hoping this helps,
-- 
   Rick Troxel     Rick_Troxel(_at_)nih(_dot_)gov     
rick(_at_)helix(_dot_)nih(_dot_)gov
     http://www.dc-sage.org/bios/rick_troxel  301/435-2983
/////////////////////////////////////////////////////////////////
All effort and exertion put forth by man from the fullness of his
heart is worship, if it  is prompted  by the  highest motives and
the will to do service to humanity.                 --Abdu'l-Baha

<Prev in Thread] Current Thread [Next in Thread>