Archive

Archive for August, 2011

Mailman3, Archiver and Archiver-UI

August 19, 2011 1 comment

  • Mailman3: MM3 sends a message to a local Archiver instance via a subprocess call.
    Status: Updated archive_message() function.

        def archive_message(mlist, message):
        #        """See `IArchiver`."""
            command = 'python /home/dushyant/projects/Archiver/archiver.py -basedir 
                        ~/projects/Archiver/var -listname mlist.fqdn_listname add'
            proc = subprocess.Popen(
                command.split(), stdout= subprocess.PIPE, stderr=subprocess.PIPE,
                stdin = subprocess.PIPE,
                shell=False)
            stdout, stderr = proc.communicate(message.as_string())
            if proc.returncode <> 0:
                log.error('%s: archiver subprocess had non-zero exit code: %s' %
                          (message['message-id'], proc.returncode))
            log.info(stdout)
            log.error(stderr)

    Modifications in configuration schema and updation of pipermail docs needs tobe done.

  • Archiver:¬†Archiver separated out from mm3, generates and maintains sqlite database and whoosh index from the archived messages.
    Status: Basic implementation is finished. Need to discuss with Barry about i18n and language preference of message. Also, requires some minor fixes and code clearing.
  • Archiver-UI: To view and search archives through web interface. This is built on pylons framework. All it needs is access to sqlite database and whoosh index maintained by Archiver.
    Status: More or less finished. Just requires a few improvements in UI.
Advertisements
Tags: ,

Integrating mailman and archiver through a command line api

August 15, 2011 Leave a comment

Status:

  • Currently, only latest messages by thread is shown. I am adding support to show messages by date
  • Highlighting message in the whole conversation(thread)
  • Navigation:
    From one conversation(thread) to next
    from one message to other (by date and by thread)
  • Order by: View messages ordered by subject, date etc.
  • Improving conversion script (mbox to sqlite db file)
  • Generate a better url and thread_addr for conversation page from message subject
  • Refer to a message with id and not msgid
Integrating mailman and archiver:
  • Discussed with Barry and decided to integrate mailman and archiver through a command line api (as done by mhonarc archiver) . Right now, I am working on its implementation.
Tags: ,

Some more things to do:

August 6, 2011 Leave a comment

I hosted archiverUI on aws and showed it to Anna. Along with her suggestions and some things that I had in my mind, I prepared a todo list.

These are the things that I am working on:

  • Currently, only latest messages by thread is shown. I am adding support to show messages by date
  • Highlighting message in the whole conversation(thread)
  • Navigation:
    From one conversation(thread) to next
    from one message to other (by date and by thread)
  • Order by: View messages ordered by subject, date etc.
  • Improving conversion script (mbox to sqlite db file)
After I am done with these todos, I’ll show the demo to other mailman developers.
Tags: ,