Skip to content

Commit ac9d713

Browse files
committed
chore!: go mod path to v2 for breaking API changes
Signed-off-by: James Hillyerd <[email protected]>
1 parent ea3bdd6 commit ac9d713

39 files changed

+62
-62
lines changed

builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"reflect"
1414
"time"
1515

16-
"github.com/jhillyerd/enmime/internal/stringutil"
16+
"github.com/jhillyerd/enmime/v2/internal/stringutil"
1717
)
1818

1919
// MailBuilder facilitates the easy construction of a MIME message. Each manipulation method

builder_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/jhillyerd/enmime"
14-
"github.com/jhillyerd/enmime/internal/test"
13+
"github.com/jhillyerd/enmime/v2"
14+
"github.com/jhillyerd/enmime/v2/internal/test"
1515
"github.com/stretchr/testify/assert"
1616
"github.com/stretchr/testify/require"
1717
)

cmd/example_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"os"
66
"strings"
77

8-
"github.com/jhillyerd/enmime"
9-
"github.com/jhillyerd/enmime/cmd"
8+
"github.com/jhillyerd/enmime/v2"
9+
"github.com/jhillyerd/enmime/v2/cmd"
1010
)
1111

1212
func Example() {

cmd/mime-dump/mime-dump.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"os"
88
"path/filepath"
99

10-
"github.com/jhillyerd/enmime"
11-
"github.com/jhillyerd/enmime/cmd"
10+
"github.com/jhillyerd/enmime/v2"
11+
"github.com/jhillyerd/enmime/v2/cmd"
1212
)
1313

1414
type dumper struct {

cmd/mime-extractor/mime-extractor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"os"
99
"path/filepath"
1010

11-
"github.com/jhillyerd/enmime"
12-
"github.com/jhillyerd/enmime/cmd"
11+
"github.com/jhillyerd/enmime/v2"
12+
"github.com/jhillyerd/enmime/v2/cmd"
1313
)
1414

1515
var (

cmd/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sort"
99
"strings"
1010

11-
"github.com/jhillyerd/enmime"
11+
"github.com/jhillyerd/enmime/v2"
1212
)
1313

1414
// AddressHeaders enumerates SMTP headers that contain email addresses

cmd/utils_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"bytes"
66
"testing"
77

8-
"github.com/jhillyerd/enmime"
8+
"github.com/jhillyerd/enmime/v2"
99
)
1010

1111
func TestMarkdownH1(t *testing.T) {

detect.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package enmime
33
import (
44
"strings"
55

6-
inttp "github.com/jhillyerd/enmime/internal/textproto"
6+
inttp "github.com/jhillyerd/enmime/v2/internal/textproto"
77
)
88

99
// detectMultipartMessage returns true if the message has a recognized multipart Content-Type header

detect_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"path/filepath"
66
"testing"
77

8-
"github.com/jhillyerd/enmime/internal/textproto"
8+
"github.com/jhillyerd/enmime/v2/internal/textproto"
99
)
1010

1111
func TestDetectSinglePart(t *testing.T) {

dsn/dsn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package dsn
55
import (
66
"strings"
77

8-
"github.com/jhillyerd/enmime/internal/textproto"
8+
"github.com/jhillyerd/enmime/v2/internal/textproto"
99
)
1010

1111
// Report represents delivery status report as per https://datatracker.ietf.org/doc/html/rfc6522.

dsn/example_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/jhillyerd/enmime"
8-
"github.com/jhillyerd/enmime/dsn"
7+
"github.com/jhillyerd/enmime/v2"
8+
"github.com/jhillyerd/enmime/v2/dsn"
99
)
1010

1111
// ExampleParseReport shows how to parse message as Delivery Status Notification (DSN).

dsn/parse.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"fmt"
88
"io"
99

10-
"github.com/jhillyerd/enmime"
11-
"github.com/jhillyerd/enmime/internal/textproto"
10+
"github.com/jhillyerd/enmime/v2"
11+
"github.com/jhillyerd/enmime/v2/internal/textproto"
1212
)
1313

1414
// ParseReport parses p as a "container" for delivery status report (per rfc6522) if p is "multipart/report".

dsn/parse_internal_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package dsn
33
import (
44
"testing"
55

6-
"github.com/jhillyerd/enmime"
7-
"github.com/jhillyerd/enmime/internal/textproto"
6+
"github.com/jhillyerd/enmime/v2"
7+
"github.com/jhillyerd/enmime/v2/internal/textproto"
88

99
"github.com/stretchr/testify/assert"
1010
)

