unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* pull request
@ 2010-04-01 14:41 David Edmondson
  2010-04-01 21:09 ` Carl Worth
  0 siblings, 1 reply; 32+ messages in thread
From: David Edmondson @ 2010-04-01 14:41 UTC (permalink / raw)
  To: notmuch

Carl, a couple of patches that I'd like you to consider. They are the
first two on the `dme' branch of git://github.com/dme/notmuch.git.

http://github.com/dme/notmuch/commit/f86254e4509ed02731aa3eaa8541df1f2d11e400
> notmuch-show: Add unix and pretty dates to the JSON output
> 
> Include a 'date_unix' and 'date_pretty' field in the JSON output for
> each message. 'date_pretty' can be used by a UI implementation,
> whereas 'date_unix' is useful when scripting.

http://github.com/dme/notmuch/commit/dfd99e186ffc6b759c4e09a990c43bb6b8743ef2
> notmuch: Add a 'part' subcommand
> 
> A new 'part' subcommand allows the user to extract a single part from a
> MIME message. Usage:
> 
>   notmuch part --part=<n> <search terms>
> 
> The search terms should match only a single message
> (e.g. id:foo@bar.com). The part number specified refers to the part
> identifiers output by `notmuch show'. The content of the part is written
> the stdout with no formatting or identification marks. It is not JSON
> formatted.

The second of these (part) has been the topic of some
discussion. There's a suggestion that a 'cat' subcommand or
'--format=raw' option to the 'show' subcommand would be better. I'm not
particular preference - I just wanted the functionality to use in the
Emacs UI.

(URLs included as the github frontend is quite nice for perusing the
changes.)

dme.
-- 
David Edmondson, http://dme.org

^ permalink raw reply	[flat|nested] 32+ messages in thread
* pull request
@ 2010-04-11 10:29 David Edmondson
  2010-04-19  8:27 ` David Edmondson
  0 siblings, 1 reply; 32+ messages in thread
From: David Edmondson @ 2010-04-11 10:29 UTC (permalink / raw)
  To: notmuch

