aboutsummaryrefslogtreecommitdiff
path: root/content/blog/2025-02-24-email-migration.org
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2025-02-24 21:03:29 -0600
committerChristian Cleberg <hello@cleberg.net>2025-02-24 21:03:29 -0600
commit77819e8e2f7f132c3cf3c9df569b51ae69d14f9c (patch)
treed0c6c6b6acd9eec9b05e492b1999877429f64b50 /content/blog/2025-02-24-email-migration.org
parentbad457641e5a5eec4a83231d80c1b851eaeba9cb (diff)
downloadcleberg.net-77819e8e2f7f132c3cf3c9df569b51ae69d14f9c.tar.gz
cleberg.net-77819e8e2f7f132c3cf3c9df569b51ae69d14f9c.tar.bz2
cleberg.net-77819e8e2f7f132c3cf3c9df569b51ae69d14f9c.zip
enhance list example in email-migration post
Diffstat (limited to 'content/blog/2025-02-24-email-migration.org')
-rw-r--r--content/blog/2025-02-24-email-migration.org20
1 files changed, 12 insertions, 8 deletions
diff --git a/content/blog/2025-02-24-email-migration.org b/content/blog/2025-02-24-email-migration.org
index 1cb9cea..8ec5601 100644
--- a/content/blog/2025-02-24-email-migration.org
+++ b/content/blog/2025-02-24-email-migration.org
@@ -145,18 +145,22 @@ it to.
For example, the header =X-Pm-Date: Fri, 07 Feb 2025 16:12:08 +0000= will be
split into a list as such:
-0. X-Pm-Date:
-1. Fri,
-2. 07
-3. Feb
-4. 2025
-5. 16:12:08
-6. +0000
+#+begin_src python
+[
+ 'X-Pm-Date:', # 0
+ 'Fri,', # 1
+ '07', # 2
+ 'Feb', # 3
+ '2025', # 4
+ '16:12:08', # 5
+ '+0000' # 6
+]
+#+end_src
From this list, we select the fourth element (=2025=) and use that to build the
destination path.
-#+begin_src python
+,#+begin_src python
# _archive.py
import os
import glob