Add custom headers to emails #2880

Closed
opened 2025-11-02 04:52:25 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @jcabillot on GitHub (Feb 8, 2019).

  • Gitea version (or commit ref): 1.7.1
  • Git version: n/a
  • Operating system: docker gitea/gitea:1.7.1
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [x ] Not relevant
  • Log gist: n/a

Description

I would like to be able to filter emails from Gitea with my mail client (Thunderbird but it's not revelant).
Currently it's not possible for me because the sender used in my configuration is shared with another services and the subject for PR look likes [project] (no mention of Gitea).
What would be great is to be able to specify a custom header.

Is that something Gitea can implement ?

Originally created by @jcabillot on GitHub (Feb 8, 2019). - Gitea version (or commit ref): 1.7.1 - Git version: n/a - Operating system: docker gitea/gitea:1.7.1 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x ] Not relevant - Log gist: n/a ## Description I would like to be able to filter emails from Gitea with my mail client (Thunderbird but it's not revelant). Currently it's not possible for me because the sender used in my configuration is shared with another services and the subject for PR look likes [project] <issue title> <id> (no mention of Gitea). What would be great is to be able to specify a custom header. Is that something Gitea can implement ?
GiteaMirror added the type/question label 2025-11-02 04:52:25 -06:00
Author
Owner

@zeripath commented on GitHub (Feb 8, 2019):

You can edit the templates that are used to make the emails. I think if you copy templates/email to custom/templates/email and change them there and restart Gitea that should do it.

@zeripath commented on GitHub (Feb 8, 2019): You can edit the templates that are used to make the emails. I think if you copy templates/email to custom/templates/email and change them there and restart Gitea that should do it.
Author
Owner

@zeripath commented on GitHub (Feb 9, 2019):

@jcabillot does that solve your issue?

@zeripath commented on GitHub (Feb 9, 2019): @jcabillot does that solve your issue?
Author
Owner

@markusamshove commented on GitHub (Feb 11, 2019):

I've created new templates in e.g. custom/templates/mail/issue/comment.tmpl but the mails don't change.

I'm using sendmail

@markusamshove commented on GitHub (Feb 11, 2019): I've created new templates in e.g. `custom/templates/mail/issue/comment.tmpl` but the mails don't change. I'm using sendmail
Author
Owner

@jcabillot commented on GitHub (Feb 11, 2019):

Hmm I think I can work with that, thanks.

@jcabillot commented on GitHub (Feb 11, 2019): Hmm I think I can work with that, thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2880