1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

go: update mod and imports to correctly reflect major version (#388)

This commit is contained in:
James Hillyerd
2023-09-09 12:36:21 -07:00
committed by GitHub
parent 558f3de083
commit 9836c0ffbb
58 changed files with 168 additions and 168 deletions

View File

@@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"github.com/google/subcommands" "github.com/google/subcommands"
"github.com/inbucket/inbucket/pkg/rest/client" "github.com/inbucket/inbucket/v3/pkg/rest/client"
) )
type listCmd struct { type listCmd struct {

View File

@@ -10,7 +10,7 @@ import (
"time" "time"
"github.com/google/subcommands" "github.com/google/subcommands"
"github.com/inbucket/inbucket/pkg/rest/client" "github.com/inbucket/inbucket/v3/pkg/rest/client"
) )
type matchCmd struct { type matchCmd struct {

View File

@@ -7,7 +7,7 @@ import (
"os" "os"
"github.com/google/subcommands" "github.com/google/subcommands"
"github.com/inbucket/inbucket/pkg/rest/client" "github.com/inbucket/inbucket/v3/pkg/rest/client"
) )
type mboxCmd struct { type mboxCmd struct {

View File

@@ -14,11 +14,11 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/server" "github.com/inbucket/inbucket/v3/pkg/server"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/storage/file" "github.com/inbucket/inbucket/v3/pkg/storage/file"
"github.com/inbucket/inbucket/pkg/storage/mem" "github.com/inbucket/inbucket/v3/pkg/storage/mem"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/inbucket/inbucket module github.com/inbucket/inbucket/v3
go 1.20 go 1.20

View File

@@ -8,7 +8,7 @@ import (
"text/tabwriter" "text/tabwriter"
"time" "time"
"github.com/inbucket/inbucket/pkg/stringutil" "github.com/inbucket/inbucket/v3/pkg/stringutil"
"github.com/kelseyhightower/envconfig" "github.com/kelseyhightower/envconfig"
) )

View File

@@ -4,7 +4,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -3,7 +3,7 @@ package extension_test
import ( import (
"testing" "testing"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
) )
func TestBrokerEmitCallsOneListener(t *testing.T) { func TestBrokerEmitCallsOneListener(t *testing.T) {

View File

@@ -1,7 +1,7 @@
package extension package extension
import ( import (
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
) )
// Host defines extension points for Inbucket. // Host defines extension points for Inbucket.

View File

@@ -4,7 +4,7 @@ import (
"net/mail" "net/mail"
"time" "time"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
lua "github.com/yuin/gopher-lua" lua "github.com/yuin/gopher-lua"
) )

View File

@@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
lua "github.com/yuin/gopher-lua" lua "github.com/yuin/gopher-lua"

View File

@@ -6,9 +6,9 @@ import (
"io" "io"
"os" "os"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
lua "github.com/yuin/gopher-lua" lua "github.com/yuin/gopher-lua"

View File

@@ -6,9 +6,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/extension/luahost" "github.com/inbucket/inbucket/v3/pkg/extension/luahost"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
lua "github.com/yuin/gopher-lua" lua "github.com/yuin/gopher-lua"
) )

View File

@@ -7,10 +7,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/policy" "github.com/inbucket/inbucket/v3/pkg/policy"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/jhillyerd/enmime" "github.com/jhillyerd/enmime"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -3,10 +3,10 @@ package message_test
import ( import (
"testing" "testing"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/policy" "github.com/inbucket/inbucket/v3/pkg/policy"
"github.com/inbucket/inbucket/pkg/test" "github.com/inbucket/inbucket/v3/pkg/test"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -7,8 +7,8 @@ import (
"net/textproto" "net/textproto"
"time" "time"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/jhillyerd/enmime" "github.com/jhillyerd/enmime"
) )

View File

@@ -4,8 +4,8 @@ import (
"container/ring" "container/ring"
"context" "context"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -7,8 +7,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -7,8 +7,8 @@ import (
"net/mail" "net/mail"
"strings" "strings"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/stringutil" "github.com/inbucket/inbucket/v3/pkg/stringutil"
) )
// Addressing handles email address policy. // Addressing handles email address policy.

View File

@@ -4,8 +4,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/policy" "github.com/inbucket/inbucket/v3/pkg/policy"
) )
func TestShouldAcceptDomain(t *testing.T) { func TestShouldAcceptDomain(t *testing.T) {

View File

@@ -10,10 +10,10 @@ import (
"encoding/json" "encoding/json"
"strconv" "strconv"
"github.com/inbucket/inbucket/pkg/rest/model" "github.com/inbucket/inbucket/v3/pkg/rest/model"
"github.com/inbucket/inbucket/pkg/server/web" "github.com/inbucket/inbucket/v3/pkg/server/web"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/stringutil" "github.com/inbucket/inbucket/v3/pkg/stringutil"
) )
// MailboxListV1 renders a list of messages in a mailbox // MailboxListV1 renders a list of messages in a mailbox

View File

@@ -9,9 +9,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/test" "github.com/inbucket/inbucket/v3/pkg/test"
"github.com/jhillyerd/enmime" "github.com/jhillyerd/enmime"
) )

View File

@@ -8,7 +8,7 @@ import (
"net/url" "net/url"
"time" "time"
"github.com/inbucket/inbucket/pkg/rest/model" "github.com/inbucket/inbucket/v3/pkg/rest/model"
) )
// Client accesses the Inbucket REST API v1 // Client accesses the Inbucket REST API v1

