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 root_access: yes
display_server: "x11" display_server: "x11"
dev_stuffs: dev_stuffs:
- python
- shell
- network
- ansible - ansible
- docker - docker
- network
- php - php
- python
- shell
- sql
software_full: yes software_full: yes
has_battery: yes has_battery: yes
auto_numlock: yes auto_numlock: yes

View file

@ -0,0 +1 @@
sqls

View file

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

View file

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