Commit 0586132a85

0586132a85e62f21251cb0339bccf8b2b4b18ccb

parent: cf25c7bad7

Unsigned

cmc <hello@cleberg.net> · 2025-02-25 03:03 UTC

enhance list example in email-migration post

Layout: unified · split

content/blog/2025-02-24-email-migration.org +12 −8
@@ -145,18 +145,22 @@ it to.
145145For example, the header =X-Pm-Date: Fri, 07 Feb 2025 16:12:08 +0000= will be
146146split into a list as such:
147147
1480. X-Pm-Date:
1491. Fri,
1502. 07
1513. Feb
1524. 2025
1535. 16:12:08
1546. +0000
148#+begin_src python
149[
150 'X-Pm-Date:', # 0
151 'Fri,', # 1
152 '07', # 2
153 'Feb', # 3
154 '2025', # 4
155 '16:12:08', # 5
156 '+0000' # 6
157]
158#+end_src
155159
156160From this list, we select the fourth element (=2025=) and use that to build the
157161destination path.
158162
159#+begin_src python
163,#+begin_src python
160164# _archive.py
161165import os
162166import glob