-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
58 lines (46 loc) · 1.74 KB
/
README.txt
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
PIPERMAIL IMPORT
================
Warning: Experimental.
This is the first stab at providing support for Pipermail,
namely importing Pipermail messages from archive files
and creating one node per message. No other Pipermail
interaction is foreseen at this time.
There are still many things hardcoded. Expect to get your hands dirty.
Requirements
============
- PHP Multibyte String extension needs to be enabled
(http://php.net/manual/en/ref.mbstring.php)
Current features
================
- creates content type 'pipermail'
- imports Pipermail archives into said content type, creating a node per message
- imports message content into body field
- imports message headers into corresponding fields
-- headers: From:, Date:, Subject:, In-Reply-To:, References:, Message-ID:
- import skips messages that already exist (Message-ID must be unique)
Usage
=====
- Put a Pipermail archive file in public://
- modify the code to match the filename
- hit /admin/structure/pipermail to configure import file location
- hit /admin/structure/pipermail/start to start importing
Limitations
===========
- message boundary string still hardcoded
- not tested with any other Pipermail archive files than the ones at hand
Roadmap
=======
- write tests
- use batch api
- provide message hierarchy through node_reference fields
- provide integration with Feeds for import
- provide integration with Views (default message archive views)
- provide drush command extension for import
A note of thanks to
===================
- The excellent 'Pro Drupal 7 Development' book
- DevelopmentSeed's Feeds module (http://drupal.org/project/feeds)
- Ronald Istos (http://www.istos.it/blog/drupal-entities/drupal-entities-part-3-programming-hello-drupal-entity)
License
=======
see LICENSE.txt