Re: Weird date issue with emails

Vincent Danen <[email protected]> Sat, 11 Oct 2003 20:32:51 -0600
Newsgroups gmane.comp.bug-tracking.anthill.user
Message-ID <[email protected]>
--===============7933401434588514==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="R/XXzwRD6iKUjf7i"
Content-Disposition: inline


--R/XXzwRD6iKUjf7i
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri Oct 10, 2003 at 10:21:21AM -0700, Scott Brown wrote:

> I was able to apply the following, so that this works correctly, that is,=
=20
> it sends mail with the correct GMT offset:
>=20
>     if ($emailto !=3D "") {
>       $today =3D date("r");
>       $retval =3D @mail($emailto,
>               "[Bug #" . $bugnum . "] [" . stripslashes($compt) . "] " .=
=20
> stripslashes($bug['shortdesc']), $message,
>               "Date: " . $today . "\r\nFrom: " . $config['mdaemon'] . " <=
"=20
> . $config['memail'] . ">\r\nCC: " . $cc . "\r\n" . $replyto . "Return-Pat=
h:=20
> <" . $config['memail'] . ">\r\nX-Mailer: " . _NAME . " " . _VERSION);
>     }
>=20
> Worked like a charm. I only modified the two places in functions where=20
> mail() is called; are there others I should be aware of?

The newuser.php uses mail() as well, so you'd want to make the modification
there also.

> I don't know if you want to apply it to CVS or not; I wouldn't think it=
=20
> would hurt, and it is recommended at the PHP site that this always be=20
> explicitly set in the header in code...

Yup, I agree.  I'll add this in shortly.

--=20
MandrakeSoft Security; http://www.mandrakesecure.net/
Online Security Resource Book; http://linsec.ca/
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FE6F2AFD : 88D8 0D23 8D4B 3407 5BD7  66F9 2043 D0E5 FE6F 2AFD}


--R/XXzwRD6iKUjf7i
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQE/iL1TIEPQ5f5vKv0RArujAKCp7UBngQ4Mtdp23rf/ksFh4XWVoQCbB4mG
JOEEKWjxiBs6eeneBUlySi0=
=ue6d
-----END PGP SIGNATURE-----

--R/XXzwRD6iKUjf7i--


--===============7933401434588514==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Anthill-users mailing list
Anthill-users-+mQDA36h6dWw5LPnMra/[email protected]
http://vmlinuz.ca/mailman/listinfo/anthill-users

--===============7933401434588514==--