haraka / Haraka

A fast, highly extensible, and event driven SMTP server
https://haraka.github.io
MIT License
5.02k stars 662 forks source link

Identify a header in data event #1237

Closed melimanrique closed 8 years ago

melimanrique commented 8 years ago

I have a plugin that needs to identify a header to use it in data event but connection.transaction.header.get("Content-Type"); doesn't retrieve anything.

Is there a way to get that header in data or previously?

Thanks!

baudehlo commented 8 years ago

No, it hasn't been sent yet. We haven't mastered time travel yet :)

On Thu, Nov 5, 2015 at 3:31 PM, Melissa Manrique notifications@github.com wrote:

I have a plugin that needs to identify a header to use it in data event but connection.transaction.header.get("Content-Type"); doesn't retrieve anything.

Is there a way to get that header in data or previously?

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/haraka/Haraka/issues/1237.

melimanrique commented 8 years ago

@baudehlo Oh I didn't know that! Thanks

Now, I have the need to modify parts of the body using add_body_filter() according to some information that's included in a header.

Could you help me to figure out in which event should I do so?

msimerson commented 8 years ago

@melimanrique, are you still needing assistance here?

msimerson commented 8 years ago

If so, reopen.