View File

@@ -7,7 +7,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/rest/client" "github.com/inbucket/inbucket/v3/pkg/rest/client"
) )
func TestClientV1ListMailbox(t *testing.T) { func TestClientV1ListMailbox(t *testing.T) {

View File

@@ -7,7 +7,7 @@ import (
"net/http/httptest" "net/http/httptest"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/inbucket/inbucket/pkg/rest/client" "github.com/inbucket/inbucket/v3/pkg/rest/client"
) )
// Example demonstrates basic usage for the Inbucket REST client. // Example demonstrates basic usage for the Inbucket REST client.

View File

@@ -1,7 +1,7 @@
package rest package rest
import "github.com/gorilla/mux" import "github.com/gorilla/mux"
import "github.com/inbucket/inbucket/pkg/server/web" import "github.com/inbucket/inbucket/v3/pkg/server/web"
// SetupRoutes populates the routes for the REST interface // SetupRoutes populates the routes for the REST interface
func SetupRoutes(r *mux.Router) { func SetupRoutes(r *mux.Router) {

View File

@@ -5,11 +5,11 @@ import (
"time" "time"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/msghub" "github.com/inbucket/inbucket/v3/pkg/msghub"
"github.com/inbucket/inbucket/pkg/rest/model" "github.com/inbucket/inbucket/v3/pkg/rest/model"
"github.com/inbucket/inbucket/pkg/server/web" "github.com/inbucket/inbucket/v3/pkg/server/web"
"github.com/inbucket/inbucket/pkg/stringutil" "github.com/inbucket/inbucket/v3/pkg/stringutil"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -5,10 +5,10 @@ import (
"time" "time"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/msghub" "github.com/inbucket/inbucket/v3/pkg/msghub"
"github.com/inbucket/inbucket/pkg/rest/model" "github.com/inbucket/inbucket/v3/pkg/rest/model"
"github.com/inbucket/inbucket/pkg/server/web" "github.com/inbucket/inbucket/v3/pkg/server/web"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -9,10 +9,10 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/msghub" "github.com/inbucket/inbucket/v3/pkg/msghub"
"github.com/inbucket/inbucket/pkg/server/web" "github.com/inbucket/inbucket/v3/pkg/server/web"
) )
func testRestGet(url string) (*httptest.ResponseRecorder, error) { func testRestGet(url string) (*httptest.ResponseRecorder, error) {

View File

@@ -4,19 +4,19 @@ import (
"context" "context"
"sync" "sync"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/extension/luahost" "github.com/inbucket/inbucket/v3/pkg/extension/luahost"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/msghub" "github.com/inbucket/inbucket/v3/pkg/msghub"
"github.com/inbucket/inbucket/pkg/policy" "github.com/inbucket/inbucket/v3/pkg/policy"
"github.com/inbucket/inbucket/pkg/rest" "github.com/inbucket/inbucket/v3/pkg/rest"
"github.com/inbucket/inbucket/pkg/server/pop3" "github.com/inbucket/inbucket/v3/pkg/server/pop3"
"github.com/inbucket/inbucket/pkg/server/smtp" "github.com/inbucket/inbucket/v3/pkg/server/smtp"
"github.com/inbucket/inbucket/pkg/server/web" "github.com/inbucket/inbucket/v3/pkg/server/web"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/stringutil" "github.com/inbucket/inbucket/v3/pkg/stringutil"
"github.com/inbucket/inbucket/pkg/webui" "github.com/inbucket/inbucket/v3/pkg/webui"
) )
// Services holds the configured services. // Services holds the configured services.

View File

@@ -11,7 +11,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -18,9 +18,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/test" "github.com/inbucket/inbucket/v3/pkg/test"
) )
func TestNoTLS(t *testing.T) { func TestNoTLS(t *testing.T) {

View File

@@ -8,8 +8,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -13,8 +13,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/policy" "github.com/inbucket/inbucket/v3/pkg/policy"
"github.com/rs/zerolog" "github.com/rs/zerolog"
) )

View File

@@ -9,13 +9,13 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/policy" "github.com/inbucket/inbucket/v3/pkg/policy"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/test" "github.com/inbucket/inbucket/v3/pkg/test"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@@ -9,11 +9,11 @@ import (
"sync" "sync"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/metric" "github.com/inbucket/inbucket/v3/pkg/metric"
"github.com/inbucket/inbucket/pkg/policy" "github.com/inbucket/inbucket/v3/pkg/policy"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -5,9 +5,9 @@ import (
"strings" "strings"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/msghub" "github.com/inbucket/inbucket/v3/pkg/msghub"
) )
// Context is passed into every request handler function // Context is passed into every request handler function

View File

@@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"os" "os"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -15,10 +15,10 @@ import (
"time" "time"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/msghub" "github.com/inbucket/inbucket/v3/pkg/msghub"
"github.com/inbucket/inbucket/pkg/stringutil" "github.com/inbucket/inbucket/v3/pkg/stringutil"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -9,11 +9,11 @@ import (
"sync" "sync"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/stringutil" "github.com/inbucket/inbucket/v3/pkg/stringutil"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -12,12 +12,12 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/test" "github.com/inbucket/inbucket/v3/pkg/test"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@@ -9,8 +9,8 @@ import (
"path/filepath" "path/filepath"
"sync" "sync"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -3,7 +3,7 @@ package storage_test
import ( import (
"testing" "testing"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
) )
func TestHashLock(t *testing.T) { func TestHashLock(t *testing.T) {

View File

@@ -7,7 +7,7 @@ import (
"net/mail" "net/mail"
"time" "time"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
) )
// Message is a memory store message. // Message is a memory store message.

View File

@@ -7,10 +7,10 @@ import (
"strconv" "strconv"
"sync" "sync"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
) )
// Store implements an in-memory message store. // Store implements an in-memory message store.

View File

@@ -5,10 +5,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/test" "github.com/inbucket/inbucket/v3/pkg/test"
) )
// TestSuite runs storage package test suite on file store. // TestSuite runs storage package test suite on file store.

View File

@@ -6,8 +6,8 @@ import (
"expvar" "expvar"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/metric" "github.com/inbucket/inbucket/v3/pkg/metric"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -6,11 +6,11 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/test" "github.com/inbucket/inbucket/v3/pkg/test"
) )
func TestDoRetentionScan(t *testing.T) { func TestDoRetentionScan(t *testing.T) {

View File

@@ -8,8 +8,8 @@ import (
"net/mail" "net/mail"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
) )
var ( var (

View File

@@ -5,7 +5,7 @@ import (
"net/mail" "net/mail"
"testing" "testing"
"github.com/inbucket/inbucket/pkg/stringutil" "github.com/inbucket/inbucket/v3/pkg/stringutil"
) )
func TestHashMailboxName(t *testing.T) { func TestHashMailboxName(t *testing.T) {

View File

@@ -11,18 +11,18 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/msghub" "github.com/inbucket/inbucket/v3/pkg/msghub"
"github.com/inbucket/inbucket/pkg/policy" "github.com/inbucket/inbucket/v3/pkg/policy"
"github.com/inbucket/inbucket/pkg/rest" "github.com/inbucket/inbucket/v3/pkg/rest"
"github.com/inbucket/inbucket/pkg/rest/client" "github.com/inbucket/inbucket/v3/pkg/rest/client"
"github.com/inbucket/inbucket/pkg/server/smtp" "github.com/inbucket/inbucket/v3/pkg/server/smtp"
"github.com/inbucket/inbucket/pkg/server/web" "github.com/inbucket/inbucket/v3/pkg/server/web"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/storage/mem" "github.com/inbucket/inbucket/v3/pkg/storage/mem"
"github.com/inbucket/inbucket/pkg/webui" "github.com/inbucket/inbucket/v3/pkg/webui"
"github.com/jhillyerd/goldiff" "github.com/jhillyerd/goldiff"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"

View File

@@ -3,11 +3,11 @@ package test
import ( import (
"errors" "errors"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/policy" "github.com/inbucket/inbucket/v3/pkg/policy"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
) )
// ManagerStub is a test stub for message.Manager // ManagerStub is a test stub for message.Manager

View File

@@ -3,7 +3,7 @@ package test
import ( import (
"errors" "errors"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
) )
// StoreStub stubs storage.Store for testing. // StoreStub stubs storage.Store for testing.

View File

@@ -9,11 +9,11 @@ import (
"testing" "testing"
"time" "time"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/extension" "github.com/inbucket/inbucket/v3/pkg/extension"
"github.com/inbucket/inbucket/pkg/extension/event" "github.com/inbucket/inbucket/v3/pkg/extension/event"
"github.com/inbucket/inbucket/pkg/message" "github.com/inbucket/inbucket/v3/pkg/message"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@@ -7,10 +7,10 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/inbucket/inbucket/pkg/server/web" "github.com/inbucket/inbucket/v3/pkg/server/web"
"github.com/inbucket/inbucket/pkg/storage" "github.com/inbucket/inbucket/v3/pkg/storage"
"github.com/inbucket/inbucket/pkg/stringutil" "github.com/inbucket/inbucket/v3/pkg/stringutil"
"github.com/inbucket/inbucket/pkg/webui/sanitize" "github.com/inbucket/inbucket/v3/pkg/webui/sanitize"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )

View File

@@ -5,8 +5,8 @@ import (
"net/http" "net/http"
"os" "os"
"github.com/inbucket/inbucket/pkg/config" "github.com/inbucket/inbucket/v3/pkg/config"
"github.com/inbucket/inbucket/pkg/server/web" "github.com/inbucket/inbucket/v3/pkg/server/web"
) )
// RootGreeting serves the Inbucket greeting. // RootGreeting serves the Inbucket greeting.

View File

@@ -3,7 +3,7 @@ package webui
import ( import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/inbucket/inbucket/pkg/server/web" "github.com/inbucket/inbucket/v3/pkg/server/web"
) )
// SetupRoutes populates routes for the webui into the provided Router. // SetupRoutes populates routes for the webui into the provided Router.

View File

@@ -3,7 +3,7 @@ package sanitize_test
import ( import (
"testing" "testing"
"github.com/inbucket/inbucket/pkg/webui/sanitize" "github.com/inbucket/inbucket/v3/pkg/webui/sanitize"
) )
// TestHTMLPlainStrings test plain text passthrough // TestHTMLPlainStrings test plain text passthrough