FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 07-30-2008, 08:53 AM
Gary Stainburn
 
Default EXIM - append advert

Hi folks.

I've been asked to add a gif containing an advert to all outgoing emails.

Anyone got any ideas how to do this using Exim?

I need to be able to add the gif reliably catering for plain text, HTML and
MIME.

Also, I'd like to have a whitelist and add other filters so that it doesn't
get added to internal emails or existing business partners, .vacation
messages, Bulk emails (which we don't do, but would be nice to cater for
anyway) and mailing list stuff.

The main question is does anyone have any good examples of how to mangle
outgoing emails - I figure it's going to be something to do with the smtp
transport as that would immediately ignore all local deliveries
--
Gary Stainburn

This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-30-2008, 09:10 AM
Alan Cox
 
Default EXIM - append advert

On Wed, 30 Jul 2008 09:53:37 +0100
Gary Stainburn <gary.stainburn@ringways.co.uk> wrote:

> Hi folks.
>
> I've been asked to add a gif containing an advert to all outgoing emails.
>
> Anyone got any ideas how to do this using Exim?

Its not doable. You can botch it but it will cause badness. Technically
it doesn't work out sanely, and you might want to seek legal advice on
some other points...

> I need to be able to add the gif reliably catering for plain text, HTML and
> MIME.

For the plain text case it isn't supported. For MIME you would need to
decide what to add it to and for HTML you will need to parse the entire
HTML document (remembering it may not be a fully valid SGML document),
analyse it somehow to deduce where to place the image in the document
validly so it will be seen and then add it. You'll then need to convert
the mail to mime multipart and add the image section as mailers won't
fetch images over the web.

As you are in the UK you also want to consider
- That adverts in mail sent outgoing to people who are not currently in
business with you with an existing relationship may contravene the
regulations on e-commerce and email.
- That if you mangle email you will break any digital signatures on
emails.
- That adding your advert to a third party work may contravene the
copyright act.
- That adding your advert to material you are forwarding which is for
another bodies trademarked product may place you in conflict with
trademark law.
- That some of your customers will probably drop all mail with images as
spam

> Also, I'd like to have a whitelist and add other filters so that it doesn't
> get added to internal emails or existing business partners, .vacation
> messages, Bulk emails (which we don't do, but would be nice to cater for
> anyway) and mailing list stuff.

I think you have it backwards. I do not believe you can generally
advertise except in existing customer relationships without permission -
but you should consult your company lawyer on that matter.

> The main question is does anyone have any good examples of how to mangle
> outgoing emails - I figure it's going to be something to do with the smtp
> transport as that would immediately ignore all local deliveries

What you can do (and as a business may in some cases have a legal duty to
do) is to add identifiers for the business - see the recommendations on
the companies house site. Adding a new header such as Organization: is
relatively easy to do.



Alan

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-30-2008, 05:21 PM
Gordon Messmer
 
Default EXIM - append advert

Alan Cox wrote:

On Wed, 30 Jul 2008 09:53:37 +0100
Gary Stainburn <gary.stainburn@ringways.co.uk> wrote:


Hi folks.

I've been asked to add a gif containing an advert to all outgoing emails.

Anyone got any ideas how to do this using Exim?


Its not doable. You can botch it but it will cause badness. Technically
it doesn't work out sanely


That's silly. Of course it's doable. MIME allows nesting, so there's
no reason to modify MIME parts.


I wrote a filter for the Courier mail server that does this, on a
customer's behalf:

http://www.dragonsdawn.net/~gordon/courier-pythonfilter/latest/filters/add_signature.py

Not that I *like* adding signatures. I think it's a bad practice that
people abuse, mostly to add disclaimers or demands that have no legal
backing. I'm just saying that it's possible to do this and not break
anything.


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 01:01 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org