-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched unittests from greenmail to javamail-mock2, some other small…
… fixes
- Loading branch information
salyh
committed
May 2, 2014
1 parent
57255b5
commit 9d7ad7e
Showing
20 changed files
with
437 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ target/ | |
.classpath | ||
.project | ||
.settings/ | ||
*.sh | ||
elasticsearch-*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,10 @@ jdk: | |
- openjdk6 | ||
- openjdk7 | ||
- oraclejdk7 | ||
- oraclejdk8 | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: always | ||
on_failure: always | ||
on_failure: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,10 +33,10 @@ Prerequisites: | |
* Elasticsearch 1.1.0 or higher | ||
* At least one IMAP4 or POP3 server to connect to | ||
|
||
``plugin.sh|.bat -i river-imap -u http://dl.bintray.com/salyh/maven/de/saly/elasticsearch/plugin/elasticsearch-river-imap/0.0.5/elasticsearch-river-imap-0.0.5-plugin.zip`` | ||
``plugin.sh|.bat -i river-imap -u http://dl.bintray.com/salyh/maven/de/saly/elasticsearch/plugin/elasticsearch-river-imap/0.0.6/elasticsearch-river-imap-0.0.6-plugin.zip`` | ||
|
||
<h3>Configuration</h3> | ||
<pre>curl -XPUT 'http://localhost:9200/_river/name of your river/_meta' -d '{ | ||
<pre>curl -XPUT 'http://localhost:9200/_river/nameofyourriver/_meta' -d '{ | ||
|
||
"type":"imap", | ||
"mail.store.protocol":"imap", | ||
|
@@ -86,6 +86,53 @@ Prerequisites: | |
|
||
Note: For POP3 only the "INBOX" folder is supported. This is a limitation of the POP3 protocol. | ||
|
||
<h3>Default Mapping Example</h3> | ||
```json | ||
{ | ||
"_index":"my_imap_river_index", | ||
"_type":"my_imap_river_type", | ||
"_id":"759::imap://es_imapriver_unittest%[email protected]/INBOX", | ||
"_score":1.0, | ||
"_source":{ | ||
"attachmentCount":0, | ||
"attachments":null, | ||
"bcc":null, | ||
"cc":null, | ||
"contentType":"text/plain; charset=us-ascii", | ||
"folderFullName":"INBOX", | ||
"folderUri":"imap://es_imapriver_unittest%[email protected]/INBOX", | ||
"from":{ | ||
"email":"[email protected]", | ||
"personal":null | ||
}, | ||
"headers":{ | ||
"MIME-Version":"1.0", | ||
"Message-ID":"<[email protected]>", | ||
"Subject":"SID::2", | ||
"Date":"Fri, 2 May 2014 19:18:59 +0200 (CEST)", | ||
"Content-Transfer-Encoding":"7bit", | ||
"To":"es_imapriver_unittest@localhost", | ||
"Content-Type":"text/plain; charset=us-ascii", | ||
"From":"[email protected]" | ||
}, | ||
"mailboxType":"IMAP", | ||
"popId":null, | ||
"receivedDate":1399051139000, | ||
"sentDate":1399051139000, | ||
"size":337, | ||
"subject":"SID::2", | ||
"textContent":"This is a test e-mail.::2\r\n", | ||
"to":[ | ||
{ | ||
"email":"es_imapriver_unittest@localhost", | ||
"personal":null | ||
} | ||
], | ||
"uid":759 | ||
} | ||
} | ||
``` | ||
|
||
<h3>License</h3> | ||
Copyright (C) 2014 by Hendrik Saly (http://saly.de) and others. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.