Debian Codegraph @

/

debian golang-forgejo-forgejo-reply 1.0.2-4debian golang-forgejo-forgejo-reply-dev debiangomakefilemarkdownshellyaml 16 files · 51 symbols
View dependency graph

Depends on

README (full)

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.
dir debian/
dir testdata/
file .gitignore
file .travis.yml
file LICENSE
file README.md
file api.go
file api_test.go
file classify.go
file doc.go
file go.mod
file go.sum
file pattern.go
file utilities.go