dsn/parse_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"path/filepath"
77
"testing"
88

9-
"github.com/jhillyerd/enmime"
10-
"github.com/jhillyerd/enmime/dsn"
11-
"github.com/jhillyerd/enmime/internal/textproto"
9+
"github.com/jhillyerd/enmime/v2"
10+
"github.com/jhillyerd/enmime/v2/dsn"
11+
"github.com/jhillyerd/enmime/v2/internal/textproto"
1212

1313
"github.com/stretchr/testify/assert"
1414
"github.com/stretchr/testify/require"

encode.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"strings"
1212
"time"
1313

14-
"github.com/jhillyerd/enmime/internal/coding"
15-
"github.com/jhillyerd/enmime/internal/stringutil"
14+
"github.com/jhillyerd/enmime/v2/internal/coding"
15+
"github.com/jhillyerd/enmime/v2/internal/stringutil"
1616
)
1717

1818
// b64Percent determines the percent of non-ASCII characters enmime will tolerate before switching

encode_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/jhillyerd/enmime"
11-
"github.com/jhillyerd/enmime/internal/test"
10+
"github.com/jhillyerd/enmime/v2"
11+
"github.com/jhillyerd/enmime/v2/internal/test"
1212
)
1313

1414
func TestEncodePartEmpty(t *testing.T) {

enmime.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
// multi-gigabyte attachments.
5252
//
5353
// enmime is open source software released under the MIT License. The latest version can be found
54-
// at https://github.com/jhillyerd/enmime
54+
// at https://github.com/jhillyerd/enmime/v2
5555
//
5656
// [1]: https://github.com/jaytaylor/html2text
57-
package enmime // import "github.com/jhillyerd/enmime"
57+
package enmime // import "github.com/jhillyerd/enmime/v2"

envelope.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"time"
1111

1212
"github.com/jaytaylor/html2text"
13-
"github.com/jhillyerd/enmime/internal/coding"
14-
inttp "github.com/jhillyerd/enmime/internal/textproto"
13+
"github.com/jhillyerd/enmime/v2/internal/coding"
14+
inttp "github.com/jhillyerd/enmime/v2/internal/textproto"
1515
"github.com/pkg/errors"
1616
)
1717

envelope_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"time"
1111

1212
"github.com/go-test/deep"
13-
"github.com/jhillyerd/enmime"
14-
"github.com/jhillyerd/enmime/internal/test"
13+
"github.com/jhillyerd/enmime/v2"
14+
"github.com/jhillyerd/enmime/v2/internal/test"
1515
)
1616

1717
func TestParseHeaderOnly(t *testing.T) {

example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"time"
1010

11-
"github.com/jhillyerd/enmime"
11+
"github.com/jhillyerd/enmime/v2"
1212
)
1313

1414
// ExampleBuilder illustrates how to build and send a MIME encoded message.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/jhillyerd/enmime
1+
module github.com/jhillyerd/enmime/v2
22

33
go 1.20
44

header.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"net/textproto"
1010
"strings"
1111

12-
"github.com/jhillyerd/enmime/internal/coding"
13-
"github.com/jhillyerd/enmime/internal/stringutil"
14-
inttp "github.com/jhillyerd/enmime/internal/textproto"
15-
"github.com/jhillyerd/enmime/mediatype"
12+
"github.com/jhillyerd/enmime/v2/internal/coding"
13+
"github.com/jhillyerd/enmime/v2/internal/stringutil"
14+
inttp "github.com/jhillyerd/enmime/v2/internal/textproto"
15+
"github.com/jhillyerd/enmime/v2/mediatype"
1616

1717
"github.com/pkg/errors"
1818
)

header_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
"testing"
88

9-
"github.com/jhillyerd/enmime/internal/textproto"
9+
"github.com/jhillyerd/enmime/v2/internal/textproto"
1010
)
1111

1212
// Test re-encoding to base64

inspect.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"bytes"
66
"io"
77

8-
"github.com/jhillyerd/enmime/internal/coding"
9-
"github.com/jhillyerd/enmime/internal/textproto"
8+
"github.com/jhillyerd/enmime/v2/internal/coding"
9+
"github.com/jhillyerd/enmime/v2/internal/textproto"
1010

1111
"github.com/pkg/errors"
1212
)

inspect_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"strings"
99
"testing"
1010

11-
"github.com/jhillyerd/enmime"
12-
"github.com/jhillyerd/enmime/internal/test"
11+
"github.com/jhillyerd/enmime/v2"
12+
"github.com/jhillyerd/enmime/v2/internal/test"
1313
)
1414

1515
func TestDecodeRFC2047(t *testing.T) {

internal/coding/base64_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"testing"
77

8-
"github.com/jhillyerd/enmime/internal/coding"
8+
"github.com/jhillyerd/enmime/v2/internal/coding"
99
)
1010

1111
func TestBase64Cleaner(t *testing.T) {

internal/coding/charsets_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
"testing"
88

9-
"github.com/jhillyerd/enmime/internal/coding"
9+
"github.com/jhillyerd/enmime/v2/internal/coding"
1010
)
1111

1212
// Test an invalid character set with the CharsetReader

internal/coding/idheader_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package coding_test
33
import (
44
"testing"
55

6-
"github.com/jhillyerd/enmime/internal/coding"
6+
"github.com/jhillyerd/enmime/v2/internal/coding"
77
)
88

99
func TestFromIDHeader(t *testing.T) {

internal/coding/quotedprint_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"testing"
1010

11-
"github.com/jhillyerd/enmime/internal/coding"
11+
"github.com/jhillyerd/enmime/v2/internal/coding"
1212
)
1313

1414
func TestQPCleaner(t *testing.T) {

internal/stringutil/addr_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/mail"
55
"testing"
66

7-
"github.com/jhillyerd/enmime/internal/stringutil"
7+
"github.com/jhillyerd/enmime/v2/internal/stringutil"
88
)
99

1010
func TestJoinAddressEmpty(t *testing.T) {

internal/stringutil/uuid_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package stringutil_test
33
import (
44
"testing"
55

6-
"github.com/jhillyerd/enmime/internal/stringutil"
6+
"github.com/jhillyerd/enmime/v2/internal/stringutil"
77
"github.com/stretchr/testify/assert"
88
)
99

internal/stringutil/wrap_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package stringutil_test
33
import (
44
"testing"
55

6-
"github.com/jhillyerd/enmime/internal/stringutil"
6+
"github.com/jhillyerd/enmime/v2/internal/stringutil"
77
)
88

99
func TestWrapEmpty(t *testing.T) {

internal/test/testing.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"testing"
1010

11-
"github.com/jhillyerd/enmime"
11+
"github.com/jhillyerd/enmime/v2"
1212
)
1313

1414
// PartExists indicates to ComparePart that this part is expect to exist

internal/test/testing_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"path/filepath"
66
"testing"
77

8-
"github.com/jhillyerd/enmime"
8+
"github.com/jhillyerd/enmime/v2"
99
)
1010

1111
func TestHelperComparePartsEqual(t *testing.T) {

mediatype/mediatype.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"strings"
77
_utf8 "unicode/utf8"
88

9-
"github.com/jhillyerd/enmime/internal/coding"
10-
"github.com/jhillyerd/enmime/internal/stringutil"
9+
"github.com/jhillyerd/enmime/v2/internal/coding"
10+
"github.com/jhillyerd/enmime/v2/internal/stringutil"
1111
"github.com/pkg/errors"
1212
)
1313

part.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313
"time"
1414

1515
"github.com/gogs/chardet"
16-
"github.com/jhillyerd/enmime/internal/coding"
17-
inttp "github.com/jhillyerd/enmime/internal/textproto"
18-
"github.com/jhillyerd/enmime/mediatype"
16+
"github.com/jhillyerd/enmime/v2/internal/coding"
17+
inttp "github.com/jhillyerd/enmime/v2/internal/textproto"
18+
"github.com/jhillyerd/enmime/v2/mediatype"
1919
"github.com/pkg/errors"
2020
)
2121

part_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"strings"
55
"testing"
66

7-
"github.com/jhillyerd/enmime"
8-
"github.com/jhillyerd/enmime/internal/test"
7+
"github.com/jhillyerd/enmime/v2"
8+
"github.com/jhillyerd/enmime/v2/internal/test"
99
)
1010

1111
func TestPlainTextPart(t *testing.T) {

randoption_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/jhillyerd/enmime"
9+
"github.com/jhillyerd/enmime/v2"
1010
"github.com/stretchr/testify/assert"
1111
)
1212

sender_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"testing"
77

8-
"github.com/jhillyerd/enmime"
8+
"github.com/jhillyerd/enmime/v2"
99
)
1010

1111
func TestSMTPSend(t *testing.T) {

0 commit comments

Comments
 (0)