Hi Mark,
I think your problem is that your Kmail and procmail uses different
file locking policies. They cannot agree on the inbox file.
Therefore, there won't be any mail delivered to the errorneous
mailbox file...
So if you want procmail to deliver mail to your ~/Mail/inbox file, you
just use the usual procmail syntax, but modify your kmailrc file in
your home directory putting the the line
"LockType=procmail_lockfile"
into the appropriate LOCAL account section like this:
[Account 1]
Folder=inbox
Location=/net/ns/home/wynnw/.newmail
Name=Work
Type=local
check-exclude=false
check-interval=10
precommand=
LockType=procmail_lockfile
^^^^^^^^^^^^^^^^^^^^^^^^^^
I hope this will help you...
Good luck: Viktor
P.s.: Procmail works for me, my wife and I use the same account, but
different email clients. So I made procmail to put her emails to
~/Mail/inbox for reading with Kmail and to filter my mail into
another mailbox.
Sorry for cc-ing this mail directly to you, your post was old when I
saw that...
On Tue, Dec 26, 2000 at 10:09:07AM +0000, Mark Weaver wrote:
> Hi List,
>
> There's something I'm curious about. I'm wondering if there is anyone else on
> the list that has either done this themselves, or know that it's possible,
> but I would like to be able to use Procmail to filter email for Kmail. Now I
> know I would have to pull the mail from a local dir, e.i.
> /var/spool/mail/$USER, and to get the mail I would have to use fetchmail or
> something else like that, however when I tried it on my machine it didn't
> seem to want to work.
>
> MAILDIR=$HOME/Mail
> DEFAULT=/var/spool/mail/mdw1982
> LOGFILE=/home/mdw1982/procmail/log
> SHELL=/bin/sh
>
> These are the values for the parameters at the top of the rc file that are
> being used and while these work flawlessly with Pine, they do not seem to
> work for Kmail. When I tested this the only line I made a change to was
> MAILDIR. For Pine the line reads MAILDIR=$HOME/mail, and for Kmail the line
> reads MAILDIR=$HOME/Mail.
>
> This, however, doesn't seem to work. Is there something wrong with my logic?
> what is it that I seem to be missing? I really love the power and flexibility
> that filtering with Procmail offers. The control is awesome and far out
> performs any other GUI email clients ability to filter.
>
> TIA,
> --
> Mark
>
> "If you don't share your concepts and ideals, they end up being worthless,"
> "Sharing is what makes them powerful."
>
> Linus Torvalds
>