Re: email disclaimer insert; remove and instert
On Tue, Jul 29, 2008 at 7:07 AM, lyd mc [EMAIL PROTECTED] wrote: Hi darko, What I mean is adding a disclaimer/boilerplate for any outgoing message just like mimedefang feature. However, I don't want it to be redundant. For example if a mail already contains my disclaimer (usually mail from a reply message), it should be relocated next to the new message not at the bottom of the reply message. new message body here new message body here Disclaimer new location of disclaimer ---old messages here-- old message here old message here Disclaimer --- to be relocated I can tell you it is impossible. Why? While you can actually write a script to try to do it, you'll more likely end up breaking the e-mail format, because it will not be too easy to rightly guess the content-type/boundaries in replies. Well, take a look at procmail, with a client like mutt... you can do fancy things, but not the type you want! -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Oh My God! They killed init! You Bastards! --from a /. post ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: email disclaimer insert; remove and instert
On Jul 29, 2008, at 6:13 AM, Odhiambo Washington wrote: I can tell you it is impossible. Why? While you can actually write a script to try to do it, you'll more likely end up breaking the e-mail format, because it will not be too easy to rightly guess the content-type/boundaries in replies. If one converted all messages to mutlipart/mixed and added the disclaimer as text/plain part with a content-disposition: inline, then you might be able to safely ensure that each message had exactly one copy of the disclaimer. But any script will have to be fully and completely aware of all MIME structures, so using various perl libraries is where I would start. But of course you are right in that if you were replying to an unsnipped reply there is no way to know the structure of the quoted material in the first reply, so removing it from the quoted section may well be impossible to do reliably. On a side note, I'm wondering if the original poster is familiar with the arguments presented in http://www.goldmark.org/jeff/stupid-disclaimers/ I haven't updated that in years, but I think that the points still hold. -j ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: email disclaimer insert; remove and instert
On Tue, Jul 29, 2008 at 11:13 AM, Odhiambo Washington [EMAIL PROTECTED]wrote: I can tell you it is impossible. Why? While you can actually write a script to try to do it, you'll more likely end up breaking the e-mail format, because it will not be too easy to rightly guess the content-type/boundaries in replies. Well, take a look at procmail, with a client like mutt... you can do fancy things, but not the type you want! You won't know if it's impossible until you try it and fail repeatedly and grow some gray hairs from the experience. :-) But back to topic, I can see something like this being scriptable. It might wind up being one of those scripts that only works on one mail client which has been configured to display email in a particular way -- but seems like it could be done. -- regards, dg ..but the more you use clever tricks, the less support you'll get ... -- M.W.Lucas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: email disclaimer insert; remove and instert
On Tue, Jul 29, 2008 at 4:07 AM, lyd mc [EMAIL PROTECTED] wrote: What I mean is adding a disclaimer/boilerplate for any outgoing message just like mimedefang feature. However, I don't want it to be redundant. For example if a mail already contains my disclaimer (usually mail from a reply message), it should be relocated next to the new message not at the bottom of the reply message. new message body here new message body here Disclaimer new location of disclaimer ---old messages here-- old message here old message here Disclaimer --- to be relocated Ahh.. now i understand better. If I may ask, why do you want to do this? What is driving this request? Perhaps there might be a different approach to solving what you are trying to accomplish. -- regards, dg ..but the more you use clever tricks, the less support you'll get ... -- M.W.Lucas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: email disclaimer insert; remove and instert
On Tue, Jul 29, 2008 at 9:19 PM, darko gavrilovic [EMAIL PROTECTED] wrote: On Tue, Jul 29, 2008 at 11:13 AM, Odhiambo Washington [EMAIL PROTECTED] wrote: I can tell you it is impossible. Why? While you can actually write a script to try to do it, you'll more likely end up breaking the e-mail format, because it will not be too easy to rightly guess the content-type/boundaries in replies. Well, take a look at procmail, with a client like mutt... you can do fancy things, but not the type you want! You won't know if it's impossible until you try it and fail repeatedly and grow some gray hairs from the experience. :-) Not growing grey hair, but losing all that you have, even! But back to topic, I can see something like this being scriptable. It might wind up being one of those scripts that only works on one mail client which has been configured to display email in a particular way -- but seems like it could be done. If it was, it could have been done already.right now? There are reasons why this cannot be done easily: 1. E-mail disclaimers are considered stupid 2. It's not easy to mangle all types the same of mail as composition (mime type boundaries/content disposition) is always different. Hey, but who says you cannot do it? Let's see what you come up with :-) -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Oh My God! They killed init! You Bastards! --from a /. post ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: email disclaimer insert; remove and instert
On Tue, Jul 29, 2008 at 7:10 PM, Odhiambo Washington [EMAIL PROTECTED]wrote: 1. E-mail disclaimers are considered stupid They are considered stupid by some people on the Internet. But there are workplaces and businesses that require them in outgoing e-mail send by their staff. Does anyone read them or pay attention to those disclaimers? That's a topic for the chat list I guess. -- regards, dg ..but the more you use clever tricks, the less support you'll get ... -- M.W.Lucas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: email disclaimer insert; remove and instert
Hi guys, I think I should stick to currently available feature offered by mimedefang or altermime for the disclaimer thing. Thank you darko, odhiambo and jeffrey for your time. Best regards, alydiomc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: email disclaimer insert; remove and instert
are you using X11? do you use thunderbird/mozilla mail client? i believe thunderbird has a fancy signature add-on that does something like that. On Mon, Jul 28, 2008 at 10:07 PM, lyd mc [EMAIL PROTECTED] wrote: hi guys, Is there any program that insert or remove disclaimer? For example, if a reply message containing my disclaimer i want it to be removed at the end of the mail body and put somewhere before the QUOTE line. From:[EMAIL PROTECTED] To:[EMAIL PROTECTED] Subject: Re: disclaimer blah blah blah New messages My Disclaimer -- ( new location of disclaimer) ---Old message (Quoting) Old messages MY Disclaimer - (I want this to be remove and put above) Thank you. alydmc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- regards, dg ..but the more you use clever tricks, the less support you'll get ... -- M.W.Lucas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: email disclaimer insert; remove and instert
Hi darko, What I mean is adding a disclaimer/boilerplate for any outgoing message just like mimedefang feature. However, I don't want it to be redundant. For example if a mail already contains my disclaimer (usually mail from a reply message), it should be relocated next to the new message not at the bottom of the reply message. new message body here new message body here Disclaimer new location of disclaimer ---old messages here-- old message here old message here Disclaimer --- to be relocated Regards, alydmc --- On Tue, 7/29/08, darko gavrilovic [EMAIL PROTECTED] wrote: From: darko gavrilovic [EMAIL PROTECTED] Subject: Re: email disclaimer insert; remove and instert To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date: Tuesday, July 29, 2008, 11:17 AM are you using X11? do you use thunderbird/mozilla mail client? i believe thunderbird has a fancy signature add-on that does something like that. On Mon, Jul 28, 2008 at 10:07 PM, lyd mc [EMAIL PROTECTED] wrote: hi guys, Is there any program that insert or remove disclaimer? For example, if a reply message containing my disclaimer i want it to be removed at the end of the mail body and put somewhere before the QUOTE line. From:[EMAIL PROTECTED] To:[EMAIL PROTECTED] Subject: Re: disclaimer blah blah blah New messages My Disclaimer -- ( new location of disclaimer) ---Old message (Quoting) Old messages MY Disclaimer - (I want this to be remove and put above) Thank you. alydmc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- regards, dg ..but the more you use clever tricks, the less support you'll get ... -- M.W.Lucas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]