1
0
Fork 0
Find a file
Daniel Baumann 6397e8c4c1
Updating to standards version 4.7.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-25 21:11:30 +02:00
debian Updating to standards version 4.7.2. 2025-05-25 21:11:30 +02:00
testdata Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
.gitignore Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
.travis.yml Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
api.go Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
api_test.go Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
classify.go Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
doc.go Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
go.mod Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
go.sum Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
LICENSE Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
pattern.go Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
README.md Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00
utilities.go Adding upstream version 1.0.2. 2025-05-18 13:52:48 +02:00

go.dev reference Go Report Card

reply

Library to trim replies from plain text email. (Golang port of https://github.com/discourse/email_reply_trimmer)

Forked from https://github.com/dimiro1/reply

Why

Reply was forked because the original project does not seem to be maintained. Furthermore, the version before the fork removes parts of the mail that should not be removed. The project was forked to change this.

Usage

package main

import (
    "fmt"

    "code.forgejo.org/forgejo/reply"
)

func main() {
    message := `
        This is before the embedded email.
        
        On Wed, Sep 25, 2013, at 03:57 PM, richard_clark wrote:
        
        Richard> This is the embedded email
        
        This is after the embedded email and will not show up because 99% of the times
        this is the signature...
    `
	fmt.Println(reply.FromText(message))
}

will output:

This is before the embedded email.