Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow commenting tickets via mail #745

Closed
strk opened this issue Jan 24, 2017 · 14 comments · Fixed by #22056
Closed

Allow commenting tickets via mail #745

strk opened this issue Jan 24, 2017 · 14 comments · Fixed by #22056
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Milestone

Comments

@strk
Copy link
Member

strk commented Jan 24, 2017

It would be useful to be able to reply to email notified upon ticket activity.
This is more or less what's requested to Gogs via gogs/gogs#2602 (comment)

It could be some gitea readmail comand reading a message from stdin, letting system administrators configure an email address forwarded to the command (would be easy in unix world). Implies holding a database with identifiers for threads/users to match.

@tboerger
Copy link
Member

Not an easy task because multiple input ways have to be covered.

@tboerger tboerger added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jan 24, 2017
@tboerger tboerger added this to the 1.x.x milestone Jan 24, 2017
@Josue-T
Copy link

Josue-T commented Apr 15, 2020

Hello,

Maybe the solution would be to add some parameter to access a pop3 mailbox and gitea will retrieve each 5 minutes the mailbox content. This way was already implemented in forum discurse.

@lafriks
Copy link
Member

lafriks commented Apr 15, 2020

Or we could add smtp server to gitea :]

@lunny
Copy link
Member

lunny commented Apr 19, 2020

@lafriks We just need to check email via pop/IMAP protocol.

@lunny
Copy link
Member

lunny commented Apr 19, 2020

The problem is how we recognize which email is a comment to which repository's which issue. We need make a rule.

@ptman
Copy link
Contributor

ptman commented Apr 19, 2020

In-Reply-To or References header that matches an email that was sent from the issue? http://jkorpela.fi/headers.html

@lunny
Copy link
Member

lunny commented Apr 19, 2020

It seems right. We can include a header in the email we sent. But when user reply to this email, if the header will be copied to the reply email?

@a1012112796
Copy link
Member

a1012112796 commented Apr 19, 2020 via email

@a1012112796
Copy link
Member

a1012112796 commented Apr 19, 2020

Here is my first time to try email reply in github, I found the commet published by email is more slow to show on ui than comment directly . so maybe github also did the same things which we thinking :)

@a1012112796
Copy link
Member

a1012112796 commented Apr 26, 2020

maybe we have send replies message now ...

// Set Message-ID on first message so replies know what to reference
if actName == "new" {
msg.SetHeader("Message-ID", "<"+ctx.Issue.ReplyReference()+">")
} else {
msg.SetHeader("In-Reply-To", "<"+ctx.Issue.ReplyReference()+">")
msg.SetHeader("References", "<"+ctx.Issue.ReplyReference()+">")
}
msgs = append(msgs, msg)
}

So maybe only need to add something to recive email 😊
@lunny

@strk
Copy link
Member Author

strk commented Apr 27, 2020

A gitea commandline argument to "parse mail" would be enough for a
start. A system administrator would setup their favorite mechanism
to receive mail and would pipe the mail content to such new
commandline.

@a1012112796
Copy link
Member

a1012112796 commented Apr 27, 2020

A gitea commandline argument to "parse mail" would be enough for a
start. A system administrator would setup their favorite mechanism
to receive mail and would pipe the mail content to such new
commandline.

It's reasonble, But I think we can also add built-in IMAP suport to recive email . it will be more easily for user to use.Maybe we call choose one from them:
https://github.com/search?l=Go&q=IMAP&type=Repositories

@guillep2k
Copy link
Member

A gitea commandline argument to "parse mail" would be enough for a
start. A system administrator would setup their favorite mechanism
to receive mail and would pipe the mail content to such new
commandline.

There's always the API...

@a1012112796
Copy link
Member

@lunny lunny closed this as completed in fc037b4 Jan 14, 2023
@lunny lunny modified the milestones: 1.x.x, 1.19.0 Jan 18, 2023
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants