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.
145For example, the header =X-Pm-Date: Fri, 07 Feb 2025 16:12:08 +0000= will be 145For example, the header =X-Pm-Date: Fri, 07 Feb 2025 16:12:08 +0000= will be
146split into a list as such: 146split into a list as such:
147 147
1480. X-Pm-Date: 148#+begin_src python
1491. Fri, 149[
1502. 07 150 'X-Pm-Date:', # 0
1513. Feb 151 'Fri,', # 1
1524. 2025 152 '07', # 2
1535. 16:12:08 153 'Feb', # 3
1546. +0000 154 '2025', # 4
155 '16:12:08', # 5
156 '+0000' # 6
157]
158#+end_src
155 159
156From this list, we select the fourth element (=2025=) and use that to build the 160From this list, we select the fourth element (=2025=) and use that to build the
157destination path. 161destination path.
158 162
159#+begin_src python 163,#+begin_src python
160# _archive.py 164# _archive.py
161import os 165import os
162import glob 166import glob