unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "John Lenz" <lenz@math.uic.edu>
To: "Nicolas Pouillard" <np@nicolaspouillard.fr>,
	"David Bremner" <david@tethera.net>,
	notmuch@notmuchmail.org
Cc: bgmamari.foss@gmail.com
Subject: Re: notmuch webmails
Date: Tue, 19 Feb 2013 22:45:34 -0600	[thread overview]
Message-ID: <E1U81Yk-0000mg-PA@wuzzeb.org> (raw)
In-Reply-To: <20130219155005.2945.90450@mail-np.tu.ail>

On 2013-02-19 15:50:05 UTC, Nicolas Pouillard <np@nicolaspouillard.fr> wrote: 
> Quoting David Bremner (2013-02-17 14:19:55)
> > Nicolas Pouillard <np@nicolaspouillard.fr> writes:
> >
> > > Quoting John Lenz (2013-02-16 19:07:47)
> >
> > >> Hi, I am working on one as well, but am further along.  I am starting
> > >> to use it as my main interface.  I have table view of messages, a
> > >> pager view, tagging and retagging, compose, compose with attachments,
> > >> etc.  Combined with the "Its All Text" firefox plugin, it works
> > >> pretty well.  I was planning on announcing in a week or so, but here
> > >> is the code since this thread showed up.  I will work on some
> > >> instructions on how to set it up soon, plus a little cleanup.
> > >>
> > >> https://bitbucket.org/wuzzeb/notmuch-web/src
> > >
> > > Wow in Haskell! I'm looking forward to try/use it.
> >
> > Interesting. I see you are calling out to the CLI.  Ben Gamari (in CC)
> > was working on some Haskell bindings; I'm not sure how far he got. I
> > think there were some conflicts between the memory models of talloc and
> > Haskell.
>
> Calling the CLI has been of a direct use for me to run the webapp on a
> different machine by simply having notmuch as a script using ssh.
>

Yes, parsing the JSON from the CLI is pretty easy so I don't see much benefit
to using a direct binding.

The only main issue I am still trying to work out is how to deal with flowed
messages.  I think for viewing, if there is a html alternative, I will use
xss-sanatize (http://hackage.haskell.org/package/xss-sanitize) with perhaps
some additional filtering for images and such.  The problem is format=flowed
messages: the JSON from the CLI does not have the format=flowed header
anywhere in the JSON.  The message body still has spaces at the end of flowed
lines, so if we knew that the message was flowed we could parse the spaces
in haskell.  Alternatively, I have been considering enhancing notmuch itself
to parse the flowed text into paragraphs and stick it into the JSON.  For
compose, I just need to enhance the mime-mail package to send flowed
text, but will have to figure out how to round-trip the reply text through
the textbox.

  reply	other threads:[~2013-02-20  4:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 20:49 notmuch webmails Ruben Pollan
2013-02-15  1:14 ` Nicolás Reynolds
2013-02-15  3:07   ` David Bremner
2013-02-16 18:07   ` John Lenz
2013-02-16 19:59     ` Nicolas Pouillard
2013-02-17 13:19       ` David Bremner
2013-02-19 15:50         ` Nicolas Pouillard
2013-02-20  4:45           ` John Lenz [this message]
     [not found]             ` <3wd1uc0z3gb.fsf@testarossa.amd.com>
2013-03-03  0:16               ` John Lenz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1U81Yk-0000mg-PA@wuzzeb.org \
    --to=lenz@math.uic.edu \
    --cc=bgmamari.foss@gmail.com \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=np@nicolaspouillard.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).