Re: Re: location of folder list and message list templates

James A Baker <[email protected]>
Newsgroups gmane.mail.sqwebmail
Message-ID <[email protected]>
On Apr 25, 2004, at 18:16, Hugh Beaumont wrote:

> --- James A Baker <[email protected]> wrote:
>
>> In modern browsers (i.e. Safari and Mozilla, but not IE), I once even
>> revised the display of the table rows so that they didn't look like
>> rows at all, but were displayed inline with one another, and again so
>> that they were stacked on each other vertically, and another way so
>> they were hidden and didn't appear till you hovered over the subject,
>> which was the only item visible by default. -- Those were all done 
>> more
>> as tests than as practical applications, of course. But they were
>> mighty fun experiments, let me tell you! =)
>>
>> -jab
>>
>
> Thanks for your help! I do want to change the actual output of the 
> table but hopefully I can dig
> through the CSS some more and find a way to do what I want. I've 
> already modified the login,
> folder and folders templates.
>
> I've checked the archives and not found anything but I may as well ask 
> just in case - Are there
> any existing templates or other "skins" for sqwebmail. All I found was 
> the one at
> legacysystems.org and the other forked sqwebmail project.
>
> Also, is anyone aware of how to control the "landing" page of the 
> login script? For example, I
> would like the default page after a successful login to be the Inbox 
> and not the folder list. Any
> ideas?
>

Regarding the "skins" that are out there... No, I don't think there 
have been many others actually submitted to the community. I believe 
several other people offered their changes at one time or another over 
the last year or so. But if any others actually showed up, I can't 
remember them. -- Though if you look back far enough in the archives 
(and search for just the right thing?) you might find 2-3 others that I 
vaguely remember looking over about a year ago. They were 
demonstrations of site customizations, but the maintainers of the sites 
did not offer up any sort of skin, as I recall. Just a chance to see 
what they'd done to their installation.

As for the "landing" page... I _believe_ that what you want is in the 
file sqwebmail.c (~ line 2984) if I read the code properly. (Admittedly 
though, I only skimmed through code for a minute... just using my 
faulty memory of what's what to merely guess the right area, was how I 
found that line.) You'd have to ask Sam, or try changing it and 
compiling, to know if that's right for sure.

In case the line is in a different place between my current copy of the 
source and the one you're working from... the context is this:

				sqpcp_login(ubuf, p);
				maildir_acl_reset(".");

				http_redirect_argss("&form=folders", "", "");
				/* output_form("folders.html"); */
				free(ubuf);
				return(0);

The bit you want to change (if this is indeed the sought after line, 
that is) would be the "&form=folders" part. Change it to read 
"&form=folder&folder=INBOX" (note the removal of the "s" from 
"&form=folders"!) ... or at least to something like that, which I 
believe should then do what you want.

Sam, you want to check me on this though?? -- Is that the correct 
place? And that is all he needs to change, right? -- Thanks.

-jab
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.