nwjlyons / email Goto Github PK
View Code? Open in Web Editor NEWEmail is a command line program that can send attachments, and stdin as the body of an email.
License: MIT License
Email is a command line program that can send attachments, and stdin as the body of an email.
License: MIT License
I've tested the application on my UbuntuVM and it works a treat. However, when I attempt to use it on my Windows 7 65-bit machine it fails with:
"GetFileInformationByHandle /dev/stdin: The handle is invalid."
This happens both for cases where the path to the config.json has spaces and doesn't so I doubt that's the problem.
It would be awesome to be able to use this great app from Windows :)
Finally, if helpful, here's the output of running go test:
--- FAIL: TestSettingsFromFlags (0.00s)
main_test.go:38: GetFileInformationByHandle /dev/stdin: Incorrect function.
main_test.go:50: Email body is wrong
--- FAIL: TestBodyIsRequiredWhenThereAreNoAttachments (0.00s)
main_test.go:101: Failed to detect empty body and no attachments.
--- FAIL: TestSettings (0.00s)
main_test.go:111: GetFileInformationByHandle /dev/stdin: Incorrect function.
panic: runtime error: index out of range [recovered]
panic: runtime error: index out of range
goroutine 10 [running]:
testing.func┬╖006()
c:/go/src/testing/testing.go:441 +0x14f
github.com/nwjlyons/email.TestSettings(0x122ee840)
C:/gocode/src/github.com/nwjlyons/email/main_test.go:114 +0x514
testing.tRunner(0x122ee840, 0x7c3cfc)
c:/go/src/testing/testing.go:447 +0xb1
created by testing.RunTests
c:/go/src/testing/testing.go:555 +0x863
goroutine 1 [chan receive]:
testing.RunTests(0x6f81c8, 0x7c3cc0, 0x7, 0x7, 0x0)
c:/go/src/testing/testing.go:556 +0x89f
testing.(*M).Run(0x122e45d0, 0x7cda80)
c:/go/src/testing/testing.go:485 +0x5e
main.main()
github.com/nwjlyons/email/_test/_testmain.go:64 +0x177
exit status 2
FAIL github.com/nwjlyons/email 0.152s
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.