Carl, please consider the following (from the 'for-cworth' branch of
git://github.com/dme/notmuch.git) for 0.2. I hope to have some more UI
changes merged next week.

commit 651f8ca16beadd658c412075a585e4ec90e31456
Author: David Edmondson <dme@dme.org>
Date:   Mon Mar 22 14:50:20 2010 +0000

    emacs/notmuch-show.el: Avoid passing unintended format strings to `message'
    
    If the text being stashed included %, `message' was unhappy and
    complained.

 emacs/notmuch-show.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

commit 744c8274e56e38940644d31cc6a1588f989daa43
Author: David Edmondson <dme@dme.org>
Date:   Wed Mar 24 15:50:11 2010 +0000

    emacs/notmuch.el: Enable `hl-line-mode' in `notmuch-search-mode'

 emacs/notmuch.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

commit 42949084a6dae6997f5872ee9d74da4fc0a89369
Author: David Edmondson <dme@dme.org>
Date:   Tue Apr 6 08:24:00 2010 +0100

    json: Avoid calling strlen(NULL)
    
    MIME parts may have no filename, which previously resulted in calling
    strlen(NULL).

 json.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

commit 94ba1fa0de79902c94612dad84e32fdcdc8a34dc
Author: David Edmondson <dme@dme.org>
Date:   Sun Apr 11 08:58:43 2010 +0100

    emacs: JSON based implementation
    
    Re-implement notmuch-show.el using the JSON output format of the
    notmuch command. Most functionality is retained - HTML display is
    noticeably missing.

 emacs/notmuch-lib.el  |   11 -
 emacs/notmuch-show.el | 1620 +++++++++++++++++++++++++------------------------
 emacs/notmuch.el      |   69 +--
 3 files changed, 837 insertions(+), 863 deletions(-)

commit a586736deaf934ac348125499601b00e71d7c841
Author: David Edmondson <dme@dme.org>
Date:   Mon Mar 22 16:49:16 2010 +0000

    emacs: Move body markup to a separate file
    
    Move the citation and signature markup for text/plain parts to a new
    file (notmuch-wash.el) and call it using a hook mechanism rather than
    directly.

 emacs/Makefile.local  |    3 +-
 emacs/notmuch-show.el |  131 ++-----------------------------------------
 emacs/notmuch-wash.el |  150 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 157 insertions(+), 127 deletions(-)

commit e4fe7e4274f9669aa8040d34b2df5f6571ff9b61
Author: David Edmondson <dme@dme.org>
Date:   Thu Apr 1 16:25:20 2010 +0100

    emacs: Add more functions to clean up text/plain parts
    
    Add:
    - notmuch-wash-wrap-long-lines: Wrap lines longer than the width of
      the current window whilst maintaining any citation prefix.
    - notmuch-wash-tidy-citations: Tidy up citations by:
      - compress repeated otherwise blank citation lines,
      - remove otherwise blank citation lines at the head and tail of a
        citation and remove blank lines between attribution statements and
        the citation,
    - notmuch-wash-compress-blanks: Compress repeated blank lines and
      remove leading and trailing blank lines.
    
    Enable all of the functions by default by adding them to
    `notmuch-show-insert-text/plain-hook'.
    
    With the wrapping features for text/plain parts enabled, word wrapping
    of the buffer leads to an unappealing display of text, so disable it.

 emacs/Makefile.local  |    3 +-
 emacs/coolj.el        |  145 +++++++++++++++++++++++++++++++++++++++++++++++++
 emacs/notmuch-show.el |   14 ++++-
 emacs/notmuch-wash.el |   72 ++++++++++++++++++++++++-
 4 files changed, 230 insertions(+), 4 deletions(-)

commit 53544b7907b3945b06c10113e7900b59113e405f
Author: David Edmondson <dme@dme.org>
Date:   Tue Mar 23 10:06:00 2010 +0000

    emacs/notmuch-show.el: Improved part labelling
    
    If a text/plain part is not the first part in a message, add a label
    in order that a user can see that multiple parts are present.
    
    If a part has a 'filename' attribute, include it in any label
    describing the part.

 emacs/notmuch-show.el |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

commit 8144f6553b443a916c599d7fbb347c557923e71f
Author: David Edmondson <dme@dme.org>
Date:   Tue Mar 23 11:54:05 2010 +0000

    emacs: Use `mm-display-part' when possible
    
    For parts that the mm-decode/mm-view functions can inline and we have
    the content, use `mm-display-part' to insert the part in the
    buffer.

 emacs/notmuch-show.el |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

commit bf3da2f2422539f9c099158457b84482b22fbd41
Author: David Edmondson <dme@dme.org>
Date:   Tue Mar 23 11:54:05 2010 +0000

    emacs: Use mailcap.el to guess the type of application/octet-stream parts
    
    Use the mailcap functionality to guess a MIME type for attachments of
    type application/octet-stream and, presuming successful, feed the
    attachment back into the display code with the determine type.
    
    This is mostly useless at the moment, as the JSON output from notmuch
    does not include the content of application/octet-stream parts, so
    they cannot be displayed even if the guess is a good one.

 emacs/notmuch-show.el |   54 +++++++++++++++++++++++++++++++++++-------------
 1 files changed, 39 insertions(+), 15 deletions(-)

commit c8946454e1f39845db5e9dd90fdfcff55b2a0c86
Author: David Edmondson <dme@dme.org>
Date:   Thu Apr 1 18:33:46 2010 +0100

    emacs: Display all body parts using `notmuch part --part=<n>'
    
    Use the `notmuch part' command to access body parts not currently
    included in the JSON output and display those body parts
    appropriately.

 emacs/notmuch-show.el |   82 ++++++++++++++++++++++++++++--------------------
 1 files changed, 48 insertions(+), 34 deletions(-)

commit 42b98a1402347551b19fa912b574c2c1e45d0ede
Author: David Edmondson <dme@dme.org>
Date:   Thu Mar 25 12:26:49 2010 +0000

    emacs/notmuch-wash.el: Add `notmuch-wash-inline-patch'
    
    `notmuch-wash-inline-patch' attempts to convert inline patches to fake
    attachments, in order that diff-mode highlighting can be applied to
    the patch. It should be added to
    `notmuch-show-insert-text/plain-hook', usually before
    `notmuch-wash-markup-citations'.
    
    Due to the scope for error in detecting inline patches (and their
    extent), this function is not enabled by default.

 emacs/notmuch-wash.el |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

commit ad8deaa17f1753cedd8e0a593376f3bc32e2d000
Author: David Edmondson <dme@dme.org>
Date:   Sun Mar 28 14:50:46 2010 +0100

    emacs/notmuch-show.el: Part headers are real buttons that save the part
    
    Convert the part headers into buttons that save the part when
    activated. Don't attempt to save 'fake' parts generated by
    `notmuch-wash-inline-patch'.

 emacs/notmuch-show.el |   56 ++++++++++++++++++++++++++++++++++++------------
 emacs/notmuch-wash.el |    2 +-
 2 files changed, 43 insertions(+), 15 deletions(-)

commit 912c215bf3636945abf50cf35c96691b0e244bf4 (HEAD, github/for-cworth, for-cworth)
Author: David Edmondson <dme@dme.org>
Date:   Mon Mar 29 10:31:58 2010 +0100

    emacs/notmuch-show.el: Add `notmuch-show-toggle-all' bound to M-RET
    
    `notmuch-show-toggle-all' changes the visibility all of the messages
    in the current thread. By default it makes all of the messages not
    visible. With a prefix argument, it makes them all visible.

 emacs/notmuch-show.el |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

dme.
-- 
David Edmondson, http://dme.org

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2010-04-23 19:44 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-01 14:41 pull request David Edmondson
2010-04-01 21:09 ` Carl Worth
2010-04-01 22:50   ` David Bremner
2010-04-02  8:53   ` David Edmondson
2010-04-02 22:53     ` Carl Worth
2010-04-03  6:32       ` pull request [was Re: pull request] David Edmondson
2010-04-03 19:37         ` Carl Worth
2010-04-03 21:21           ` David Bremner
2010-04-04  7:33             ` David Edmondson
2010-04-04  8:08               ` David Edmondson
2010-04-05 16:29                 ` Carl Worth
2010-04-03  6:34       ` pull request David Edmondson
2010-04-03 19:42         ` Carl Worth
  -- strict thread matches above, loose matches on Subject: below --
2010-04-11 10:29 David Edmondson
2010-04-19  8:27 ` David Edmondson
2010-04-19 18:07   ` Carl Worth
2010-04-19 18:18     ` Carl Worth
2010-04-20  5:27     ` David Edmondson
2010-04-20 16:25       ` Carl Worth
2010-04-21 12:39         ` David Edmondson
2010-04-21 19:15           ` Carl Worth
2010-04-21 19:47             ` Jameson Rollins
2010-04-23 11:57               ` David Edmondson
2010-04-23 12:49                 ` Jameson Rollins
2010-04-22  6:04             ` David Edmondson
2010-04-21 21:03   ` Carl Worth
2010-04-22  6:59     ` David Edmondson
2010-04-23 19:44       ` Carl Worth
2010-04-22  8:58     ` Servilio Afre Puentes
2010-04-22 12:30       ` David Edmondson
2010-04-22 14:10         ` Servilio Afre Puentes
2010-04-22 14:41           ` David Edmondson

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).