List Info

Thread: Double To: and Subject: headers




Double To: and Subject: headers
country flaguser name
Georgia
2007-09-23 08:57:59
Hello,

I have successfully install ilohamail 0.8.14-0rc3sid on my
debian etch
box. I have noticed the following problem: there are double
To: and
Subject: headers in every outgoing mail. I have checked the
source and
found that compose2.php contains:

                       $received_header = "Received:
from
".$_SERVER["REMOTE_ADDR"]." (auth. user
$loginID$host)rn";
                       $received_header.= "         
by
".$_SERVER["SERVER_NAME"]." with HTTP;
".TZDate($my_prefs["timezone"])."rn&qu
ot;;
                       $headerx =
$received_header."To:
".$to."rn".(!empty($subject)?"Subject:

".$subject."rn":"").$headerx;

Appending 12 spaces before To: and Subject: lines here fixes
the problem.

Another problem is that IlohaMail version on index page is
reported as
Version 0.8.14-RC2 not RC3.

Best Regards,

George

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ilohamail-users mailing list
Ilohamail-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ilohama
il-users

Sent folder and lost sent mail (was: Re: Double To: and Subject: headers)
country flaguser name
Czech Republic
2007-09-23 18:29:14
George Chelidze wrote:
> Hello,
>
> I have successfully install ilohamail 0.8.14-0rc3sid on
my debian etch
> box. I have noticed the following problem: there are
double To: and
> Subject: headers in every outgoing mail. I have checked
the source and
> found that compose2.php contains:
>
>                        $received_header =
"Received: from
> ".$_SERVER["REMOTE_ADDR"]." (auth.
user $loginID$host)rn";
>                        $received_header.= "       
  by
> ".$_SERVER["SERVER_NAME"]." with
HTTP;
>
".TZDate($my_prefs["timezone"])."rn&qu
ot;;
>                        $headerx =
$received_header."To:
>
".$to."rn".(!empty($subject)?"Subject:

>
".$subject."rn":"").$headerx;
>
> Appending 12 spaces before To: and Subject: lines here
fixes the problem.
>
> Another problem is that IlohaMail version on index page
is reported as
> Version 0.8.14-RC2 not RC3.
>
> Best Regards,
>
> George
>   
Having no intention in changing the source code (for
upgrading
smoothness) yesterday, I worked around the double To/Subject
lines
problem by switching to SMTP localhost:25 instead of using
PHP's mail()
function.

I have another tip: There is a single thing I wish to tell
to new
unexperienced users of IlohaMail: That they should set their
Sent folder
to make sure they keep all sent mail for later reference. I
still did
not wanted to change the source. I ended making it using
conf/new_user.php. IlohaMail sends the mail to the user when
his/her
cache directory is created:

    if (!$error) {
       
        $email_address = $user_name;
        $subject = "Dear user $user_name, welcome to
webmail!";
        $message = "Welcome!nn";
        $message .= "This is automatic
mail...n";
        ...
        mail($email_address, $subject, $message, "From:
"Webmail"
<admin>");
    }

My Postfix MTA automatically expands <admin> to
<adminmydomain.tld>, so
I can use this very config for all my customers. This mail
is not
visibly coming from www-data and replies are sent to me.

I hope for the maintainer to add something like that to
new_user.php, so
there will hopefully be less lost sent mail in the future.

Alternatively: I understand it is hard to setup Sent folder
automatically as there is no standard name and each IMAP
client uses its
own one (which is even harder in localized Outlooks). But I
think there
would be nothing wrong when IlohaMail creates the Sent
folder in the
account (if nonexistent) under the configurable name and
puts the
message being sent there. Just behave as normal IMAP clients
do...

Anyway, great program, thanks for it!

-- 
///



------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ilohamail-users mailing list
Ilohamail-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ilohama
il-users

  
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )