mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-23 22:20:51 +01:00
Compare commits
No commits in common. "32a560349654debfb04302b50896955cb4d45241" and "ffdea8337e952020409acc2dc817c18a652ac83d" have entirely different histories.
32a5603496
...
ffdea8337e
4 changed files with 4 additions and 22 deletions
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
|
@ -54,7 +54,7 @@ jobs:
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
|
uses: github/codeql-action/init@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
|
@ -65,7 +65,7 @@ jobs:
|
||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
# If this step fails, then you should remove it and run the build manually (see below)
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
|
uses: github/codeql-action/autobuild@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 📚 https://git.io/JvXDl
|
||||||
|
@ -79,4 +79,4 @@ jobs:
|
||||||
# make release
|
# make release
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
|
uses: github/codeql-action/analyze@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
|
||||||
|
|
2
.github/workflows/scorecards.yml
vendored
2
.github/workflows/scorecards.yml
vendored
|
@ -75,6 +75,6 @@ jobs:
|
||||||
|
|
||||||
# Upload the results to GitHub's code scanning dashboard.
|
# Upload the results to GitHub's code scanning dashboard.
|
||||||
- name: "Upload to code-scanning"
|
- name: "Upload to code-scanning"
|
||||||
uses: github/codeql-action/upload-sarif@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
|
uses: github/codeql-action/upload-sarif@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|
5
msg.go
5
msg.go
|
@ -679,11 +679,6 @@ func (m *Msg) GetAttachments() []*File {
|
||||||
return m.attachments
|
return m.attachments
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetBoundary returns the boundary of the Msg
|
|
||||||
func (m *Msg) GetBoundary() string {
|
|
||||||
return m.boundary
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetAttachements sets the attachements of the message.
|
// SetAttachements sets the attachements of the message.
|
||||||
func (m *Msg) SetAttachements(files []*File) {
|
func (m *Msg) SetAttachements(files []*File) {
|
||||||
m.attachments = files
|
m.attachments = files
|
||||||
|
|
13
msg_test.go
13
msg_test.go
|
@ -2855,19 +2855,6 @@ func TestMsg_GetBccString(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestMsg_GetBoundary will test the Msg.GetBoundary method
|
|
||||||
func TestMsg_GetBoundary(t *testing.T) {
|
|
||||||
b := "random_boundary_string"
|
|
||||||
m := NewMsg()
|
|
||||||
if boundary := m.GetBoundary(); boundary != "" {
|
|
||||||
t.Errorf("GetBoundary failed. Expected empty string, but got: %s", boundary)
|
|
||||||
}
|
|
||||||
m = NewMsg(WithBoundary(b))
|
|
||||||
if boundary := m.GetBoundary(); boundary != b {
|
|
||||||
t.Errorf("GetBoundary failed. Expected boundary: %s, got: %s", b, boundary)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TestMsg_AttachEmbedReader_consecutive tests the Msg.AttachReader and Msg.EmbedReader
|
// TestMsg_AttachEmbedReader_consecutive tests the Msg.AttachReader and Msg.EmbedReader
|
||||||
// methods with consecutive calls to Msg.WriteTo to make sure the attachments are not
|
// methods with consecutive calls to Msg.WriteTo to make sure the attachments are not
|
||||||
// lost (see Github issue #110)
|
// lost (see Github issue #110)
|
||||||
|
|
Loading…
Reference in a new issue