Compare commits

...

2 Commits

Author SHA1 Message Date
Geoffrey Frogeye 2e759f9fc6
Support SQL dev 2022-03-20 18:09:21 +01:00
Geoffrey Frogeye 4b9d696aee
smtpdummy: Support SMTPUTF8 2022-03-20 18:09:04 +01:00
4 changed files with 10 additions and 4 deletions

View File

@ -1,12 +1,13 @@
root_access: yes
display_server: "x11"
dev_stuffs:
- python
- shell
- network
- ansible
- docker
- network
- php
- python
- shell
- sql
software_full: yes
has_battery: yes
auto_numlock: yes

View File

@ -0,0 +1 @@
sqls

View File

@ -47,6 +47,9 @@ local servers = {
{% if 'php' in dev_stuffs %}
"phpactor", -- Install this one manually https://phpactor.readthedocs.io/en/master/usage/standalone.html#global-installation
{% endif %}
{% if 'sql' in dev_stuffs %}
"sqls",
{% endif %}
}
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {

View File

@ -56,6 +56,7 @@ if __name__ == "__main__":
env_var="SUBJECT",
default=f"Test message {now.strftime('%H:%M:%S')}",
)
parser.add_argument("-8", "--smtputf8", env_var="SMTPUTF8", action="store_true")
parser.add_argument("-c", "--callout", env_var="CALLOUT", action="store_true")
parser.add_argument("-b", "--body", env_var="BODY", default="")
@ -193,7 +194,7 @@ Input arguments:
+ password.encode()
).decode()
send(f"AUTH PLAIN {encoded}")
send(f"MAIL FROM: <{args.sender}>")
send(f"MAIL FROM: <{args.sender}>" + (" SMTPUTF8" if args.smtputf8 else ""))
for receiver in args.receiver:
send(f"RCPT TO: <{receiver}>")
if not args.callout: