Re: converting attachments to text

2017-01-02 Thread Daniel Kahn Gillmor
On Tue 2017-01-03 02:27:23 -0500, Bart Bunting wrote:
> I'm blind so use emacspeak as my primary interface.  Having an easy way
> to convert the notmuch attachments to text other than saving to a file
> and processing them would greatly speed up my workflow.

I use notmuch-emacs, and frequently pipe message parts (attachments)
into pipelines with ". |" (that is, the dot key on my keyboard, followed
by the pipe key on my keyboard) while the cursor is over the button
representing the attachment.

If any of your tools can work in a pipeline (e.g. "pdftotext - -"), you
could try that, but i don't know how to feed the output of the pipeline
into emacspeak.

hope this helps,

 --dkg




signature.asc
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


converting attachments to text

2017-01-02 Thread Bart Bunting

Hi,

Just looking for some pointers.

I have to deal with quite a few emails with attachments in either pdf or
word format.

I'm on a mac so can use applescript or something pdftotext or similar to
convert them to text.

I'm blind so use emacspeak as my primary interface.  Having an easy way
to convert the notmuch attachments to text other than saving to a file
and processing them would greatly speed up my workflow.

Is there something in existance already to do this sort of thing?

I have a little rudimentary lisp skill so can hack something up if
someone can give me some pointers on a direction to head in.

Any advice appreciated.

Kind regards

Bart

Kind regards
Bart
-- 

Bart Bunting - URSYS
PH: 02 87452811
Mbl: 0409560005
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Announcing Astroid v0.7

2017-01-02 Thread Gaute Hope

Greetings,

Astroid (https://github.com/astroidmail/astroid) v0.7 is now ready!

 Astroid is a lightweight and fast graphical threads-with-tags email
 client for notmuch. Written in C++ using GTK+, WebKit and gmime.


Astroid can be found at: https://github.com/astroidmail/astroid :

$ git clone https://github.com/astroidmail/astroid.git


## README with screenshot and information on building and usage:

   https://github.com/astroidmail/astroid#astroid-mua

 once you get Astroid running press '?' to get a list of keybindings
 for the current context.

## Tour and usage

 https://github.com/astroidmail/astroid/wiki

## Changes since v0.6

* Edit drafts using an external editor (optional).

* Filter thread-index incrementally using 'C-f'.

* Messages are marked unread after a delay (default 2 sec) in
 thread-view. They can be manually toggled with 'N'.

* Use Tab and S-Tab to jump between unread messages in thread-view.

* Yank raw or decoded message or element to primary clipboard with 'Y'
 or 'y', useful for applying patches.


* Yank the Message-ID to the primary clipboard with C-y.

* Make id:Message-ID urls clickable.

* Make Message-ID customizable, and User-Agent optional. These may also
 be customized with a plugin.

* Use Boost::log for logging.
* Some hints about usage are shown (level of detail can be configured)
* 'c' in thread-view composes message to sender (or receiver if sender
   is you).
* Taeer Bar-Yam : Allow any key name defined by GDK to
 be entered.

* Thread-view: '*' toggle 'flagged' on message, 'a' toggle inbox on
 whole thread.

* Removed MathJax support, since it is not widely used. Can be enabled
 manually by adding sourcing the script in the thread-view theme file.

* When replying, match encryption / signature level.
* Cancel sending with Ctrl + C.
* Open element with 'Space', also in editor.
* Check for missing fields and for attachment words before sending.
* Kim Ebert: Make sure all messages are loaded.
* M. Dietrich, G. Hope: Fix buggy quoting of arbitrarily spaced '>'s.
* Close thread-view after deleting draft.
* Hugo Roy: Improve attachment, mime-message, and url display.


Regards, Gaute


pgpQEiZyhG7JX.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: Ignoring nmh mail files

2017-01-02 Thread David Edmondson
On Mon, Jan 02 2017, Axel Jantsch wrote:

> David,
> I have uploaded the same email as file to dropbox:
>
> https://www.dropbox.com/s/i95dbadddmekau9/151?dl=0

This file also works fine for me.

What version of notmuch, gmime, etc. are you using?
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: Ignoring nmh mail files

2017-01-02 Thread David Edmondson
On Mon, Jan 02 2017, Axel Jantsch wrote:

> Hi David,
> Thanks for your quick response.
>
> The double From lines do not seem to be the problem, because when I
> remove one of them, no change.
>
> Also, many problem mails do not have double From lines, like the one I
> attach below

If I save the attached message and then add it to my database, it works
fine.

Could you share an exact copy of the failing message as a file
somewhere? It's possible that whatever is wrong with it was fixed during
the attach/detach process.

> So again, any idea is highly welcome!
> --Axel
>
>> On Sun, 01 Jan 2017 19:26:07 +, David Edmondson  said:
>
> > On Thu, Dec 29 2016, Axel Jantsch wrote:
> >> Hi,
> >> 
> >> I try to build a notmuch database from my nmh files.
> >> 
> >> I have about 220k emails and about half of them is ignored by
> >> notmach new with the note, e.g.:
> >> 
> >> Note: Ignoring non-mail file: /home/jantsch/Mail/ARTEMIS-MPSOC/1
> >> 
> >> Here is the header of that particular email:
> >> 
> >> 
> =
> >> From nobody@nowhere  Sun Aug 02 21:21:17 2009
> >> From nobody@nowhere  Sun Aug 02 21:21:17 2009
>
> > Maybe the double "From " lines?
>
> >> From: "Axel Jantsch" 
> >> Organization: Royal Institute of Technology
> >> To: Joe.Someone 
> >> Subject: Re: Artemis and MPSOC 
> >> In-Reply-To: Message from Joe.Someone 
> >> of "Tue, 09 Jan 2007 15:10:34 +0100."
> >> <009c01c733f7$edea4340$7766e882@amdht> 
> >> X-Image-URL: http://www.it.kth.se/~axel/axel.png
> >> X-Mailer: MH-E 7.83; nmh 1.0.4; GNU Emacs 21.2.1
> >> MIME-Version: 1.0
> >> Content-Type: text/plain; charset=us-ascii
> >> Content-Transfer-Encoding: 8bit
> >> Date: Wed, 10 Jan 2007 15:47:09 +0100
> >> Sender: a...@bee.imit.kth.se
> >> 
> >> 
> >> Joe, 
> >> 
> >> ...
> >> 
> >> 
> =
> >> 
> >> Any idea why so many emails are not recognized by notmuch?
> >> 
> >> Best,
> >> Axel
> >> 
> >> 
> >> -- 
> >> Axel Jantsch, Prof. of Systems on Chip
> >> TU Wien
> >> Gusshausstrasse 27-29/384, 1040 Vienna, Austria
> >> Phone: +43 1 58801 38415
> >> Email: axel.jant...@tuwien.ac.at
> >> Web: www.ict.tuwien.ac.at
> >> 
> >> ___
> >> notmuch mailing list
> >> notmuch@notmuchmail.org
> >> https://notmuchmail.org/mailman/listinfo/notmuch
>
>
> -- 
> Axel Jantsch, Prof. of Systems on Chip
> TU Wien
> Gusshausstrasse 27-29/384, 1040 Vienna, Austria
> Phone: +43 1 58801 38415
> Email: axel.jant...@tuwien.ac.at
> Web: www.ict.tuwien.ac.at
>
>From: Amir Rahmani 
> Subject: The Dark Side of Silicon
>  To: axel.jant...@tuwien.ac.at, 'Ahmed Hemani' , 
> ha...@kth.se, Pasi Liljeberg 
>Date: Sat, 31 Dec 2016 14:05:16 -0800
>
> Dear all,
>
>  
>
> The eBook has just become available online from the following link:
>
>  
>
> http://link.springer.com/book/10.1007/978-3-319-31596-6
>
>  
>
> Best regards,
>
> Amir
>
>  
>
> 
>
> Amir M. Rahmani, PhD (Tech.), MBA
>
>  
>
> Marie Curie Global Fellow
>
> University of California Irvine, USA
>
> Vienna University of Technology (TU Wien), Austria
>
>  
>
> Adjunct Professor (Docent)
>
> Department of Information Technology
>
> University of Turku, Finland
>
>  
>
>   http://www.ics.uci.edu/~amirr1/
>
>  
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] tests: add compatibility layer

2017-01-02 Thread mp39590
From: Mikhail 

Make test-lib-common.sh load test-lib-<$PLATFORM>.sh to create
additional shim for platform specifics.

Use test-lib-FREEBSD.sh to call GNU utilities instead of native ones.
---
 configure| 3 +++
 test/README  | 6 ++
 test/test-lib-FREEBSD.sh | 8 
 test/test-lib-common.sh  | 5 +
 4 files changed, 22 insertions(+)
 create mode 100644 test/test-lib-FREEBSD.sh

diff --git a/configure b/configure
index 72db26df..7ba9b9eb 100755
--- a/configure
+++ b/configure
@@ -1203,6 +1203,9 @@ NOTMUCH_PYTHON=${python}
 # Are the ruby development files (and ruby) available? If not skip
 # building/testing ruby bindings.
 NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev}
+
+# Platform we are run on
+PLATFORM=${platform}
 EOF
 
 # Finally, after everything configured, inform the user how to continue.
diff --git a/test/README b/test/README
index 104a120e..8376616f 100644
--- a/test/README
+++ b/test/README
@@ -33,6 +33,12 @@ chosen directory to your PATH before running the tests.
 
 e.g. env PATH=/opt/gnu/bin:$PATH make test
 
+For FreeBSD you will need to install coreutils, which provides GNU
+versions of basic utils like 'date' or 'wc'. Also you will need to
+install latest gdb from ports or packages and provide path to it in
+NOTMUCH_GDB variable before executing the tests, native FreeBSD gdb will
+not work.
+
 Running Tests
 -
 The easiest way to run tests is to say "make test", (or simply run the
diff --git a/test/test-lib-FREEBSD.sh b/test/test-lib-FREEBSD.sh
new file mode 100644
index ..b8039705
--- /dev/null
+++ b/test/test-lib-FREEBSD.sh
@@ -0,0 +1,8 @@
+# Use GNU Coreutils instead of a native BSD utils
+
+date () { gdate "$@"; }
+base64 () { gbase64 "$@"; }
+gdb () { $NOTMUCH_GDB "$@"; }
+wc () { gwc "$@"; }
+sed () { gsed "$@"; }
+sha256sum () { gsha256sum "$@"; }
diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh
index 03ef1d2d..1c8d7f6e 100644
--- a/test/test-lib-common.sh
+++ b/test/test-lib-common.sh
@@ -66,6 +66,11 @@ export LD_LIBRARY_PATH
 # configure output
 . $notmuch_path/sh.config || exit 1
 
+# load OS specifics
+if [ -e ./test-lib-$PLATFORM.sh ]; then
+   . ./test-lib-$PLATFORM.sh
+fi
+
 if test -n "$valgrind"
 then
make_symlink () {
-- 
2.11.0

___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch