Re: [qmailadmin] Template problem?

2004-01-07 Thread Brandon Weisz
Rick Widmer wrote:

First, I suggest you try something like adding

H1HERE I AM!/H1

in the footer.html file just above the /body tag, then load a
QmailAdmin page.  This will let you make sure you are really using the
template files you think you are.
this is working proplery, the footer loads with the additional test html.

Once you are sure which template files are being used, look in the file
colortable.  This view source output tells me the first line is:
000 #FF

the colortable file is correct --

000 #ff
001 #00
002 #cc
003 #cfcfcf
004 #e6e6e6
It should be:

000 #FF

Once we know what _is_ there, we have a better idea where to look.

Rick
Just for testing, I changed 000 #ff to 000 #00 in the 
colortable file.   The html was truncated again (with the different 
color code) tr bgcolor=#00td align=left.  I've also tried 
downgrading to older releases with the same situation.  I don't believe  
I was not having problems with these relases previously.  I've also used 
lynx on the server to load the page and changed to a source view.  The 
html shows truncated there as well.  I guess that rules out somthing 
local at my location.

Brandon


Re: [qmailadmin] Template problem? PATCH

2004-01-07 Thread Tom Collins
On Jan 7, 2004, at 6:30 AM, Brandon Weisz wrote:
Just for testing, I changed 000 #ff to 000 #00 in the 
colortable file.   The html was truncated again (with the different 
color code) tr bgcolor=#00td align=left.  I've also tried 
downgrading to older releases with the same situation.  I don't 
believe  I was not having problems with these relases previously.  
I've also used lynx on the server to load the page and changed to a 
source view.  The html shows truncated there as well.  I guess that 
rules out somthing local at my location.
Wow.  I just found the bug in get_color_text().  It's returning a 
pointer to a buffer in the function, but that buffer isn't declared 
static.  So, there's no guarantee that it won't disappear or get munged 
before it is used.  get_quota_used() suffered from the same problem.

Try this diff and see if it fixes the problem:

===
RCS file: /cvsroot/qmailadmin/qmailadmin/util.c,v
retrieving revision 1.3
diff -u -r1.3 util.c
--- util.c  8 Dec 2003 17:52:12 -   1.3
+++ util.c  7 Jan 2004 15:20:54 -
@@ -316,7 +316,7 @@
 char *get_color_text( char *index )
 {
- char tmpbuf[400];
+ static char tmpbuf[400];
  char *tmpstr;
   if (color_table == NULL) return();
@@ -333,8 +333,7 @@
 }
 /* bk - use maildir++ quotas now
 char *get_quota_used(char *dir) {
-char *tmpstr;
-char tmpbuff[MAX_BUFF];
+static char tmpbuff[40];
 double size;
 size = get_du(dir);
@@ -342,8 +341,7 @@
 size = size / 1048576;
 }
 sprintf(tmpbuff, %.2lf, size);
-tmpstr = tmpbuff;
-return tmpstr;
+return tmpbuff;
 }
 */
 /* quota_to_bytes: used to convert user entered quota (given in MB)
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [qmailadmin] Template problem?

2004-01-06 Thread Tom Collins
On Jan 6, 2004, at 6:42 AM, Brandon Weisz wrote:
http://download.thecrucible.ca/misc/qmailadmin.GIF

Is anyone else seeing this?

if you say you haven't modified anything.. .where's that yellow coming
from? :)

Good question ?  It renders yellow in IE and its white in other 
browsers (Mozilla and friends.)  I assure you
the templates, or anything for that matter in regards to qmailadmin 
havn't been changed.
Can you View Source in IE, save it to a file, and then send it to us 
as an attachment?  Then we could make sure that the formatting is 
correct.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [qmailadmin] Template problem?

2004-01-06 Thread Brandon Weisz
Tom Collins wrote:

Good question ?  It renders yellow in IE and its white in other 
browsers (Mozilla and friends.)  I assure you
the templates, or anything for that matter in regards to qmailadmin 
havn't been changed.


Can you View Source in IE, save it to a file, and then send it to us 
as an attachment?  Then we could make sure that the formatting is 
correct.

Sure, here it is.  This really has me confused.


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 TRansitional//EN 
http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd;
html
 head
  titleQmailAdmin thecrucible.ca/title
  meta http-equiv=content-type content=text/html; charset=iso-8859-1
  meta name=robots content=noindex,follow
 /head
 body bgcolor=#ff
  center
   h2/h2
   !-- Black frame 2 pixels wide --
   table cellpadding=2 cellspacing=0 border=0 align=center valign=top 
width=600 bgcolor=#00trtd
!-- Frame content --
table cellpadding=3 cellspacing=0 border=0 align=center valign=top width=100% 
bgcolor=#ff
 !-- Form title --
 tr bgcolor=#00 valign=center
  td align=leftfont color=#ff size=3Bthecrucible.ca/B/FONT/td
  td align=centerfont color=#ff size=3BEmail Accounts/B/FONT/td
  td align=rightfont color=#ff size=3b[Used: 
6/unlimited]/b/FONT/td
 /tr
 !-- End of form title --
 !-- Form content --
 tr
  td colspan=3
   table cellpadding=5 cellspacing=1 border=0 width=100%
!-- Form fields --
tr
 td
  table cellpadding=0 cellspacing=0 border=0 width=100%
   tr bgcolor=#ff
td colspan=5bCatchAll: rob.parks/b/td
   /tr
   tr bgcolor=#cc
th align=leftfont size=2Email Account/font/th
th align=leftfont size=2Comment/font/th
th align=rightfont size=2Usednbsp;/nbsp;/font/th
th align=leftfont size=2Quota (MB)/fontnbsp;nbsp;/th
thfont size=2ModifybrUser/font/th
thfont size=2DeletebrAccount/font/th
thfont size=2CatchAllbrAccount/font/th
   /tr 
   !-- inserts a five columns row --
   tr bgcolor=#fftd align=leftbrandon/tdtd align=leftBrandon 
Weisz/tdtd align=right0.00nbsp;/nbsp;/tdtd align=left128.00/tdtd 
align=centera 
href=/cgi-bin/qmailadmin/com/moduser?user=brandondom=thecrucible.catime=1073429454moduser=brandonimg
 src=/images/qmailadmin/modify.png border=0/a/tdtd align=center/tdtd 
align=centera 
href=/cgi-bin/qmailadmin/com/setdefault?user=brandondom=thecrucible.catime=1073429454deluser=brandonpage=1img
 src=/images/qmailadmin/radio-off.png border=0/a/td/tr
tr bgcolor=#fftd align=leftchris/tdtd align=leftChris Suttles/tdtd 
align=right0.02nbsp;/nbsp;/tdtd align=left128.00/tdtd align=centera 
href=/cgi-bin/qmailadmin/com/moduser?user=brandondom=thecrucible.catime=1073429454moduser=chrisimg
 src=/images/qmailadmin/modify.png border=0/a/tdtd align=centera 
href=/cgi-bin/qmailadmin/com/deluser?user=brandondom=thecrucible.catime=1073429454deluser=chrisimg
 src=/images/qmailadmin/trash.png border=0/a/tdtd align=centera 
href=/cgi-bin/qmailadmin/com/setdefault?user=brandondom=thecrucible.catime=1073429454deluser=chrispage=1img
 src=/images/qmailadmin/radio-off.png border=0/a/td/tr
tr bgcolor=#fftd align=leftnasrott/tdtd align=leftNeil Sowers/tdtd 
align=right0.00nbsp;/nbsp;/tdtd align=left10.00/tdtd align=centera 
href=/cgi-bin/qmailadmin/com/moduser?user=brandondom=thecrucible.catime=1073429454moduser=nasrottimg
 src=/images/qmailadmin/modify.png border=0/a/tdtd align=centera 
href=/cgi-bin/qmailadmin/com/deluser?user=brandondom=thecrucible.catime=1073429454deluser=nasrottimg
 src=/images/qmailadmin/trash.png border=0/a/tdtd align=centera 
href=/cgi-bin/qmailadmin/com/setdefault?user=brandondom=thecrucible.catime=1073429454deluser=nasrottpage=1img
 src=/images/qmailadmin/radio-off.png border=0/a/td/tr
tr bgcolor=#fftd align=leftpostmaster/tdtd align=leftPostmaster/tdtd 
align=right0.00nbsp;/nbsp;/tdtd align=left64.00/tdtd align=centera 
href=/cgi-bin/qmailadmin/com/moduser?user=brandondom=thecrucible.catime=1073429454moduser=postmasterimg
 src=/images/qmailadmin/modify.png border=0/a/tdtd align=center/tdtd 
align=centera 
href=/cgi-bin/qmailadmin/com/setdefault?user=brandondom=thecrucible.catime=1073429454deluser=postmasterpage=1img
 src=/images/qmailadmin/radio-off.png border=0/a/td/tr
tr bgcolor=#fftd align=leftrob.parks/tdtd align=leftRob Parks/tdtd 
align=right0.07nbsp;/nbsp;/tdtd align=left128.00/tdtd align=centera 
href=/cgi-bin/qmailadmin/com/moduser?user=brandondom=thecrucible.catime=1073429454moduser=rob.parksimg
 src=/images/qmailadmin/modify.png border=0/a/tdtd align=centera 
href=/cgi-bin/qmailadmin/com/deluser?user=brandondom=thecrucible.catime=1073429454deluser=rob.parksimg
 

Re: [qmailadmin] Template problem?

2004-01-06 Thread Jeremy Kitchen
On Tue, 2004-01-06 at 16:53, Brandon Weisz wrote:
 
  Can you View Source in IE, save it to a file, and then send it to us 
  as an attachment?  Then we could make sure that the formatting is 
  correct.
 
 Sure, here it is.  This really has me confused.

renders ok in evolution here.

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE

--
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE




Re: [qmailadmin] Template problem?

2004-01-06 Thread Rick Widmer


Brandon Weisz wrote:

Sure, here it is.  This really has me confused.


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/





!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 TRansitional//EN http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd;
html
 head
  titleQmailAdmin thecrucible.ca/title
  meta http-equiv=content-type content=text/html; charset=iso-8859-1
  meta name=robots content=noindex,follow
 /head
 body bgcolor=#ff
  center
   h2/h2
   !-- Black frame 2 pixels wide --
   table cellpadding=2 cellspacing=0 border=0 align=center valign=top width=600 bgcolor=#00trtd
!-- Frame content --
table cellpadding=3 cellspacing=0 border=0 align=center valign=top width=100% bgcolor=#ff
 !-- Form title --
 tr bgcolor=#00 valign=center
  td align=leftfont color=#ff size=3Bthecrucible.ca/B/FONT/td
  td align=centerfont color=#ff size=3BEmail Accounts/B/FONT/td
  td align=rightfont color=#ff size=3b[Used: 6/unlimited]/b/FONT/td
 /tr
 !-- End of form title --
 !-- Form content --
 tr
  td colspan=3
   table cellpadding=5 cellspacing=1 border=0 width=100%
!-- Form fields --
tr
 td
  table cellpadding=0 cellspacing=0 border=0 width=100%
   tr bgcolor=#ff
td colspan=5bCatchAll: rob.parks/b/td
   /tr
   tr bgcolor=#cc
th align=leftfont size=2Email Account/font/th
th align=leftfont size=2Comment/font/th
th align=rightfont size=2Usednbsp;/nbsp;/font/th
th align=leftfont size=2Quota (MB)/fontnbsp;nbsp;/th
thfont size=2ModifybrUser/font/th
thfont size=2DeletebrAccount/font/th
thfont size=2CatchAllbrAccount/font/th
   /tr 
   !-- inserts a five columns row --
   tr bgcolor=#fftd align=leftbrandon/tdtd align=leftBrandon Weisz/tdtd align=right0.00nbsp;/nbsp;/tdtd align=left128.00/tdtd align=centera href=/cgi-bin/qmailadmin/com/moduser?user=brandondom=thecrucible.catime=1073429454moduser=brandonimg src=/images/qmailadmin/modify.png border=0/a/tdtd align=center/tdtd align=centera href=/cgi-bin/qmailadmin/com/setdefault?user=brandondom=thecrucible.catime=1073429454deluser=brandonpage=1img src=/images/qmailadmin/radio-off.png border=0/a/td/tr
tr bgcolor=#fftd align=leftchris/tdtd align=leftChris Suttles/tdtd align=right0.02nbsp;/nbsp;/tdtd align=left128.00/tdtd align=centera href=/cgi-bin/qmailadmin/com/moduser?user=brandondom=thecrucible.catime=1073429454moduser=chrisimg src=/images/qmailadmin/modify.png border=0/a/tdtd align=centera href=/cgi-bin/qmailadmin/com/deluser?user=brandondom=thecrucible.catime=1073429454deluser=chrisimg src=/images/qmailadmin/trash.png border=0/a/tdtd align=centera href=/cgi-bin/qmailadmin/com/setdefault?user=brandondom=thecrucible.catime=1073429454deluser=chrispage=1img src=/images/qmailadmin/radio-off.png border=0/a/td/tr



First, I suggest you try something like adding

H1HERE I AM!/H1

in the footer.html file just above the /body tag, then load a
QmailAdmin page.  This will let you make sure you are really using the
template files you think you are.
Once you are sure which template files are being used, look in the file
colortable.  This view source output tells me the first line is:
000 #FF

It should be:

000 #FF

Once we know what _is_ there, we have a better idea where to look.

Rick









Re: [qmailadmin] Template problem?

2004-01-06 Thread Tom Collins
On Jan 6, 2004, at 4:33 PM, Rick Widmer wrote:
Once you are sure which template files are being used, look in the file
colortable.  This view source output tells me the first line is:
000 #FF

It should be:

000 #FF

Once we know what _is_ there, we have a better idea where to look.
Good catch.  Take a look at the file 'colortable' in your html 
templates directory.  It should look like this:

000 #ff
001 #00
002 #cc
003 #cfcfcf
004 #e6e6e6
If it doesn't, we need to find out why.  If it is, we need to find out 
why qmailadmin isn't reading it correctly.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [qmailadmin] Template problem?

2004-01-04 Thread Jeremy Kitchen
On Sun, 2004-01-04 at 15:05, Brandon Weisz wrote:
 I appear to have a problem with Email Accounts template on both rc1 and 
 rc2.  It looks the data is not lined up properly under the columns.  
 Somehow the email account made its way up above.  I havnt modified 
 anything.  Find a screenshot here:
 
 http://download.thecrucible.ca/misc/qmailadmin.GIF
 
 Is anyone else seeing this?

if you say you haven't modified anything.. .where's that yellow coming
from? :)

try removing qmailadmin's template directories, and rebuilding
qmailadmin.  It should replace them for you.

-Jeremy
-- 
Jeremy Kitchen [EMAIL PROTECTED]