Footer - Discalimer

This forum contains features that has been archived. This section contains implemented features, duplicate requests, and requests which we have decided not to implement.
Post Reply

Do you need this feature?

Yes
42
75%
No
14
25%
 
Total votes: 56

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Footer - Discalimer

Post by martin » 2005-03-05 00:09

Make it possible to set a disclaimer which will automaticly be added to each message passing hmailserver. I think making it on domain level is an good idea.

http://www.hmailserver.com/tracker/?do=details&id=265

User avatar
olger901
Normal user
Normal user
Posts: 186
Joined: 2004-02-07 20:44

Post by olger901 » 2005-03-05 00:22

Could be a good idea, however this should be optional, it might be handy for larger companies for example to add a company slogan or something similair like it, but I wouldn't use it personally though.

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-03-05 00:24

Me neither. I hate those 14-line disclaimers that aren't enforceable in any way. :)

Glenn
Normal user
Normal user
Posts: 65
Joined: 2004-12-04 20:57

Post by Glenn » 2005-03-05 13:24

Yes, in the future we want to provide free e-mailadresses for our community members. Then we want to place some advertisement-text in the footer :)

User avatar
TheAngryPenguin
Senior user
Senior user
Posts: 341
Joined: 2004-10-11 20:51

Post by TheAngryPenguin » 2005-03-07 07:00

Even though they are stoopid, the people who pay we admins just seem to want this. I'd never recommend the use of this, but it may make or break the final decision of someone considering hMS as their mail server of choice. Hell, I can even enable something like this with Postini -- why not be able to do it here, at the source?

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-03-31 23:05

In hMailServer 4.0, it's extremly easy to do this using scripting. All you need to do is to put the following lines in the EventHandlers.vbs-file.

Code: Select all

  Sub OnDeliverMessage(oMessage) 
        ' Add a footer to all messages. 
        oMessage.Body = oMessage.Body & vbNewLine & vbNewLine & "Please note that this email contains no useful information whatsoever." 
        oMessage.Save 
   End Sub 
Perhaps this is enough?

tiker
New user
New user
Posts: 9
Joined: 2005-03-21 20:23
Contact:

Post by tiker » 2005-04-01 00:00

If it can be done through a script, why code it again a second time?

monster
New user
New user
Posts: 3
Joined: 2005-02-26 18:13

Post by monster » 2005-06-17 08:01

i agree w/ you martin. this much easier than re-writting the hmail. how ever this one only works in text mail format not in html format. :D

see :
http://www.hmailserver.com/forum/viewtopic.php?p=10655
martin wrote:In hMailServer 4.0, it's extremly easy to do this using scripting. All you need to do is to put the following lines in the EventHandlers.vbs-file.

Code: Select all

  Sub OnDeliverMessage(oMessage) 
        ' Add a footer to all messages. 
        oMessage.Body = oMessage.Body & vbNewLine & vbNewLine & "Please note that this email contains no useful information whatsoever." 
        oMessage.Save 
   End Sub 
Perhaps this is enough?

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-08-25 22:33

In 4.1 and later, you can modify the HTML body as well.

So again, I think we should just wait with this one. Anyone that disagrees?

plive
Normal user
Normal user
Posts: 182
Joined: 2004-11-11 09:55

Post by plive » 2005-08-25 23:11

Maybe you could add some templates and a wizard to help modifying those to achieve the most common tasks through scripts (I know there is a section in this forum but many hMailServer users do not know anything about programming).
Last edited by plive on 2005-08-25 23:33, edited 1 time in total.

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-08-25 23:13

Yupp.. I won't remove this feature request just because it's possible using scripting. Instead I'll just create a sample that shows how to do it that the user can modify easily..

User avatar
tazho
Normal user
Normal user
Posts: 53
Joined: 2005-04-04 18:05
Location: South Shields
Contact:

Post by tazho » 2005-09-16 15:19

I've already wrote this in my script. Our company wants it and uses the feature, but only for emails going outside of the local domains. So Any internal comms doesn't get a disclaimer.
If it were to become an option, I would require an additional optional to not do it for local mail / local domains.

