1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries from March
2014</title>
5 <description>Entries from March
2014</description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
10 <title>Dokumentaren om Datalagringsdirektivet sendes endelig på NRK
</title>
11 <link>http://people.skolelinux.org/pere/blog/Dokumentaren_om_Datalagringsdirektivet_sendes_endelig_p__NRK.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Dokumentaren_om_Datalagringsdirektivet_sendes_endelig_p__NRK.html
</guid>
13 <pubDate>Wed,
26 Mar
2014 09:
50:
00 +
0100</pubDate>
14 <description><p
><a href=
"http://www.nuug.no/
">Foreningen NUUG
</a
> melder i natt at
15 NRK nå har bestemt seg for
16 <a href=
"http://www.nuug.no/news/NRK_viser_filmen_om_Datalagringsdirektivet_f_rste_gang_2014_03_31.shtml
">når
17 den norske dokumentarfilmen om datalagringsdirektivet skal
18 sendes
</a
> (se
<a href=
"http://www.imdb.com/title/tt2832844/
">IMDB
</a
>
19 for detaljer om filmen) . Første visning blir på NRK2 mandag
20 2014-
03-
31 kl.
19:
50, og deretter visninger onsdag
2014-
04-
02
21 kl.
12:
30, fredag
2014-
04-
04 kl.
19:
40 og søndag
2014-
04-
06 kl.
15:
10.
22 Jeg har sett dokumentaren, og jeg anbefaler enhver å se den selv. Som
23 oppvarming mens vi venter anbefaler jeg Bjørn Stærks kronikk i
24 Aftenposten fra i går,
25 <a href=
"http://www.aftenposten.no/meninger/kronikker/Autoritar-gjokunge-
7514915.html
">Autoritær
26 gjøkunge
</a
>, der han gir en grei skisse av hvor ille det står til med
27 retten til privatliv og beskyttelsen av demokrati i Norge og resten
28 verden, og helt riktig slår fast at det er vi i databransjen som
29 sitter med nøkkelen til å gjøre noe med dette. Jeg har involvert meg
30 i prosjektene
<a href=
"http://www.dugnadsnett.no/
">dugnadsnett.no
</a
>
31 og
<a href=
"https://wiki.debian.org/FreedomBox
">FreedomBox
</a
> for å
32 forsøke å gjøre litt selv for å bedre situasjonen, men det er mye
33 hardt arbeid fra mange flere enn meg som gjenstår før vi kan sies å ha
34 gjenopprettet balansen.
</p
>
36 <p
>Jeg regner med at nettutgaven dukker opp på
37 <a href=
"http://tv.nrk.no/program/koid75005313/tema-dine-digitale-spor-datalagringsdirektivet
">NRKs
38 side om filmen om datalagringsdirektivet
</a
> om frem dager. Hold et
39 øye med siden, og tips venner og slekt om at de også bør se den.
</p
>
44 <title>Public Trusted Timestamping services for everyone
</title>
45 <link>http://people.skolelinux.org/pere/blog/Public_Trusted_Timestamping_services_for_everyone.html
</link>
46 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Public_Trusted_Timestamping_services_for_everyone.html
</guid>
47 <pubDate>Tue,
25 Mar
2014 12:
50:
00 +
0100</pubDate>
48 <description><p
>Did you ever need to store logs or other files in a way that would
49 allow it to be used as evidence in court, and needed a way to
50 demonstrate without reasonable doubt that the file had not been
51 changed since it was created? Or, did you ever need to document that
52 a given document was received at some point in time, like some
53 archived document or the answer to an exam, and not changed after it
54 was received? The problem in these settings is to remove the need to
55 trust yourself and your computers, while still being able to prove
56 that a file is the same as it was at some given time in the past.
</p
>
58 <p
>A solution to these problems is to have a trusted third party
59 "stamp
" the document and verify that at some given time the document
60 looked a given way. Such
61 <a href=
"https://en.wikipedia.org/wiki/Notarius
">notarius
</a
> service
62 have been around for thousands of years, and its digital equivalent is
64 <a href=
"http://en.wikipedia.org/wiki/Trusted_timestamping
">trusted
65 timestamping service
</a
>.
<a href=
"http://www.ietf.org/
">The Internet
66 Engineering Task Force
</a
> standardised how such service could work a
67 few years ago as
<a href=
"http://tools.ietf.org/html/rfc3161
">RFC
68 3161</a
>. The mechanism is simple. Create a hash of the file in
69 question, send it to a trusted third party which add a time stamp to
70 the hash and sign the result with its private key, and send back the
71 signed hash + timestamp. Both email, FTP and HTTP can be used to
72 request such signature, depending on what is provided by the service
73 used. Anyone with the document and the signature can then verify that
74 the document matches the signature by creating their own hash and
75 checking the signature using the trusted third party public key.
76 There are several commercial services around providing such
77 timestamping. A quick search for
78 "<a href=
"https://duckduckgo.com/?q=rfc+
3161+service
">rfc
3161
79 service
</a
>" pointed me to at least
80 <a href=
"https://www.digistamp.com/technical/how-a-digital-time-stamp-works/
">DigiStamp
</a
>,
81 <a href=
"http://www.quovadisglobal.co.uk/CertificateServices/SigningServices/TimeStamp.aspx
">Quo
83 <a href=
"https://www.globalsign.com/timestamp-service/
">Global Sign
</a
>
84 and
<a href=
"http://www.globaltrustfinder.com/TSADefault.aspx
">Global
85 Trust Finder
</a
>. The system work as long as the private key of the
86 trusted third party is not compromised.
</p
>
88 <p
>But as far as I can tell, there are very few public trusted
89 timestamp services available for everyone. I
've been looking for one
90 for a while now. But yesterday I found one over at
91 <a href=
"https://www.pki.dfn.de/zeitstempeldienst/
">Deutches
92 Forschungsnetz
</a
> mentioned in
93 <a href=
"http://www.d-mueller.de/blog/dealing-with-trusted-timestamps-in-php-rfc-
3161/
">a
94 blog by David Müller
</a
>. I then found
95 <a href=
"http://www.rz.uni-greifswald.de/support/dfn-pki-zertifikate/zeitstempeldienst.html
">a
96 good recipe on how to use the service
</a
> over at the University of
99 <p
><a href=
"http://www.openssl.org/
">The OpenSSL library
</a
> contain
100 both server and tools to use and set up your own signing service. See
101 the ts(
1SSL), tsget(
1SSL) manual pages for more details. The
102 following shell script demonstrate how to extract a signed timestamp
103 for any file on the disk in a Debian environment:
</p
>
105 <p
><blockquote
><pre
>
108 url=
"http://zeitstempel.dfn.de
"
109 caurl=
"https://pki.pca.dfn.de/global-services-ca/pub/cacert/chain.txt
"
110 reqfile=$(mktemp -t tmp.XXXXXXXXXX.tsq)
111 resfile=$(mktemp -t tmp.XXXXXXXXXX.tsr)
113 if [ ! -f $cafile ] ; then
114 wget -O $cafile
"$caurl
"
116 openssl ts -query -data
"$
1" -cert | tee
"$reqfile
" \
117 | /usr/lib/ssl/misc/tsget -h
"$url
" -o
"$resfile
"
118 openssl ts -reply -in
"$resfile
" -text
1>&2
119 openssl ts -verify -data
"$
1" -in
"$resfile
" -CAfile
"$cafile
" 1>&2
120 base64
< "$resfile
"
121 rm
"$reqfile
" "$resfile
"
122 </pre
></blockquote
></p
>
124 <p
>The argument to the script is the file to timestamp, and the output
125 is a base64 encoded version of the signature to STDOUT and details
126 about the signature to STDERR. Note that due to
127 <a href=
"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
742553">a bug
128 in the tsget script
</a
>, you might need to modify the included script
129 and remove the last line. Or just write your own HTTP uploader using
130 curl. :) Now you too can prove and verify that files have not been
133 <p
>But the Internet need more public trusted timestamp services.
134 Perhaps something for
<a href=
"http://www.uninett.no/
">Uninett
</a
> or
135 my work place the
<a href=
"http://www.uio.no/
">University of Oslo
</a
>
141 <title>Video DVD reader library / python-dvdvideo - nice free software
</title>
142 <link>http://people.skolelinux.org/pere/blog/Video_DVD_reader_library___python_dvdvideo___nice_free_software.html
</link>
143 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Video_DVD_reader_library___python_dvdvideo___nice_free_software.html
</guid>
144 <pubDate>Fri,
21 Mar
2014 15:
25:
00 +
0100</pubDate>
145 <description><p
>Keeping your DVD collection safe from scratches and curious
146 children fingers while still having it available when you want to see a
147 movie is not straight forward. My preferred method at the moment is
148 to store a full copy of the ISO on a hard drive, and use VLC, Popcorn
149 Hour or other useful players to view the resulting file. This way the
150 subtitles and bonus material are still available and using the ISO is
151 just like inserting the original DVD record in the DVD player.
</p
>
153 <p
>Earlier I used dd for taking security copies, but it do not handle
154 DVDs giving read errors (which are quite a few of them). I
've also
156 <a href=
"http://people.skolelinux.org/pere/blog/Ripping_problematic_DVDs_using_dvdbackup_and_genisoimage.html
">dvdbackup
157 and genisoimage
</a
>, but these days I use the marvellous python library
159 <a href=
"http://bblank.thinkmo.de/blog/new-software-python-dvdvideo
">python-dvdvideo
</a
>
160 written by Bastian Blank. It is
161 <a href=
"http://packages.qa.debian.org/p/python-dvdvideo.html
">in Debian
162 already
</a
> and the binary package name is python3-dvdvideo. Instead
163 of trying to read every block from the DVD, it parses the file
164 structure and figure out which block on the DVD is actually in used,
165 and only read those blocks from the DVD. This work surprisingly well,
166 and I have been able to almost backup my entire DVD collection using
167 this method.
</p
>
169 <p
>So far, python-dvdvideo have failed on between
10 and
170 20 DVDs, which is a small fraction of my collection. The most common
172 <a href=
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
720831">DVDs
173 using UTF-
16 instead of UTF-
8 characters
</a
>, which according to
174 Bastian is against the DVD specification (and seem to cause some
175 players to fail too). A rarer problem is what seem to be inconsistent
176 DVD structures, as the python library
177 <a href=
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
723079">claim
178 there is a overlap between objects
</a
>. An equally rare problem claim
179 <a href=
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
741878">some
180 value is out of range
</a
>. No idea what is going on there. I wish I
181 knew enough about the DVD format to fix these, to ensure my movie
182 collection will stay with me in the future.
</p
>
184 <p
>So, if you need to keep your DVDs safe, back them up using
185 python-dvdvideo. :)
</p
>
190 <title>Norsk utgave av Alaveteli / WhatDoTheyKnow på trappene
</title>
191 <link>http://people.skolelinux.org/pere/blog/Norsk_utgave_av_Alaveteli___WhatDoTheyKnow_p__trappene.html
</link>
192 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Norsk_utgave_av_Alaveteli___WhatDoTheyKnow_p__trappene.html
</guid>
193 <pubDate>Sun,
16 Mar
2014 09:
30:
00 +
0100</pubDate>
194 <description><p
>Det offentlige Norge har mye kunnskap og informasjon. Men hvordan
195 kan en få tilgang til den på en enkel måte? Takket være et lite
196 knippe lover og tilhørende forskrifter, blant annet
197 <a href=
"http://lovdata.no/dokument/NL/lov/
2006-
05-
19-
16">offentlighetsloven
</a
>,
198 <a href=
"http://lovdata.no/dokument/NL/lov/
2003-
05-
09-
31">miljøinformasjonsloven
</a
>
200 <a href=
"http://lovdata.no/dokument/NL/lov/
1967-
02-
10/
">forvaltningsloven
</a
>
201 har en rett til å spørre det offentlige og få svar. Men det finnes
202 intet offentlig arkiv over hva andre har spurt om, og dermed risikerer en
203 å måtte forstyrre myndighetene gang på gang for å få tak i samme
204 informasjonen på nytt.
<a href=
"http://www.mysociety.org/
">Britiske
205 mySociety
</a
> har laget tjenesten
206 <a href=
"http://www.whatdotheyknow.com/
">WhatDoTheyKnow
</a
> som gjør
207 noe med dette. I Storbritannia blir WhatdoTheyKnow brukt i
208 <a href=
"http://www.mysociety.org/
2011/
07/
01/whatdotheyknows-share-of-central-government-foi-requests-q2-
2011/
">ca
209 15% av alle innsynsforespørsler mot sentraladministrasjonen
</a
>.
210 Prosjektet heter
<a href=
"http://www.alaveteli.org/
">Alaveteli
</A
>, og
211 er takk i bruk en rekke steder etter at løsningen ble generalisert og
212 gjort mulig å oversette. Den hjelper borgerne med å be om innsyn,
213 rådgir ved purringer og klager og lar alle se hvilke henvendelser som
214 er sendt til det offentlige og hvilke svar som er kommet inn, i et
215 søkpart arkiv. Her i Norge holder vi i foreningen NUUG på å få opp en
216 norsk utgave av Alaveteli, og her trenger vi din hjelp med
217 oversettelsen.
</p
>
219 <p
>Så langt er
76 % av Alaveteli oversatt til norsk bokmål, men vi
220 skulle gjerne vært oppe i
100 % før lansering. Oversettelsen gjøres
221 på
<a href=
"https://www.transifex.com/projects/p/alaveteli/
">Transifex,
222 der enhver som registrerer seg
</a
> og ber om tilgang til
223 bokmålsoversettelsen får bidra. Vi har satt opp en test av tjenesten
224 (som ikke sender epost til det offentlige, kun til oss som holder på å
225 sette opp tjenesten) på maskinen
226 <a href=
"http://alaveteli-dev.nuug.no/
">alaveteli-dev.nuug.no
</a
>, der
227 en kan se hvordan de oversatte meldingen blir seende ut på nettsiden.
228 Når tjenesten lanseres vil den hete
229 <a href=
"https://www.mimesbrønn.no/
">Mimes brønn
</a
>, etter
230 visdomskilden som Odin måtte gi øyet sitt for å få drikke i. Den
231 nettsiden er er ennå ikke klar til bruk.
</p
>
233 <p
>Hvis noen vil oversette til nynorsk også, så skal vi finne ut
234 hvordan vi lager en flerspråklig tjeneste. Men i første omgang er
235 fokus på bokmålsoversettelsen, der vi selv har nok peiling til å ha
236 fått oversatt
76%, men trenger hjelp for å komme helt i mål. :)
</p
>
241 <title>Freedombox on Dreamplug, Raspberry Pi and virtual x86 machine
</title>
242 <link>http://people.skolelinux.org/pere/blog/Freedombox_on_Dreamplug__Raspberry_Pi_and_virtual_x86_machine.html
</link>
243 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Freedombox_on_Dreamplug__Raspberry_Pi_and_virtual_x86_machine.html
</guid>
244 <pubDate>Fri,
14 Mar
2014 11:
00:
00 +
0100</pubDate>
245 <description><p
>The
<a href=
"https://wiki.debian.org/FreedomBox
">Freedombox
246 project
</a
> is working on providing the software and hardware for
247 making it easy for non-technical people to host their data and
248 communication at home, and being able to communicate with their
249 friends and family encrypted and away from prying eyes. It has been
250 going on for a while, and is slowly progressing towards a new test
251 release (
0.2).
</p
>
253 <p
>And what day could be better than the Pi day to announce that the
254 new version will provide
"hard drive
" / SD card / USB stick images for
255 Dreamplug, Raspberry Pi and VirtualBox (or any other virtualization
256 system), and can also be installed using a Debian installer preseed
257 file. The Debian based Freedombox is now based on Debian Jessie,
258 where most of the needed packages used are already present. Only one,
259 the freedombox-setup package, is missing. To try to build your own
260 boot image to test the current status, fetch the freedom-maker scripts
262 <a href=
"http://packages.qa.debian.org/vmdebootstrap
">vmdebootstrap
</a
>
263 with a user with sudo access to become root:
266 git clone http://anonscm.debian.org/git/freedombox/freedom-maker.git \
268 sudo apt-get install git vmdebootstrap mercurial python-docutils \
269 mktorrent extlinux virtualbox qemu-user-static binfmt-support \
271 make -C freedom-maker dreamplug-image raspberry-image virtualbox-image
274 <p
>Root access is needed to run debootstrap and mount loopback
275 devices. See the README for more details on the build. If you do not
276 want all three images, trim the make line. But note that thanks to
<a
277 href=
"https://bugs.debian.org/
741407">a race condition in
278 vmdebootstrap
</a
>, the build might fail without the patch to the
279 kpartx call.
</p
>
281 <p
>If you instead want to install using a Debian CD and the preseed
282 method, boot a Debian Wheezy ISO and use this boot argument to load
283 the preseed values:
</p
>
286 url=
<a href=
"http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
">http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
</a
>
289 <p
>But note that due to
<a href=
"https://bugs.debian.org/
740673">a
290 recently introduced bug in apt in Jessie
</a
>, the installer will
291 currently hang while setting up APT sources. Killing the
292 '<tt
>apt-cdrom ident
</tt
>' process when it hang a few times during the
293 installation will get the installation going. This affect all
294 installations in Jessie, and I expect it will be fixed soon.
</p
>
296 <p
>Give it a go and let us know how it goes on the mailing list, and help
297 us get the new release published. :) Please join us on
298 <a href=
"irc://irc.debian.org:
6667/%
23freedombox
">IRC (#freedombox on
299 irc.debian.org)
</a
> and
300 <a href=
"http://lists.alioth.debian.org/mailman/listinfo/freedombox-discuss
">the
301 mailing list
</a
> if you want to help make this vision come true.
</p
>
306 <title>How to add extra storage servers in Debian Edu / Skolelinux
</title>
307 <link>http://people.skolelinux.org/pere/blog/How_to_add_extra_storage_servers_in_Debian_Edu___Skolelinux.html
</link>
308 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/How_to_add_extra_storage_servers_in_Debian_Edu___Skolelinux.html
</guid>
309 <pubDate>Wed,
12 Mar
2014 12:
50:
00 +
0100</pubDate>
310 <description><p
>On larger sites, it is useful to use a dedicated storage server for
311 storing user home directories and data. The design for handling this
312 in
<a href=
"http://www.skolelinux.org/
">Debian Edu / Skolelinux
</a
>, is
313 to update the automount rules in LDAP and let the automount daemon on
314 the clients take care of the rest. I was reminded about the need to
315 document this better when one of the customers of
316 <a href=
"http://www.slxdrift.no/
">Skolelinux Drift AS
</a
>, where I am
317 on the board of directors, asked about how to do this. The steps to
318 get this working are the following:
</p
>
322 <li
>Add new storage server in DNS. I use nas-server.intern as the
323 example host here.
</li
>
325 <li
>Add automoun LDAP information about this server in LDAP, to allow
326 all clients to automatically mount it on reqeust.
</li
>
328 <li
>Add the relevant entries in tjener.intern:/etc/fstab, because
329 tjener.intern do not use automount to avoid mounting loops.
</li
>
331 </ol
></p
>
333 <p
>DNS entries are added in GOsa², and not described here. Follow the
334 <a href=
"https://wiki.debian.org/DebianEdu/Documentation/Wheezy/GettingStarted
">instructions
335 in the manual
</a
> (Machine Management with GOsa² in section Getting
338 <p
>Ensure that the NFS export points on the server are exported to the
339 relevant subnets or machines:
</p
>
341 <p
><blockquote
><pre
>
342 root@tjener:~# showmount -e nas-server
343 Export list for nas-server:
346 </pre
></blockquote
></p
>
348 <p
>Here everything on the backbone network is granted access to the
349 /storage export. With NFSv3 it is slightly better to limit it to
350 netgroup membership or single IP addresses to have some limits on the
351 NFS access.
</p
>
353 <p
>The next step is to update LDAP. This can not be done using GOsa²,
354 because it lack a module for automount. Instead, use ldapvi and add
355 the required LDAP objects using an editor.
</p
>
357 <p
><blockquote
><pre
>
358 ldapvi --ldap-conf -ZD
'(cn=admin)
' -b ou=automount,dc=skole,dc=skolelinux,dc=no
359 </pre
></blockquote
></p
>
361 <p
>When the editor show up, add the following LDAP objects at the
362 bottom of the document. The
"/
&" part in the last LDAP object is a
363 wild card matching everything the nas-server exports, removing the
364 need to list individual mount points in LDAP.
</p
>
366 <p
><blockquote
><pre
>
367 add cn=nas-server,ou=auto.skole,ou=automount,dc=skole,dc=skolelinux,dc=no
368 objectClass: automount
370 automountInformation: -fstype=autofs --timeout=
60 ldap:ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
372 add ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
374 objectClass: automountMap
377 add cn=/,ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
378 objectClass: automount
380 automountInformation: -fstype=nfs,tcp,rsize=
32768,wsize=
32768,rw,intr,hard,nodev,nosuid,noatime nas-server.intern:/
&
381 </pre
></blockquote
></p
>
383 <p
>The last step to remember is to mount the relevant mount points in
384 tjener.intern by adding them to /etc/fstab, creating the mount
385 directories using mkdir and running
"mount -a
" to mount them.
</p
>
387 <p
>When this is done, your users should be able to access the files on
388 the storage server directly by just visiting the
389 /tjener/nas-server/storage/ directory using any application on any
390 workstation, LTSP client or LTSP server.
</p
>
395 <title>Hvordan bør RFC
822-formattert epost lagres i en NOARK5-database?
</title>
396 <link>http://people.skolelinux.org/pere/blog/Hvordan_b_r_RFC_822_formattert_epost_lagres_i_en_NOARK5_database_.html
</link>
397 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Hvordan_b_r_RFC_822_formattert_epost_lagres_i_en_NOARK5_database_.html
</guid>
398 <pubDate>Fri,
7 Mar
2014 15:
20:
00 +
0100</pubDate>
399 <description><p
>For noen uker siden ble NXCs fri programvarelisenserte
401 <a href=
"http://www.nuug.no/aktiviteter/
20140211-noark/
">presentert hos
402 NUUG
</a
> (video
403 <a href=
"https://www.youtube.com/watch?v=JCb_dNS3MHQ
">på youtube
404 foreløbig
</a
>), og det fikk meg til å titte litt mer på NOARK5,
405 standarden for arkivhåndtering i det offentlige Norge. Jeg lurer på
406 om denne kjernen kan være nyttig i et par av mine prosjekter, og for ett
407 av dem er det mest aktuelt å lagre epost. Jeg klarte ikke finne noen
408 anbefaling om hvordan RFC
822-formattert epost (aka Internett-epost)
409 burde lagres i NOARK5, selv om jeg vet at noen arkiver tar
410 PDF-utskrift av eposten med sitt epostprogram og så arkiverer PDF-en
411 (eller enda værre, tar papirutskrift og lagrer bildet av eposten som
412 PDF i arkivet).
</p
>
414 <p
>Det er ikke så mange formater som er akseptert av riksarkivet til
415 langtidsoppbevaring av offentlige arkiver, og PDF og XML er de mest
416 aktuelle i så måte. Det slo meg at det måtte da finnes en eller annen
417 egnet XML-representasjon og at det kanskje var enighet om hvilken som
418 burde brukes, så jeg tok mot til meg og spurte
419 <a href=
"http://samdok.com/
">SAMDOK
</a
>, en gruppe tilknyttet
420 arkivverket som ser ut til å jobbe med NOARK-samhandling, om de hadde
423 <p
><blockquote
>
424 <p
>Hei.
</p
>
426 <p
>Usikker på om dette er riktig forum å ta opp mitt spørsmål, men jeg
427 lurer på om det er definert en anbefaling om hvordan RFC
428 822-formatterte epost (aka vanlig Internet-epost) bør lages håndteres
429 i NOARK5, slik at en bevarer all informasjon i eposten
430 (f.eks. Received-linjer). Finnes det en anbefalt XML-mapping ala den
432 &lt;URL:
<a href=
"https://www.informit.com/articles/article.aspx?p=
32074">https://www.informit.com/articles/article.aspx?p=
32074</a
> &gt;? Mitt
433 mål er at det skal være mulig å lagre eposten i en NOARK5-kjerne og
434 kunne få ut en identisk formattert kopi av opprinnelig epost ved
436 </blockquote
></p
>
438 <p
>Postmottaker hos SAMDOK mente spørsmålet heller burde stilles
439 direkte til riksarkivet, og jeg fikk i dag svar derfra formulert av
440 seniorrådgiver Geir Ivar Tungesvik:
</p
>
442 <p
><blockquote
>
443 <p
>Riksarkivet har ingen anbefalinger når det gjelder konvertering fra
444 e-post til XML. Det står arkivskaper fritt å eventuelt definere/bruke
445 eget format. Inklusive da - som det spørres om - et format der det er
446 mulig å re-etablere e-post format ut fra XML-en. XML (e-post)
447 dokumenter må være referert i arkivstrukturen, og det må vedlegges et
448 gyldig XML skjema (.xsd) for XML-filene. Arkivskaper står altså fritt
449 til å gjøre hva de vil, bare det dokumenteres og det kan dannes et
450 utrekk ved avlevering til depot.
</p
>
452 <p
>De obligatoriske kravene i Noark
5 standarden må altså oppfylles -
453 etter dialog med Riksarkivet i forbindelse med godkjenning. For
454 offentlige arkiv er det særlig viktig med filene loependeJournal.xml
455 og offentligJournal.xml. Private arkiv som vil forholde seg til Noark
456 5 standarden er selvsagt frie til å bruke det som er relevant for dem
457 av obligatoriske krav.
</p
>
458 </blockquote
></p
>
460 <p
>Det ser dermed ut for meg som om det er et lite behov for å
461 standardisere XML-lagring av RFC-
822-formatterte meldinger. Noen som
462 vet om god spesifikasjon i så måte? I tillegg til den omtalt over,
463 har jeg kommet over flere aktuelle beskrivelser (søk på
"rfc
822
464 xml
", så finner du aktuelle alternativer).
</p
>
468 <li
><a href=
"http://www.openhealth.org/xmtp/
">XML MIME Transformation
469 protocol (XMTP)
</a
> fra OpenHealth, sist oppdatert
2001.
</li
>
471 <li
><a href=
"https://tools.ietf.org/html/draft-klyne-message-rfc822-xml-
03">An
472 XML format for mail and other messages
</a
> utkast fra IETF datert
475 <li
><a href=
"http://www.informit.com/articles/article.aspx?p=
32074">xMail:
476 E-mail as XML
</a
> en artikkel fra
2003 som beskriver python-modulen
477 rfc822 som gir ut XML-representasjon av en RFC
822-formattert epost.
</li
>
481 <p
>Finnes det andre og bedre spesifikasjoner for slik lagring? Send
482 meg en epost hvis du har innspill.
</p
>