1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-01-24 03:47:38 +02:00

Merge branch 'release/v1.3.11'

This commit is contained in:
Ralph Slooten 2023-03-10 14:57:08 +13:00
commit 3d31ae7da4
5 changed files with 62 additions and 49 deletions

View File

@ -19,7 +19,7 @@ Notable changes to Mailpit will be documented in this file.
{{ range .Versions }} {{ range .Versions }}
{{- if .CommitGroups -}} {{- if .CommitGroups -}}
## {{ .Tag.Name }} ## [{{ .Tag.Name }}]
{{ if .NoteGroups -}} {{ if .NoteGroups -}}
{{ range .NoteGroups -}} {{ range .NoteGroups -}}

3
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1,3 @@
# These are supported funding model platforms
github: [axllent]

View File

@ -2,7 +2,16 @@
Notable changes to Mailpit will be documented in this file. Notable changes to Mailpit will be documented in this file.
## v1.3.10 ## [v1.3.11]
### Docker
- Expose default ports (1025/tcp 8025/tcp)
### Feature
- Expand custom webroot path to include a-z A-Z 0-9 _ . - and /
## [v1.3.10]
### Bugfix ### Bugfix
- Fix search with existing emails - Fix search with existing emails
@ -11,7 +20,7 @@ Notable changes to Mailpit will be documented in this file.
- Update node modules - Update node modules
## v1.3.9 ## [v1.3.9]
### Feature ### Feature
- Add Cc and Bcc search filters - Add Cc and Bcc search filters
@ -27,7 +36,7 @@ Notable changes to Mailpit will be documented in this file.
- Merge pull request [#42](https://github.com/axllent/mailpit/issues/42) from shizunge/dependabot - Merge pull request [#42](https://github.com/axllent/mailpit/issues/42) from shizunge/dependabot
## v1.3.8 ## [v1.3.8]
### Bugfix ### Bugfix
- Restore notification icon - Restore notification icon
@ -36,7 +45,7 @@ Notable changes to Mailpit will be documented in this file.
- Compress SVG icons - Compress SVG icons
## v1.3.7 ## [v1.3.7]
### Feature ### Feature
- Add Kubernetes API health (livez/readyz) endpoints - Add Kubernetes API health (livez/readyz) endpoints
@ -45,7 +54,7 @@ Notable changes to Mailpit will be documented in this file.
- Upgrade to esbuild 0.17.5 - Upgrade to esbuild 0.17.5
## v1.3.6 ## [v1.3.6]
### Bugfix ### Bugfix
- Correctly index missing 'From' header in database - Correctly index missing 'From' header in database
@ -55,31 +64,31 @@ Notable changes to Mailpit will be documented in this file.
- Update go modules - Update go modules
## v1.3.5 ## [v1.3.5]
### Bugfix ### Bugfix
- Include HTML link text in search data - Include HTML link text in search data
## v1.3.4 ## [v1.3.4]
### Bugfix ### Bugfix
- Allow tags to be set from MP_TAG environment - Allow tags to be set from MP_TAG environment
## v1.3.3 ## [v1.3.3]
### Bugfix ### Bugfix
- Allow tags to be set from MP_TAG environment - Allow tags to be set from MP_TAG environment
## v1.3.2 ## [v1.3.2]
### Build ### Build
- Temporarily disable arm (32) Docker build - Temporarily disable arm (32) Docker build
## v1.3.1 ## [v1.3.1]
### Bugfix ### Bugfix
- Append trailing slash to custom webroot for UI & API - Append trailing slash to custom webroot for UI & API
@ -91,7 +100,7 @@ Notable changes to Mailpit will be documented in this file.
- Rename "results" to "result" when singular message returned - Rename "results" to "result" when singular message returned
## v1.3.0 ## [v1.3.0]
### Build ### Build
- Remove duplicate bootstrap CSS - Remove duplicate bootstrap CSS
@ -101,13 +110,13 @@ Notable changes to Mailpit will be documented in this file.
- Update node modules - Update node modules
## v1.2.9 ## [v1.2.9]
### Bugfix ### Bugfix
- Delay 200ms to set `target="_blank"` for all rendered email links - Delay 200ms to set `target="_blank"` for all rendered email links
## v1.2.8 ## [v1.2.8]
### Bugfix ### Bugfix
- Return empty arrays rather than null for message To, CC, BCC, Inlines & Attachments - Return empty arrays rather than null for message To, CC, BCC, Inlines & Attachments
@ -116,13 +125,13 @@ Notable changes to Mailpit will be documented in this file.
- Message tags and auto-tagging - Message tags and auto-tagging
## v1.2.7 ## [v1.2.7]
### Feature ### Feature
- Allow custom webroot - Allow custom webroot
## v1.2.6 ## [v1.2.6]
### API ### API
- Provide structs of API v1 responses for use in client code - Provide structs of API v1 responses for use in client code
@ -132,7 +141,7 @@ Notable changes to Mailpit will be documented in this file.
- Update node modules - Update node modules
## 1.2.5 ## [1.2.5]
### UI ### UI
- Broadcast "delete all" action to reload all connected clients - Broadcast "delete all" action to reload all connected clients
@ -141,13 +150,13 @@ Notable changes to Mailpit will be documented in this file.
- Bump build action to use node 18 - Bump build action to use node 18
## 1.2.4 ## [1.2.4]
### Bugfix ### Bugfix
- Fix mail download link - Fix mail download link
## 1.2.3 ## [1.2.3]
### API ### API
- Add limit and start parameters to search - Add limit and start parameters to search
@ -156,7 +165,7 @@ Notable changes to Mailpit will be documented in this file.
- Prevent double message index request on websocket connect - Prevent double message index request on websocket connect
## 1.2.2 ## [1.2.2]
### API ### API
- Add API endpoint to return message headers - Add API endpoint to return message headers
@ -168,14 +177,14 @@ Notable changes to Mailpit will be documented in this file.
- Add API test for raw & message headers - Add API test for raw & message headers
## 1.2.1 ## [1.2.1]
### UI ### UI
- Update frontend modules - Update frontend modules
- Add about app modal with version update notification - Add about app modal with version update notification
## 1.2.0 ## [1.2.0]
### Feature ### Feature
- Add REST API - Add REST API
@ -188,13 +197,13 @@ Notable changes to Mailpit will be documented in this file.
- Hide delete all / mark all read in message view - Hide delete all / mark all read in message view
## 1.1.7 ## [1.1.7]
### Fix ### Fix
- Normalize running binary name detection (Windows) - Normalize running binary name detection (Windows)
## 1.1.6 ## [1.1.6]
### Fix ### Fix
- Workaround for Safari source matching bug blocking event listener - Workaround for Safari source matching bug blocking event listener
@ -203,7 +212,7 @@ Notable changes to Mailpit will be documented in this file.
- Add documentation link (wiki) - Add documentation link (wiki)
## 1.1.5 ## [1.1.5]
### Build ### Build
- Switch to esbuild-sass-plugin - Switch to esbuild-sass-plugin
@ -212,7 +221,7 @@ Notable changes to Mailpit will be documented in this file.
- Support for inline images using filenames instead of cid - Support for inline images using filenames instead of cid
## 1.1.4 ## [1.1.4]
### Feature ### Feature
- Add --quiet flag to display only errors - Add --quiet flag to display only errors
@ -226,32 +235,32 @@ Notable changes to Mailpit will be documented in this file.
- Remove left & right borders (message list) - Remove left & right borders (message list)
## 1.1.3 ## [1.1.3]
### Fix ### Fix
- Update message download link - Update message download link
## 1.1.2 ## [1.1.2]
### UI ### UI
- Allow reverse proxy subdirectories - Allow reverse proxy subdirectories
## 1.1.1 ## [1.1.1]
### UI ### UI
- Attachment icons and image thumbnails - Attachment icons and image thumbnails
## 1.1.0 ## [1.1.0]
### UI ### UI
- HTML source & highlighting - HTML source & highlighting
- Add previous/next message links - Add previous/next message links
## 1.0.0 ## [1.0.0]
### Feature ### Feature
- Multiple message selection for group actions using shift/ctrl click - Multiple message selection for group actions using shift/ctrl click
@ -267,7 +276,7 @@ Notable changes to Mailpit will be documented in this file.
- Update frontend modules & esbuild - Update frontend modules & esbuild
## 1.0.0-beta1 ## [1.0.0-beta1]
### BREAKING CHANGE ### BREAKING CHANGE
@ -280,7 +289,7 @@ This release includes a major backend storage change (SQLite) that will render a
- Resize preview iframe on load - Resize preview iframe on load
## 0.1.5 ## [0.1.5]
### Feature ### Feature
- Improved message search - any order & phrase quoting - Improved message search - any order & phrase quoting
@ -290,7 +299,7 @@ This release includes a major backend storage change (SQLite) that will render a
- Resize iframes with viewport resize - Resize iframes with viewport resize
## 0.1.4 ## [0.1.4]
### Feature ### Feature
- Email compression in storage - Email compression in storage
@ -303,7 +312,7 @@ This release includes a major backend storage change (SQLite) that will render a
- Mobile compatibility improvements & functionality - Mobile compatibility improvements & functionality
## 0.1.3 ## [0.1.3]
### Feature ### Feature
- Mark all messages as read - Mark all messages as read
@ -318,7 +327,7 @@ This release includes a major backend storage change (SQLite) that will render a
- Merge pull request [#6](https://github.com/axllent/mailpit/issues/6) from KaptinLin/develop - Merge pull request [#6](https://github.com/axllent/mailpit/issues/6) from KaptinLin/develop
## 0.1.2 ## [0.1.2]
### Feature ### Feature
- Optional browser notifications (HTTPS only) - Optional browser notifications (HTTPS only)
@ -329,19 +338,19 @@ This release includes a major backend storage change (SQLite) that will render a
- Use strconv.Atoi() for safe string to int conversions - Use strconv.Atoi() for safe string to int conversions
## 0.1.1 ## [0.1.1]
### Bugfix ### Bugfix
- Fix env variable for MP_UI_SSL_KEY - Fix env variable for MP_UI_SSL_KEY
## 0.1.0 ## [0.1.0]
### Feature ### Feature
- SMTP STARTTLS & SMTP authentication support - SMTP STARTTLS & SMTP authentication support
## 0.0.9 ## [0.0.9]
### Bugfix ### Bugfix
- Include read status in search results - Include read status in search results
@ -353,7 +362,7 @@ This release includes a major backend storage change (SQLite) that will render a
- Memory & physical database tests - Memory & physical database tests
## 0.0.8 ## [0.0.8]
### Bugfix ### Bugfix
- Fix total/unread count after failed message inserts - Fix total/unread count after failed message inserts
@ -362,25 +371,25 @@ This release includes a major backend storage change (SQLite) that will render a
- Add project links to help in CLI - Add project links to help in CLI
## 0.0.7 ## [0.0.7]
### Bugfix ### Bugfix
- Command flag should be `--auth-file` - Command flag should be `--auth-file`
## 0.0.6 ## [0.0.6]
### Bugfix ### Bugfix
- Disable CGO when building multi-arch binaries - Disable CGO when building multi-arch binaries
## 0.0.5 ## [0.0.5]
### Feature ### Feature
- Basic authentication support - Basic authentication support
## 0.0.4 ## [0.0.4]
### Bugfix ### Bugfix
- Update to clover-v2.0.0-alpha.2 to fix sorting - Update to clover-v2.0.0-alpha.2 to fix sorting
@ -397,13 +406,13 @@ This release includes a major backend storage change (SQLite) that will render a
- cater for messages without From email address - cater for messages without From email address
## 0.0.3 ## [0.0.3]
### Bugfix ### Bugfix
- Update to clover-v2.0.0-alpha.2 to fix sorting - Update to clover-v2.0.0-alpha.2 to fix sorting
## 0.0.2 ## [0.0.2]
### Feature ### Feature
- Unread statistics - Unread statistics

View File

@ -10,11 +10,12 @@ RUN apk add --no-cache git npm && \
npm install && npm run package && \ npm install && npm run package && \
CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/axllent/mailpit/config.Version=${VERSION}" -o /mailpit CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/axllent/mailpit/config.Version=${VERSION}" -o /mailpit
FROM alpine:latest FROM alpine:latest
COPY --from=builder /mailpit /mailpit COPY --from=builder /mailpit /mailpit
RUN apk add --no-cache tzdata RUN apk add --no-cache tzdata
EXPOSE 1025/tcp 8025/tcp
ENTRYPOINT ["/mailpit"] ENTRYPOINT ["/mailpit"]

View File

@ -160,9 +160,9 @@ func VerifyConfig() error {
SMTPAuth = a SMTPAuth = a
} }
validWebrootRe := regexp.MustCompile(`[^0-9a-zA-Z\/-]`) validWebrootRe := regexp.MustCompile(`[^0-9a-zA-Z\/\-\_\.]`)
if validWebrootRe.MatchString(Webroot) { if validWebrootRe.MatchString(Webroot) {
return fmt.Errorf("Invalid characters in Webroot (%s). Valid chars: a-z, A-Z, 0-9, - and /", Webroot) return fmt.Errorf("Invalid characters in Webroot (%s). Valid chars include: [a-z A-Z 0-9 _ . - /]", Webroot)
} }
s := strings.TrimRight(path.Join("/", Webroot, "/"), "/") + "/" s := strings.TrimRight(path.Join("/", Webroot, "/"), "/") + "/"