plive
Normal user
Normal user
Posts: 182
Joined: 2004-11-11 09:55

Post by plive » 2005-09-16 15:31

Waht about posting your code?
Thank you, Paolo

User avatar
tazho
Normal user
Normal user
Posts: 53
Joined: 2005-04-04 18:05
Location: South Shields
Contact:

Post by tazho » 2005-09-16 16:45

Code: Select all

call disclaimer(oMessage)   ' in onAcceptMessage

sub disclaimer(oMessage)
dim disclaim
disclaim=false
Dim oRecipients
Set oRecipients = oMessage.Recipients

For i = 0 To oRecipients.Count - 1               
	if oRecipients(i).IsLocalUser = false Then disclaim = true   
next 
	  
if disclaim=true then
	oMessage.Body=oMessage.Body & vbcrlf & vbcrlf & "----------------" & vbcrlf & "Disclaimer goes here-PLAIN"
	if oMessage.HTMLBody <> "" then 
		oMessage.HTMLBody = oMessage.HTMLBody & "<br><br>----------------<br><h3>Disclaimer goes here-HTML</h3>"
		end if
	oMessage.Save
	end if
end sub 

User avatar
FAWTS
Normal user
Normal user
Posts: 74
Joined: 2005-06-18 15:25
Location: Paris
Contact:

Post by FAWTS » 2005-09-21 03:00

This script works very as soon as U understand that ' is for comment in vbs and that you must uncomment

Sub OnClientConnect(oClient)
End Sub

Sub OnAcceptMessage(oClient, oMessage)
call disclaimer(oMessage)
End Sub

Sub OnDeliverMessage(oMessage)
End Sub

And place call disclaimer(oMessage) between

Sub OnAcceptMessage(oClient, oMessage)

and

End Sub

In EventHandlers.vbs

But I have a question how to insert " in vbs (for example <a href="http://www...)

Thank you

cmurphy54
Senior user
Senior user
Posts: 550
Joined: 2004-09-25 22:11
Location: Atlanta, GA
Contact:

Post by cmurphy54 » 2005-09-21 03:20

If you want to enter something like <a href="http://www.domain.com">link</a> you would do
"<a href=""http://www.domain.com"">link</a>"

So, if you can't tell from the example, you include a " by using two of them.

User avatar
FAWTS
Normal user
Normal user
Posts: 74
Joined: 2005-06-18 15:25
Location: Paris
Contact:

Post by FAWTS » 2005-09-21 14:39

Thank's, it works perfectly !!!

User avatar
FAWTS
Normal user
Normal user
Posts: 74
Joined: 2005-06-18 15:25
Location: Paris
Contact:

Post by FAWTS » 2005-11-12 20:35

Hum, well, it worked perfectly until I tried HMS 4.2. Now only the first line of disclaimer appear with HTML mail and the 2 first lines with plain texte mail...

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-11-12 20:38

Can you post the code you're using?

User avatar
FAWTS
Normal user
Normal user
Posts: 74
Joined: 2005-06-18 15:25
Location: Paris
Contact:

Post by FAWTS » 2005-11-17 14:13

Sure, here the code :

Code: Select all

   Sub OnClientConnect(oClient)
   End Sub

   Sub OnAcceptMessage(oClient, oMessage)
   call disclaimer(oMessage)
   End Sub

   Sub OnDeliverMessage(oMessage)
   End Sub

    'in onAcceptMessage

sub disclaimer(oMessage)
dim disclaim
disclaim=false
Dim oRecipients
Set oRecipients = oMessage.Recipients

For i = 0 To oRecipients.Count - 1
   if oRecipients(i).IsLocalUser = false Then disclaim = true
next

if disclaim=true then
   oMessage.Body=oMessage.Body & vbcrlf & vbcrlf & "----------------" & vbcrlf & "first line" & vbcrlf & vbcrlf & "second line"
   if oMessage.HTMLBody <> "" then
      oMessage.HTMLBody = oMessage.HTMLBody & "<br><br>----------------<br><h4>First line.<br><br>second line.</h4>"
      end if
   oMessage.Save
   end if
end sub
Maybe it is the vbcrlf that doesn't work
Apache 1.3.33 PHP Version 4.4 hMailServer 4.1-B136 OS : Win XP SP2 AV : ClamAV 0.86.1

Talrinys
New user
New user
Posts: 1
Joined: 2006-01-29 19:23

Post by Talrinys » 2006-02-05 01:18

I still think adding this to the server itself as a configurable per-domain or per-user basis would work best, easier to setup and per-user would work nice, seeing as i need to provide a free email service for my friend, and he needs to be able to edit per-user.

User avatar
Blue Ninja
Normal user
Normal user
Posts: 238
Joined: 2005-12-31 00:22
Contact:

Post by Blue Ninja » 2006-02-05 02:21

Glenn wrote:Yes, in the future we want to provide free e-mailadresses for our community members. Then we want to place some advertisement-text in the footer :)
Bastard! Die die die! Then we'll need to treat all that mail as spam, too - Someone better start letting ASSP scan for footer-ads!

User avatar
Blue Ninja
Normal user
Normal user
Posts: 238
Joined: 2005-12-31 00:22
Contact:

Post by Blue Ninja » 2006-02-05 02:22

martin wrote:Me neither. I hate those 14-line disclaimers that aren't enforceable in any way. :)
Martin,

Just force the disclaimers to be somehow delimited with a MIME boundary or something, so that you can add another feature to hMailServer to automatically strip this disclaimer from all incoming messages :-)

kazmax
Normal user
Normal user
Posts: 45
Joined: 2005-12-27 02:40
Location: Bracknell, UK
Contact:

Post by kazmax » 2006-02-05 10:28

Before we run away with the idea that these appendages are unenforceable, I beg to differ. Not because they are necessarily enforceable in law, but because if a half-decent lawyer was on the job it would certainly be used as ammunition to prop up a case.

"M'lud, the plaintiff says he received no notification that the information supplied in the email could lead to his hard drive being trashed, however the defendants mail server through which this email passed has been independently verified to automatically add such notification to all emails, including this one".

Juries typically convict on the probability factor offered by the evidence, and not least the ability of the prosecution/defence lawyers - not on the fact that some law or other has been broken.

We've got enough stupid laws as it is, and the last thing we need is our parliament spending huge dollars enshrining email footers in law.

Me, I just ignore them like every other sane person does.

Andrew
Andrew McKay

jpeoples
Normal user
Normal user
Posts: 67
Joined: 2004-07-01 05:56
Location: Ft Lauderdale, Fl US of A

Post by jpeoples » 2006-02-21 09:54

kazmax wrote: "M'lud, the plaintiff says he received no notification that the information supplied in the email could lead to his hard drive being trashed, however the defendants mail server through which this email passed has been independently verified to automatically add such notification to all emails, including this one".
I do believe that you woefully neglected to appropriately punctuate the above quoted plea before the magistrate....DONS POWERED WIG...

"M'lud, the plaintiff says he received no notification that the information supplied in the email could lead to his hard drive being trashed, however comma the defendants mail server through which this email passed has been independently verified to automatically add such notification to all emails, including the one which led to the unfortunate circumstance in question".


I feel like i've done my bit to improve the plight of the human condition...*ducking and running*

kazmax
Normal user
Normal user
Posts: 45
Joined: 2005-12-27 02:40
Location: Bracknell, UK
Contact:

Post by kazmax » 2006-02-21 19:54

Disclaimer: I fialed Engerlish at schule, in fcat so baddly dat I neverer parsed ;)

jpeoples
Normal user
Normal user
Posts: 67
Joined: 2004-07-01 05:56
Location: Ft Lauderdale, Fl US of A

Post by jpeoples » 2006-02-22 16:37

For the record....I never parsed either....well there was that one unfortunate incident several years ago while i was in the army and very drunk.......*deadpan*

it wouldn't be just to let one single incident define a man's character

kazmax
Normal user
Normal user
Posts: 45
Joined: 2005-12-27 02:40
Location: Bracknell, UK
Contact:

Post by kazmax » 2006-02-22 20:05

Oh I don't know..... ;)

Post Reply