Koozali.org: home of the SME Server

Template Question

tandum

Template Question
« on: February 11, 2006, 12:54:28 PM »
I'm adding the bcc plugin to qpsmtpd in SME 7 and it works fine but I have a template problem. If I create the config files to make it work the way I want it to in templates-user and then add my extra config files to the email-update event they don't expand when I triggered the event. If I add them to templates-custom they expand just fine. Am I doing something wrong?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Template Question
« Reply #1 on: February 11, 2006, 04:15:41 PM »
Quote from: "tandum"
I'm adding the bcc plugin to qpsmtpd in SME 7 and it works fine but I have a template problem. If I create the config files to make it work the way I want it to in templates-user and then add my extra config files to the email-update event they don't expand when I triggered the event. If I add them to templates-custom they expand just fine. Am I doing something wrong?


Yes. templates-user is for templates for files in people's home directories - e.g. the .qmail file which directs mail delivery. templates-custom is the correct place. I'm sure this is documented.

tandum

Re: Template Question
« Reply #2 on: February 12, 2006, 12:21:07 AM »
Quote from: "CharlieBrady"
I'm sure this is documented.

Thanks Charlie, I found the document your thinking about.

http://mirror.contribs.org/smeserver/contribs//gordonr/devguide/html/devguide.html

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Re: Template Question
« Reply #3 on: February 14, 2006, 02:37:14 PM »
Quote from: "tandum"
I'm adding the bcc plugin to qpsmtpd in SME 7 and it works fine but I have a template problem. If I create the config files to make it work the way I want it to

We've already added configuration for the bcc plugin (see bug 13).

If you have suggestions for improvements, please raise them in the bug tracker with what you changed, and why.

Custom templates are a last resort - let's get the features in the base, wherever it is sensible to do so.

BTW: The Developer's Guide is linked from the Development page:

http://no.longer.valid/phpwiki/index.php?Development

The copy in my contribs directory is my Work In Progress version and will move as the document becomes more final.
............

tandum

Template Question
« Reply #4 on: February 17, 2006, 01:05:43 PM »
gordon,

I can't find bug 13, it's gone:  but,

If I want to screw around with config files, I'll do just that. If I come up with something others can use, then I'll share it, and I have in the past.

If what I find needs to go into the core then I'll recommend it goes there and outline why.

Regarding this bcc plugin,  I now see your version in pre3 and have over written it in tempates-custom to do what I want it to do.

The draw card in smeserver is the web interface. That is where you need to concentrate.

robin

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Template Question
« Reply #5 on: February 17, 2006, 09:32:06 PM »
Quote from: "tandum"
gordon,

I can't find bug 13, it's gone:  but,

No, it's not gone. It is just marked as Verified and so doesn't appear on the "Open bugs" list. You can always type a bug number into the box on any Bugzilla page:

http://bugs.contribs.org/show_bug.cgi?id=13

Quote from: "tandum"

If I want to screw around with config files, I'll do just that. If I come up with something others can use, then I'll share it, and I have in the past.

If what I find needs to go into the core then I'll recommend it goes there and outline why.


No problems. I am trying to dissuade people from the all-too-common advice of putting in a custom template, and trying to encourage people to push up all of their work into a place where everyone can use it.

Quote from: "tandum"

Regarding this bcc plugin,  I now see your version in pre3 and have over written it in tempates-custom to do what I want it to do.

Could you outline in what way you feel it isn't doing the right thing for you?

Quote from: "tandum"

The draw card in smeserver is the web interface. That is where you need to concentrate.

robin

The web interface is very important, but getting the templates and other support right has to come first. Otherwise the web interface won't do anything useful. And just as you can muck around with config files, I will concentrate where I decide to concentrate...
............

tandum

Template Question
« Reply #6 on: February 24, 2006, 01:19:43 PM »
Quote from: "gordonr"

Could you outline in what way you feel it isn't doing the right thing for you?

It depends on the client. One wants everyone to receive every email in and out while another wants an archive he can browse (via webmail) of everything in and out but neither want admin, cron, faxmaster, etc, etc. Both want the bcc option not cc. All I need to do is write the config files bcc asks for and put them in the right place. "templates-custom?"


Quote from: "gordonr"

The web interface is very important, but getting the templates and other support right has to come first. Otherwise the web interface won't do anything useful. And just as you can muck around with config files, I will concentrate where I decide to concentrate...


Agreed, but there is a lot of web interface from 6 that is still missing in 7. I would have thought providing a version which did at least what the last one did via the interface would have been a starting point. I've never worked on a software project where the new release removed features that existed in the preceeding one. But I am probably confusing contribs that have been around for years with the core package contents.

Offline byte

  • *
  • 2,183
  • +2/-0
Template Question
« Reply #7 on: February 24, 2006, 03:46:57 PM »
Quote from: "gordonr"

The web interface is very important, but getting the templates and other support right has to come first. Otherwise the web interface won't do anything useful. And just as you can muck around with config files, I will concentrate where I decide to concentrate...


Quote from: "tandum"
Agreed, but there is a lot of web interface from 6 that is still missing in 7. I would have thought providing a version which did at least what the last one did via the interface would have been a starting point. I've never worked on a software project where the new release removed features that existed in the preceeding one. But I am probably confusing contribs that have been around for years with the core package contents.


I think the big thing here is that they had alot of work moving to centos base and that's why they may be missing some GUI feature's although they have put them on the command line...[/quote]
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Template Question
« Reply #8 on: February 24, 2006, 03:48:43 PM »
Quote from: "tandum"

Agreed, but there is a lot of web interface from 6 that is still missing in 7.


Really? Would you care to provide a list?

A few options have been knowingly removed from the web interface because they have been deprecated for security reasons. Significantly more changes have been made to the web interface by adding features (spam tagging/filtering, virus rejection/detection, finer grained DNS control).

Offline byte

  • *
  • 2,183
  • +2/-0
Template Question
« Reply #9 on: February 24, 2006, 03:51:18 PM »
Quote from: "byte"
Quote from: "gordonr"

The web interface is very important, but getting the templates and other support right has to come first. Otherwise the web interface won't do anything useful. And just as you can muck around with config files, I will concentrate where I decide to concentrate...


Quote from: "tandum"
Agreed, but there is a lot of web interface from 6 that is still missing in 7. I would have thought providing a version which did at least what the last one did via the interface would have been a starting point. I've never worked on a software project where the new release removed features that existed in the preceeding one. But I am probably confusing contribs that have been around for years with the core package contents.


I think the big thing here is that they had alot of work moving to centos base and that's why they may be missing some GUI feature's although they have put them on the command line... I thank Gordon/Charlie/Shad (other Dev's that I don't see) for there efforts to date
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Template Question
« Reply #10 on: February 24, 2006, 09:49:00 PM »
Quote from: "tandum"

It depends on the client. One wants everyone to receive every email in and out while another wants an archive he can browse (via webmail) of everything in and out but neither want admin, cron, faxmaster, etc, etc. Both want the bcc option not cc. All I need to do is write the config files bcc asks for and put them in the right place. "templates-custom?"


See the developer's guide - templates-custom should only be used if you need to override. You should use the templates hierarchy whenever possible.

We could make bcc/cc behaviour optional. I think that's an invasion of privacy, which is why the default is cc. The only difference is that it adds a header to inform people that the mail has been archived.

Adding exceptions for various senders (e.g. cron) would be a good idea. Please be sure to raise a bug with your changes so they can be incorporated in the base.

Quote from: "tandum"

Agreed, but there is a lot of web interface from 6 that is still missing in 7. I would have thought providing a version which did at least what the last one did via the interface would have been a starting point.


If something is missing, raise a bug. I don't believe that anything which was in the base in 5.x or 6.x is missing in 7.0

Quote from: "tandum"

I've never worked on a software project where the new release removed features that existed in the preceeding one.


We haven't.

Quote from: "tandum"

But I am probably confusing contribs that have been around for years with the core package contents.


You are. I am not aware of anything missing from the SME7 web interface.  There is a lot of work to do to get the well known contribs compatible with SME7/CentOS and that requires buy-in from the contribs authors - we can't do it all.
............

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Template Question
« Reply #11 on: February 24, 2006, 09:57:13 PM »
Quote from: "gordonr"

Adding exceptions for various senders (e.g. cron) would be a good idea.


"cron" generated mail won't be archived because it doesn't pass through qpsmtpd.

tandum

Template Question
« Reply #12 on: March 02, 2006, 03:09:23 PM »
Quote from: "CharlieBrady"
Quote from: "gordonr"

Adding exceptions for various senders (e.g. cron) would be a good idea.


"cron" generated mail won't be archived because it doesn't pass through qpsmtpd.

It does when admin has a remote address.

tandum

Template Question
« Reply #13 on: March 02, 2006, 03:13:43 PM »
Quote from: "CharlieBrady"
Quote from: "tandum"

Agreed, but there is a lot of web interface from 6 that is still missing in 7.


Really? Would you care to provide a list?

A few options have been knowingly removed from the web interface because they have been deprecated for security reasons. Significantly more changes have been made to the web interface by adding features (spam tagging/filtering, virus rejection/detection, finer grained DNS control).


A few options have been knowingly removed ... There's your list....

tandum

Template Question
« Reply #14 on: March 02, 2006, 03:20:03 PM »
I upgraded a box from beta5 to pre3 tonight. It's a twin opteron box with mutiple scsii disks. All looks to be okydoky .....