Can I use KMail and procmail?
Yes, but it’s important to do it the right way or you might lose mail. In order to use procmail and KMail you need to set up KMail so that it will fetch new mail from the spoolfiles in which procmail drops your mail. Do not set up procmail to deliver mail in a KMail folder, this cannot work. For each procmail spoolfile, you then need to create an account from which KMail will fetch new mail. You also need to make sure you specify the right lockfile name for this account. When setting up an account, KMail will do some minimal parsing on your procmail file, and will try to list every spoolfile it has found, and also the lockfiles next to the “procmail lockfile” item. procmail lets the user specify lockfiles in three different ways, so there’s no way to establish a correspondence between the spoolfiles and lockfiles. So it’s really up to you to make sure you specify the right lockfile for each spoolfile.