1
0
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:
Ralph Slooten
2023-10-18 16:28:57 +13:00
parent 80bf374d8a
commit 30c392bcec
5 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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)