mirror of
https://github.com/axllent/mailpit.git
synced 2025-08-15 20:13:16 +02:00
Chore: Move html2text module to internal/html2text
This commit is contained in:
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@@ -25,8 +25,8 @@ jobs:
|
|||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-
|
${{ runner.os }}-go-
|
||||||
- run: go test ./internal/storage ./server ./internal/tools ./internal/tools/html2text -v
|
- run: go test ./internal/storage ./server ./internal/tools ./internal/html2text -v
|
||||||
- run: go test ./internal/storage ./internal/tools/html2text -bench=.
|
- run: go test ./internal/storage ./internal/html2text -bench=.
|
||||||
|
|
||||||
# build the assets
|
# build the assets
|
||||||
- name: Build web UI
|
- name: Build web UI
|
||||||
|
@@ -10,8 +10,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/axllent/mailpit/config"
|
"github.com/axllent/mailpit/config"
|
||||||
|
"github.com/axllent/mailpit/internal/html2text"
|
||||||
"github.com/axllent/mailpit/internal/logger"
|
"github.com/axllent/mailpit/internal/logger"
|
||||||
"github.com/axllent/mailpit/internal/tools/html2text"
|
|
||||||
"github.com/axllent/mailpit/server/websockets"
|
"github.com/axllent/mailpit/server/websockets"
|
||||||
"github.com/jhillyerd/enmime"
|
"github.com/jhillyerd/enmime"
|
||||||
"github.com/leporo/sqlf"
|
"github.com/leporo/sqlf"
|
||||||
|
@@ -4,7 +4,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/axllent/mailpit/internal/tools/html2text"
|
"github.com/axllent/mailpit/internal/html2text"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CreateSnippet returns a message snippet. It will use the HTML version (if it exists)
|
// CreateSnippet returns a message snippet. It will use the HTML version (if it exists)
|
||||||
|
Reference in New Issue
Block a user