Commit graph

227 commits

Author SHA1 Message Date
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
a734a65b2e
Adjust codecov.yml 2022-03-18 23:35:01 +01:00
e379128c83
Still trying to fix the GH issues with MacOS' broken pipe 2022-03-18 23:28:11 +01:00
8f9fc61c1e
MacOS tests on GH seem to have issued with the sendmail as well. Let's try timeouts 2022-03-18 23:23:59 +01:00
24b99cf0af
Windows has no sendmail, so let's exclude those tests for Windows 2022-03-18 23:13:22 +01:00
7b5b4fa52b
Windows has no sendmail, so let's exclude those tests for Windows 2022-03-18 23:10:53 +01:00
d653cdc782
GH tests failed due to /usr/bin/true... probably /bin/echo will behave better 2022-03-18 23:01:29 +01:00
0e00b165f9
WriteToSendmailWithContext tests revealed a race condition which has been fixed 2022-03-18 22:23:03 +01:00
3c642be4eb
Added WriteToSendmailWithCommand which is more generic and takes a command to sendmail
The code of WriteToSendmail has been refactored to return the new WriteToSendmailWithCommand using SendmailPath
2022-03-18 21:07:07 +01:00
00264b6f70
Merge remote-tracking branch 'origin/main' 2022-03-18 17:08:14 +01:00
709b4e6b91
Switched write functions to return the number of bytes. Due to failing tests in Msg.Write() 2022-03-18 17:08:05 +01:00
6fa4e8be25
Update codecov.yml 2022-03-18 15:15:16 +01:00
bf755cd944
Fix nil pointer deref in part_test.go 2022-03-18 15:09:34 +01:00
e909bd5499
More tests. 50% overall coverage now 2022-03-18 15:05:33 +01:00
c698312133
More tests for msg.go. 69% coverage - nice! 2022-03-18 14:36:44 +01:00
106e9c4f28
More tests for msg.go. Finally over 50% coverage there 2022-03-18 12:12:40 +01:00
f8a9512462
More tests for msg.go 2022-03-18 11:47:50 +01:00
3f101817ae
Tests for file.go added 2022-03-18 11:12:36 +01:00
b48b6e0b6a
More tests. encoding.go has now 100% coverage 2022-03-18 10:46:12 +01:00
bfcd52b9f0
Added String() methods for AddrHeader and Header (incl. tests) 2022-03-18 10:35:51 +01:00
b00116c892
More tests. 100% header.go coverage 2022-03-18 10:15:02 +01:00
8f2959b465
Merge remote-tracking branch 'origin/main' 2022-03-16 21:32:57 +01:00
fcd1bb8d12
Starting with client testing 2022-03-16 21:32:51 +01:00
dc37b3d285
Update codecov.yml 2022-03-16 21:08:34 +01:00
04343f4417
Verbose testing is needed 2022-03-16 21:06:12 +01:00
1c699da955
More tests. Also testing GH's behaviour on ENV variables for testing 2022-03-16 21:02:31 +01:00
ec162e7836
More tests for client.go 2022-03-16 14:09:50 +01:00
d72f709313
Merge remote-tracking branch 'origin/main' 2022-03-15 22:38:01 +01:00
a0ebc5bd78
More and better tests for client.go 2022-03-15 22:37:55 +01:00
57bb99b43d
Update codecov.yml
Set 1.18 as if criteria
2022-03-15 21:58:57 +01:00