If you are systems administrator with the need to temporarily log the passwords used by successful Horde / IMP webmail logins try using the following code to log the credentials to a table called horde_logins in your horde MySQL database:
Edit /path/to/horde/imp/redirect.php and add this code near lines 213-219: