Compare commits
2 commits
984d62e7ff
...
2e759f9fc6
Author | SHA1 | Date | |
---|---|---|---|
Geoffrey Frogeye | 2e759f9fc6 | ||
Geoffrey Frogeye | 4b9d696aee |
|
@ -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
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
sqls
|
|
@ -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 {
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue