madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add server-side config comment
authormartin f. krafft <madduck@madduck.net>
Tue, 22 Mar 2022 07:11:37 +0000 (08:11 +0100)
committermartin f. krafft <madduck@madduck.net>
Tue, 22 Mar 2022 07:11:37 +0000 (08:11 +0100)
.offlineimap/preauthtunnel.sh

index 09769746e0f8e6f8ff85e8f67944a857d59c513a..778cf0d12017d8c69329dca0391831758c552a41 100755 (executable)
@@ -1,3 +1,15 @@
 #!/bin/sh
 
 exec ssh -F ~/.offlineimap/ssh_config -i ~/.offlineimap/${1}.ssh-seckey ${1}
+
+# this relies on the IMAP command being specified on the server side, i.e. in
+# ~/.ssh/authorized_keys, put a line like the following
+#
+#   command="MAIL=$HOME/.maildir /usr/lib/dovecot/imap 2>/dev/null",no-agent-forwarding,no-X11-forwarding,no-port-forwarding,no-pty ssh-ed25519 AAA…
+#
+# Then, when you invoke this script directly, you should see the IMAP server
+# greet you:
+#
+# % ~/.offlineimap/preauthtunnel.sh madduck-net.imap.madduck.net
+# * PREAUTH [CAPABILITY IMAP4rev1 […]] Logged in as madduck
+