On Wednesday 09 July 2003 15:20, Sam Varshavchik wrote:
> Jesse Guardiani writes:
> >> You're making things too complicated than they need to be. Replacing
> >> the manifest constants with a getenv(), will be sufficient. And if
> >> getenv comes back empty, fall back to the original manifest constant.
> >
> > ok, thanks. See attached.
>
> This looks much better. I'll take it.
Great!
> You need to verify if you now need
> to make any changes to a second patch you posted later.
See attached for new patch.
However, please take a look at this thread first and let me know if you
like the idea behind the patch, or if you would rather have everyone
implement this sort of thing in stylesheets:
http://news.gmane.org/onethread.php?group=gmane.mail.sqwebmail&root=%3C200307070953.12795.jesse%40wingnet.net%3E
--
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v) 423-559-5145 (f)
http://www.wingnet.net
diff -ur sqwebmail-3.5.3.20030629.imageurl_templatedir_patch/sqwebmail/sqwebmail.c sqwebmail-3.5.3.20030629.imageurltag_patch/sqwebmail/sqwebmail.c
--- sqwebmail-3.5.3.20030629.imageurl_templatedir_patch/sqwebmail/sqwebmail.c Wed Jul 9 14:31:44 2003
+++ sqwebmail-3.5.3.20030629.imageurltag_patch/sqwebmail/sqwebmail.c Wed Jul 9 15:56:58 2003
@@ -1227,6 +1227,10 @@
{
doldapsearch();
}
+ else if (strcmp(kw, "IMAGEURL") == 0)
+ {
+ printf("%s", get_imageurl());
+ }
else if (strcmp(kw, "LOADMAILFILTER") == 0)
{
mailfilter_init();