From: <ja...@un...> - 2005-08-24 08:54:42
|
Paul, Any news on this issue yet ? Regards, Jan ----- Original Message ----- From: "Paul Lesneski" <pau...@op...> To: "Jan Alphenaar" <jan...@in...> Cc: "Squirrelmail Plugins List" <squ...@li...> Sent: Saturday, August 06, 2005 5:50 AM Subject: Re: [SM-PLUGINS] Question regarding plugin vacation_local > Dear list members, > > I am trying to install the squirrelmail vacation_local plugin. Although I > was quite successfull, things are not running as they supposed to be. If > anybody can give me a hand here, it is appreciated. > > This is my install: > > * apache_1.3.31 > * php-4.3.7 > * qmail-1.03 > * squirrelmail-1.4.5 > * vacation_local-2.0-1.4 > > After installing the plugin, it is available under 'options' in de > squirrelmail GUI. Now it is possible to fill in the following fields. > > 1) Send auto-reply to sender > 2) Vacation Subject > 3) Vacation message > 4) Forward incoming message to addresses listed below ? > 5) No local delivery; forward and/or auto-reply only > 6) Forward email addresses (one address per line) > > When I fill in the fields the files are created, just as I configured it > to > be in config.php file (see below). > > .vacation.fwd > .vacation.msg > .vacation.pref > .vacation.sq > .vacation.subj > .qmail > > So far so good, but the content of the .qmail file is not what it is > supposed to be: > > ================ > email@ToBeForwarded.com > "|/opt/qmail-vacation/bin/vacation jan" > \jan > ================ > > Qmail is not able to handle a .qmail file with such a syntax and therefore > the vacation plugin is not working on my system. > > When I manually edit the .qmail file and put the following content in it, > everything works fine. > > ================ > email@ToBeForwarded.com > |/opt/qmail-vacation/bin/vacation jan > /home/jan/Maildir/ > ================ Eiw. Thanks, qmail. There will have to be some changes made including some kind of config option that indicates what kind of .forward syntax you need. I can work on this in the next wee. > So I started to make changes to the vac_init.php file to get things up and > running. I changed the following lines which results in the fact that the > vacation plugin is working if I do not enable forwarding > > --> Line 204 & 205 > $forward_file_contents .= '|' . $vacation_path . ' ' > . $alias_list . $username . "\n"; > --> Line 224 > $forward_file_contents .= '/home/' . $username . '/Maildir/'; Please show unified diff. > When I enable forwarding everything breaks again. This is because the > plugin > does not strip of the ^M character at the end of each email address > (inserted by the browser). Qmail now thinks that the email address is > ja...@ex...^M so with the ^M at the end of the domain name. I am very > surprised that I have to make such changes to the code, since > approximately > 21.000 people already have downloaded the plugin. |