Commit graph

656 commits

Author SHA1 Message Date
069ffa01fb
Merge pull request #12 from wneessen/11-io-Reader
Msg.Read() to satisfy io.Reader
2022-05-28 10:59:27 +02:00
dd02ac229b
Closes #11
This PR adds a `Msg.Read()` method which satisfies the `io.Reader` interface
2022-05-28 10:58:19 +02:00
c001ac5b94
Merge pull request #10 from wneessen/fix-8
Fixes #8
2022-05-27 12:49:09 +02:00
ebef1fe476
Fixes #8
We were using `io.Copy` to write to the body string/alternative string to the io.Writer. This placed the byte position of the buffer to be at the EOF after the first `WriteTo()` call leaving the output of a 2nd call to `WriteTo()` empty.
2022-05-27 12:47:33 +02:00
570b7bc2ed
Merge pull request #9 from wneessen/readme_update
Updating the README.md to explain the sendmail feature
2022-05-27 11:01:24 +02:00
eed1eeecff
Merge pull request #7 from inliquid/main
Fix sendmail invocation
2022-05-27 10:57:54 +02:00
inliquid
4fe503d142 - Stderr should be read after closing Stdin
- Fix reading of Stderr contents
- Remove redundand calls to `Close`
2022-05-26 14:37:23 +03:00
db9358f8b8
Merge pull request #6 from wneessen/fix_sendmailpipe
Address #5
2022-05-25 10:53:53 +02:00
fa7066c9cf
Update path to sendmail binary
On most systems sendmail is located in /usr/sbin not /usr/bin
2022-05-25 10:53:37 +02:00
070eb39132
Address #5
For the WriteToSendmail* methods the STDIN pipe should be closed so that a forced EOF is sent to the sending program
2022-05-25 10:46:50 +02:00
bf689ac4de
Updating the README.md to explain the sendmail feature 2022-05-24 16:33:41 +02:00
82cb089a8b
Merge pull request #4 from wneessen/writeto_interface
Rename Write() to WriteTo() so it satisfies the io.WriteTo interface
2022-05-24 15:59:09 +02:00
894ff7128c
Rename Write() to WriteTo() so it satisfies the io.WriteTo interface 2022-05-24 15:46:59 +02:00
dabd309738
Update README.md
Added awesome-go badge
2022-05-07 13:53:42 +02:00
556223c09a
Update sonarqube.yml 2022-04-12 23:25:23 +02:00
a5cd8d6d68
Update sonarqube.yml 2022-04-12 23:15:56 +02:00
483773cb9c
Update sonarqube.yml 2022-04-12 23:12:32 +02:00
a60e584682
Update sonar-project.properties 2022-04-12 23:12:12 +02:00
b7c817d4e4
Update and rename sonarqube.yaml to sonarqube.yml 2022-04-12 19:36:20 +02:00
e76cd59d66
Create sonarqube.yaml 2022-04-12 19:35:07 +02:00
3909a3b6f4
Switch from local SonarQube to Github actions 2022-04-12 19:33:44 +02:00
914a02b0be
Fix some code smell that was identified by SonarQube 2022-04-12 16:01:30 +02:00
3351e158a8
Integrate with SonarQube 2022-04-12 15:51:18 +02:00
24993e17d4
Update FUNDING.yml 2022-04-03 12:41:40 +02:00
850441cd5b
Update FUNDING.yml 2022-04-03 12:41:07 +02:00
8f740bd382
Update FUNDING.yml 2022-04-02 13:12:17 +02:00
164376b1b0
Added CoC 2022-03-21 16:47:47 +01:00
22d679cf53
Bump version number 2022-03-21 15:09:58 +01:00
975ebfc4b7
Make GoLinter happy 2022-03-21 14:55:49 +01:00
4b99a9e830
More tests for client.go 2022-03-21 12:18:08 +01:00
a69d07448f
Updated codecov.yml 2022-03-21 12:00:49 +01:00
4c5aa79ff4
Update codecov.yml 2022-03-21 11:03:55 +01:00
db496f61cb
More tests for client.go. +80% coverage is probably the most we can get 2022-03-21 10:38:22 +01:00
f15d3ca25e
Add actual mail sending test to client_test.go 2022-03-21 10:17:48 +01:00
c3298d7181
Make GoLinter happy 2022-03-21 10:17:26 +01:00
a6e36d57bc
Update codecov.yml 2022-03-21 10:15:58 +01:00
830cb5632d
msgwriter.go is now fully test covered (93%) 2022-03-21 09:55:45 +01:00
8f96251ebf
Update auth_test.go to cover the new response 2022-03-20 19:31:30 +01:00
6a446bd4bd
Added fix to LOGIN auth module, in case the server responds with "Authentication successful" 2022-03-20 19:28:20 +01:00
030eba8cfd
Default header and sorting
- Default headers are set in its own method now
- Generic headers are now sorted before being written
2022-03-20 19:11:58 +01:00
663954f370
Fix typos in msg_test.go 2022-03-20 18:30:29 +01:00
3afc3f2c35
Bump version to v0.1.7 2022-03-20 18:19:19 +01:00
d448f0566b
v0.1.6b: writeHeader() was producing double spaces at line breaks 2022-03-20 18:18:06 +01:00
b852a5281a
v0.1.6: Fix in writeHeader() and User-Agent
- The writeHeader() method wasn't producing good output for long headers. This has been fixed
- Added a VERSION string to the library
- If both no User-Agent and no X-Mailer header are set, the lib adds a default UA-header
2022-03-20 17:38:46 +01:00
d6dffc3071
More test coverage 2022-03-19 20:50:05 +01:00
a47f372a1a
More tests for all types of parts 2022-03-19 18:33:04 +01:00
68049b568d
Another fix for the written byte counting, this time for parts (alt/attach/embed) 2022-03-19 18:32:51 +01:00
429c9a1883
More tests for msg.go 2022-03-19 16:56:38 +01:00
d6f131c36d
Fix in writeBody method which returned wrong bytes amounts for encoded message bodies 2022-03-19 16:56:14 +01:00
b6d90eac6a
*Reader() methods don't need to check for nil, as the underlying fileFromReader does never return nil 2022-03-19 16:55:30 +01:00