Steve Dondley wrote:
> raf wrote:
> > Postfix isn't the right thing for that. It's a mail
> > server, not a mail client.

Agreed.  But adding my comments to this too.

> > For example, with mutt, you can give it a list of all

Mutt is very good. :-)

> > Another alternative that could involve postfix slightly
> > it to tell postfix to use something like procmail when
> > delivering local mail (or use something like imapfilter),
> > and filter incoming mail through a script that performs
> > the transformation you want on the email before you see it.
> > But that's fiddly, requires writing code that munges your
> > email, so it requires great courage and/or foolhardiness.
> > I'd do something like this if I didn't already use mutt,
> > but I wouldn't recommend it.

I use Mutt and I also use Procmail.  The two tools both handle
different aspects of email.  Different parts.  Each useful.

> > Also, if your mail client launches a highly
> > configurable text editor for composing the reply, you
> > can probably configure the editor to automatically
> > remove and/or replace the addresses before you start
> > typing the reply.

And I am also using Emacs too.  Which of course is an editor toolbox
for creating domain specific editors.  So of course this is possible
there too.  But more fiddly to actually do.

> OK, thank you very much. You just saved me hours of feeling defeated and
> dejected trying to figure out how I might get it to work. :)

I'll agree and say definitely not Postfix itself.  Postfix does what
it does very well though.  But what you are asking for is more of a
Procmail topic.

> I'm using Roundcube which doesn't strike me as a power user's mail client
> but I may be able to do a quick hack the PHP or maybe even write a plugin to
> make this happen. A project for another time.

Now my additions.  If you are using RoundCube then almost certainly
RoundCube is using IMAP/IMAPS to communicate with a back end imapd
server.  A backend imapd that is most likely Dovecot?  This drifts
off-topic for Postfix so further discussion should be in a different
mail group, probably a RoundCube one, but...

RoundCube reads mail just the same as any other IMAP client.  Which
means you can actually use any other IMAP client.  And these days all
mail clients have the ability to talk IMAP to an IMAP server.

RoundCube sends mail just the same as any other system mail client.
Which is to say it either uses traditional /usr/sbin/sendmail via the
PHP mail() function or it uses SMTP to a mail server.

All of this is to say that a hobbyist handyperson could tinker
together a construct that would process mail either leaving postfix
and being delivered to dovecot on the receiving side.  Or on the
sending side outbound from RoundCube, sitting in the middle between
RoundCube and the outbound MTA.  For example on receiving the message
passing it through procmail could reduce all duplicate messages.
Procmail has a feature for doing exactly that action.

A tinkered together solution like this could work.  But all of these
types of tinkered together solutions will be "fiddly" because they
address a downstream symptom, many recipient addresses that all lead
to you, but not the cause, people doing a reply-all inappropriately.
So it will never be perfect.  But I say give it a go anyway since in
the journey you will learn a lot about how everything works and
knowledge is always useful.

Since this procmail mail filtering side of things is off topic here
for Postfix I will just toss this in and then back away hoping not to
annoy the core group here too much with discussion not postfix
related.

Bob

Reply via email to