automail
Tim Gorter
email@teletechnics.com
Thu, 8 Nov 2001 04:17:31 +0100
Hello fellow imp folk,
Some people have asked me to post this patch I wrote a while ago. The
problem is that it seized to function even on my server when a
security patch was done to the O/S and I had to figure it out first.
Automail as I have dubbed it basically ftp to your server using the
username and password supplied during imp login and then placed
procmail recipes to enable auto forwarding, and/or auto replies. Of
course it can be furthered in enhancing this side, which I want to do,
as procmail is a fairly powerful filtering system, but I do not want
to spend more time on this when (hopefully) soon the 2.3 version will
evolve into 2.4.x and thus I would have to start again.
I wrote this for 2.2.4 and have not tested it under 2.2.5 or 6
my system is
FreeBSD 4.2
php4-4.0.3
MySQL 3.22.32
The origional script that I started from was kindly given to me by
Dave Shanley, of Biggroup.
I have gone into the menu system, and added it such that in my defaults.php3
$default->use_automail = true;
therefore in my menu.inc you'll find
<?php if ($default->use_automail): ?>
<tr bgcolor="<?php echo $default->dark_bg ?>">
<td><a href="<?php $sess->purl('automail.php3') ?>" target="main"><img border="0" align="middle" src="<?php echo $default->graphics_url ?>/automail.gif" alt="*" height="18" width="18"></a></td>
<td>
<font size="2" face="<?php echo $default->font->face; ?>">
<a class="menuitem" href="<?php $sess->purl('automail.php3') ?>" target="main">
<?php echo $lang->automail ?></a>
</td>
</tr>
<?php endif; ?>
All my procmail recipes are pre-written, ie. the user does not get to
put values into them, the only place where values are put are for
forwarding email address, or the autoreply message.
Do make sure Procmail is installed on your system, and depending on
your O/S you may have to adjust the line that is placed in the
.forward file (which is written from automail.php3 line 65
automail.php3
menu.inc
you should find at
http://www.teletechnics.com/horde/
have fun, and of course if you have suggestions to improve, please let
me know, as soon as I know I can migrate my system to the 2.3 (2.4)
strain of horde/imp I will work at migrating this add-on.
cheers,
tim.
---------------------------------------------------
Teletechnics Afield
Tel +44 (0)7785 977 087 Fax +44 (0)20 7681 1178
mailto:email@teletechnics.com http://www.teletechnics.com
currently in: Barcelona, Spain