# A list of server-side functions for weekend/novice Discourse developers?

**URL:** <https://meta.discourse.org/t/a-list-of-server-side-functions-for-weekend-novice-discourse-developers/45259>\
**Category:** Development\
**Created:** [6월 4, 2016, 9:41오후 UTC](https://meta.discourse.org/t/a-list-of-server-side-functions-for-weekend-novice-discourse-developers/45259 "2016-06-04T21:41:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tarek/32/124831_2.png) [@tarek](https://meta.discourse.org/u/tarek)\
**Post date:** [6월 4, 2016, 9:41오후 UTC](https://meta.discourse.org/t/a-list-of-server-side-functions-for-weekend-novice-discourse-developers/45259/1 "2016-06-04T21:41:05Z")

</div>

Hello friends,

This topic may belong in #Development. Apologies if it is misplaced.

I am trying to develop [a patch to core that will allow for certain added functionality](https://meta.discourse.org/t/allow-reply-to-individual-instead-of-topic-forum-mailing-list-feature/44905/19). I have found the relevant function in the relevant file to make my changes, however I am unsure of how to access information that is in the function.

What I would like is to access the email address of the user who posted the topic that the function is being accessed on.

Here is the code snipet, found in line 148 of lib/email/message\_builder.rb:

```ruby

      if allow_reply_by_email?
        result['X-Discourse-Reply-Key'] = reply_key
        result['Reply-To'] = "test1@test.com"
        result['CC'] = reply_by_email_address
      else
        result['Reply-To'] = from_value
      end

```

I want to replace `test1@test.com` with the email address of the author of the topic.

I have found some [documentation on API](https://meta.discourse.org/t/discourse-api-documentation/22706) that seems very relevant, but no “list of functions” as such. I don’t believe that what I’m looking for is called a “hook”, and the [list of hooks](https://meta.discourse.org/t/wip-list-of-all-the-hooks-in-discourse/11505) doesn’t appear relevant.

I understand that my question comes out of an incompetence in Rails programming, and I plan on studying Rails more over time. In PHP programming, which I am familiar with, I am able to access this information using some debugging tool like XDebug for PHP where I can ‘stop’ the code and see what variables are accessible. I haven’t figured out how to use such a tool for Rails yet.

Thank you for any suggestions on how to develop.

---

_[View the full topic](https://meta.discourse.org/t/a-list-of-server-side-functions-for-weekend-novice-discourse-developers/45259)._
