Rick Root wrote:
Hi,

I wondered if anyone had devised a way for individual vpopmail users to manage a procmailrc file via a web-based interface.

I use procmail in my vpopmail environment to drop certain messages into specific IMAP folders. But obviously it could also be useful for custom spam assassin stuff and other filtering.

I could probably write something like this in Perl (although to be honest I'd probably build the interface in some other environemtn and just build a web service in perl to handle the actual file management....

Anyway... anyone done anything like this?

Maybe the vpopmail daemon could work for you
http://www.qmailwiki.com/Vpopmaild

What you could do is run the vpopmail daemon and have the php web interface talk to the daemon. You can read and write files under a users Maildir directory with the correct permissions. So you could read the procmailrc file, display it in your php interface and then write changes to the disk.

The two vpopmaild commands would be:
read_file /full/path<crlf>
write_file /full/path (data lines)<crlf>.<crlf>

Ken Jones

Reply via email to