1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
From: Martin Pitt <mpitt@debian.org>
Date: Wed, 23 Nov 2016 12:32:25 +0100
Subject: Document how to create a .moin_ids from Firefox
Bug: https://launchpad.net/bugs/806304
---
editmoin.1 | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/editmoin.1 b/editmoin.1
index fb6c413..270e8ee 100644
--- a/editmoin.1
+++ b/editmoin.1
@@ -103,6 +103,18 @@ If the server needs Basic HTTP Authentication you can use something like:
https://user:password@example.com/moin/moin.cgi 123456789.123.12345
.PP
+You can use a command like this to create a
+.B ~/.moin_ids
+file from your current Firefox profile:
+
+.PP
+sqlite3 -separator ' ' .mozilla/*/*.default/cookies.sqlite \\
+.BR
+ "SELECT host,value FROM moz_cookies WHERE name LIKE 'MOIN_SESSION'" \\
+.BR
+ | sed 's_^_https://_' > ~/.moin_ids
+
+.PP
For using shortcuts (see below), and also for better control, defining
URLs without IDs in that file is valid.
|