[incubator-ponymail] branch master updated: Docco

2019-08-12 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
 new 09353bb  Docco
09353bb is described below

commit 09353bbbd7b6fe8378c251e07d915ec8edc369f4
Author: Sebb 
AuthorDate: Mon Aug 12 17:03:48 2019 +0100

Docco
---
 test/generatortest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/generatortest.py b/test/generatortest.py
index 547a46c..387bd3c 100755
--- a/test/generatortest.py
+++ b/test/generatortest.py
@@ -22,7 +22,7 @@ This file tests the generators against mbox files
 """
 
 # PYTHONPATH is used to give access to archiver.py
-# PYTHONPATH=../tools python3 archtest.py files
+# PYTHONPATH=../tools python3 generatortest.py generatortest.yaml
  
 import mailbox
 import archiver



[incubator-ponymail] branch master updated: Docco fix

2019-07-22 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
 new 0534ccb  Docco fix
0534ccb is described below

commit 0534ccbd399f9addc2fb382a0a735bb07d300733
Author: Sebb 
AuthorDate: Mon Jul 22 18:35:01 2019 +0100

Docco fix
---
 site/api/notifications.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/site/api/notifications.lua b/site/api/notifications.lua
index c246b6e..2b7cd19 100644
--- a/site/api/notifications.lua
+++ b/site/api/notifications.lua
@@ -15,8 +15,8 @@
  limitations under the License.
 ]]--
 
--- This is thread.lua - a script for fetching a thread based on a message
--- that is in said thread.
+-- This is notifications.lua - a script for fetching up to 50 email 
notifications
+-- also marks an email as seen if required
 
 local JSON = require 'cjson'
 local elastic = require 'lib/elastic'



[incubator-ponymail] branch master updated: Docco

2018-05-26 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
 new 610e9f1  Docco
610e9f1 is described below

commit 610e9f13cec7c530d2f40c68b401bd12a011909b
Author: Sebb 
AuthorDate: Sat May 26 12:29:25 2018 +0100

Docco
---
 tools/missing.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/missing.py b/tools/missing.py
index 218b4e4..dfaa274 100755
--- a/tools/missing.py
+++ b/tools/missing.py
@@ -32,6 +32,7 @@ source_group.add_argument('--mid', dest='mid', type=str, 
nargs=1, metavar='messa
help='Source Message-ID to edit')
 
 action_group = parser.add_mutually_exclusive_group(required=True)
+# N.B. Use nargs=1 below, because the same field is used for get and set 
 action_group.add_argument('--listmissing', dest='missing', type=str, nargs=1, 
metavar='fieldname',
help='list missing fields')
 action_group.add_argument('--setmissing', dest='missing', type=str, nargs=2, 
metavar=('fieldname', 'value'),

-- 
To stop receiving notification emails like this one, please contact
s...@apache.org.


[incubator-ponymail] branch master updated: Docco

2018-02-23 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
 new 4ef2356  Docco
4ef2356 is described below

commit 4ef2356c51ed74e17f5d39d13f010889724a4a25
Author: Sebb 
AuthorDate: Fri Feb 23 11:03:33 2018 +

Docco
---
 tools/archiver.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/archiver.py b/tools/archiver.py
index bc31974..0a9010f 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -69,7 +69,7 @@ config = configparser.RawConfigParser()
 config.read("%s/ponymail.cfg" % path)
 auth = None
 parseHTML = False
-iBody = None
+iBody = None  # N.B. Also used by import-mbox.py
 args=None
 dumpDir = None
 
@@ -121,7 +121,7 @@ def pm_charsets(msg):
 charsets.update([c])
 return charsets
 
-def normalize_lid(lid):
+def normalize_lid(lid): # N.B. Also used by import-mbox.py
 """ Ensure that a lid is in standard form, i.e.  """
 # first drop any leading or trailing chars
 m = re.search(r"<(.+)>", lid)
@@ -134,7 +134,7 @@ def normalize_lid(lid):
 sys.exit(-1)
 return lid
 
-class Archiver(object):
+class Archiver(object): # N.B. Also used by import-mbox.py
 """ A mailman 3 archiver that forwards messages to pony mail. """
 if config.has_section('mailman') and config.has_option('mailman', 
'plugin'):
 implementer(IArchiver)

-- 
To stop receiving notification emails like this one, please contact
s...@apache.org.


[incubator-ponymail] branch master updated: Docco

2018-02-18 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
 new fef5707  Docco
fef5707 is described below

commit fef57071462243e81c8d830f415f6f0f9acc0b27
Author: Sebb 
AuthorDate: Sun Feb 18 12:34:37 2018 +

Docco
---
 RELEASE-NOTES.md | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index 3c02864..290f569 100644
--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -96,3 +96,5 @@ that Permalinks are unique or permanent.
  --
 
  - HTML-only mails are not archived unless the Python `html2text` package 
(GPLv3) is installed and the `--html2text` command line arg is used
+
+ - there are no proper unit tests

-- 
To stop receiving notification emails like this one, please contact
s...@apache.org.