# 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:** [04.Июнь.2016 21:41:05 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:** 3

<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:** [05.Июнь.2016 17:50:18 UTC](https://meta.discourse.org/t/a-list-of-server-side-functions-for-weekend-novice-discourse-developers/45259/3 "2016-06-05T17:50:18Z")

</div>

Hi Falco,

OK, byebug was very useful in telling me that I definitely need to know the function.

I did this:

```plaintext
  if allow_reply_by_email?
    result['X-Discourse-Reply-Key'] = reply_key
byebug
    result['Reply-To'] = "test1@test.com"
    result['CC'] = reply_by_email_address

```

and then typed in `var all` from sidekiq. This shows all of the variables, and @opts seemed the relevant one. However, it does not contain anything like the sender’s email address, though it does contain post id (14). I think the way to pull this is to:

1. Ask what the user who posted post\_id 14
2. Ask what the email address of that user is
3. Export it as a variable.

Which brings me back to the original point that I have to figure out what function can do this..

---

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