[PATCH] bug in notmuch-fcc-header-setup

2010-12-02 Thread Ladislav Lhotka
On ?t, 2010-11-30 at 15:02 +, David Edmondson wrote:
> On Tue, 30 Nov 2010 15:58:53 +0100, Ladislav Lhotka  
> wrote:
> > the check for old-style setting of notmuch-fcc-dirs doesn't work
> > because 'length' function cannot be applied to a cons cell. The
> > following patch should fix this bug.
> 
> A fix (plus tests) is included in
> id:"1290682750-30283-2-git-send-email-dme at dme.org".

OK, thanks, I missed that one.

Lada

> 
> dme.

-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C



[PATCH] test: change "#!/bin/bash" to "#!/usr/bin/env bash" enhances portability

2010-12-02 Thread Joel Borggrén-Franck
On Thu, Dec 2, 2010 at 4:13 PM, Ruben Pollan  wrote:
> On 21:27, Wed 01 Dec 10, Joel Borggr?n-Franck wrote:
>> From: Joel Borggr?n-Franck 
>>
>> Change #!/bin/bash at start of tests to "#!/usr/bin/env bash". That way
>> systems running on bash < 4 can prepend bash >= 4 to path before
>> running the tests.
>
> Is there any reason to use bash? Is the test system dependent to any key 
> feature
> of bash?
>
> Not every system has bash installed. To have a dependency on bash just for
> development I think is not a big issue. But if it don't requires any big 
> effort
> I think will be better to have it more generic.
>

The test harness explicitly requires bash >= 4 . The docs say it needs
support for associative arrays.

cheers
/Joel


[PATCH] test: change "#!/bin/bash" to "#!/usr/bin/env bash" enhances portability

2010-12-02 Thread Ruben Pollan
On 21:27, Wed 01 Dec 10, Joel Borggr?n-Franck wrote:
> From: Joel Borggr?n-Franck 
> 
> Change #!/bin/bash at start of tests to "#!/usr/bin/env bash". That way
> systems running on bash < 4 can prepend bash >= 4 to path before
> running the tests.

Is there any reason to use bash? Is the test system dependent to any key feature
of bash?

Not every system has bash installed. To have a dependency on bash just for
development I think is not a big issue. But if it don't requires any big effort
I think will be better to have it more generic.


-- 
Rub?n Poll?n  | jabber:meskio at jabber.org
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Nos vamos a Croatan.
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: 
<http://notmuchmail.org/pipermail/notmuch/attachments/20101202/e14f28db/attachment.pgp>


[PATCH] test: change "#!/bin/bash" to "#!/usr/bin/env bash" enhances portability

2010-12-02 Thread Mike Kelly
On Wed, Dec 01, 2010 at 09:27:52PM +0100, Joel Borggr?n-Franck wrote:
> From: Joel Borggr?n-Franck 
> 
> Change #!/bin/bash at start of tests to "#!/usr/bin/env bash". That way
> systems running on bash < 4 can prepend bash >= 4 to path before
> running the tests.

This is also important on systems where bash isn't in /bin/ (for
example, FreeBSD), so I'd appreciate this patch. (I'm slowly working on
various other patches that are required to get things working well on
FreeBSD).

-- 
Mike Kelly


[PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-02 Thread Dirk Hohndel
On Wed,  1 Dec 2010 21:33:55 +0100, Joel Borggr?n-Franck  wrote:
> From: Joel Borggr?n-Franck 
> 
> Add headers cc: bcc: and to: to index. Real header to: is searched as
> "exactto:foo at bar.baz" and search term "to:" is kept as a union of cc:,
> bcc: and to: for backward compatibility. Use search term "cc:" resp.
> "bcc:" to search those headers respectively.

cworth has been talking for a while about changing notmuch to index all
of the headers - this is one of my key missing features at this point. 
Searching for Sender: or X-Mailing-List: or (PLEASE) X-Spam-Score:

/D


[GNU EMACS] smtpmail package and queue

2010-12-02 Thread Xavier Maillard
Hi Philip,

On Wed, 01 Dec 2010 09:38:24 +, Philip Hands  wrote:
> On Wed, 1 Dec 2010 03:01:47 +0100, first last  googlemail.com> wrote:
> > msmtp includes (at last in some distros I think) a script that enqeues mails
> > when you are offline and sends them when you are online. It is a drop-in
> > replacement for sendmail.
> 
> masqmail has this functionality built in, and can be configured to
> notice the internet connection going up and down, and kick the queue as
> you go online (although for some reason I cannot persuade it that my
> OpenVPN is online, even when it is, so have kludged it with cron kicking
> the queue regularly)

Thank you for your thoughts. That's interesting but I really want to
known how to do it with emacs built-in smtpmail.el. If it can't do it,
then I'll discard it in favor of either msmtp or this one.

Regards

/Xavier


[PATCH] test: change #!/bin/bash to #!/usr/bin/env bash enhances portability

2010-12-02 Thread Joel Borggrén-Franck
From: Joel Borggrén-Franck j...@codehouse.se

Change #!/bin/bash at start of tests to #!/usr/bin/env bash. That way
systems running on bash  4 can prepend bash = 4 to path before
running the tests.
---
 test/README   |6 +++---
 test/aggregate-results.sh |2 +-
 test/author-order |2 +-
 test/basic|2 +-
 test/dump-restore |2 +-
 test/emacs|2 +-
 test/encoding |2 +-
 test/from-guessing|2 +-
 test/json |2 +-
 test/long-id  |2 +-
 test/maildir-sync |2 +-
 test/new  |2 +-
 test/notmuch-test |2 +-
 test/raw  |2 +-
 test/reply|2 +-
 test/search   |2 +-
 test/search-output|2 +-
 test/test-lib.sh  |2 +-
 test/test-verbose |2 +-
 test/thread-naming|2 +-
 test/thread-order |2 +-
 test/uuencode |2 +-
 test/valgrind/valgrind.sh |2 +-
 23 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/test/README b/test/README
index ebaa3cf..07da480 100644
--- a/test/README
+++ b/test/README
@@ -68,11 +68,11 @@ remaining tests to be unaffected.
 
 Writing Tests
 -
-The test script is written as a shell script.  It should start
-with the standard #!/bin/bash with copyright notices, and an
+The test script is written as a shell script.  It should start with
+the standard #!/usr/bin/env bash with copyright notices, and an
 assignment to variable 'test_description', like this:
 
-   #!/bin/bash
+   #!/usr/bin/env bash
#
# Copyright (c) 2005 Junio C Hamano
#
diff --git a/test/aggregate-results.sh b/test/aggregate-results.sh
index 0f1ea33..732d6ca 100755
--- a/test/aggregate-results.sh
+++ b/test/aggregate-results.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
 
 fixed=0
 success=0
diff --git a/test/author-order b/test/author-order
index 9f0b931..2d79873 100755
--- a/test/author-order
+++ b/test/author-order
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 test_description=author reordering;
 . ./test-lib.sh
 
diff --git a/test/basic b/test/basic
index 309779c..e20e994 100755
--- a/test/basic
+++ b/test/basic
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (c) 2005 Junio C Hamano
 #
diff --git a/test/dump-restore b/test/dump-restore
index 0d78f01..a4de370 100755
--- a/test/dump-restore
+++ b/test/dump-restore
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 test_description=\notmuch dump\ and \notmuch restore\
 . ./test-lib.sh
 
diff --git a/test/emacs b/test/emacs
index 75dec89..baa6f3d 100755
--- a/test/emacs
+++ b/test/emacs
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 test_description=emacs interface
 . test-lib.sh
 
diff --git a/test/encoding b/test/encoding
index 68cb8ee..673b039 100755
--- a/test/encoding
+++ b/test/encoding
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 test_description=encoding issues
 . ./test-lib.sh
 
diff --git a/test/from-guessing b/test/from-guessing
index 6744e68..d8727bb 100755
--- a/test/from-guessing
+++ b/test/from-guessing
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 test_description=From line heuristics (with multiple configured addresses)
 . ./test-lib.sh
 
diff --git a/test/json b/test/json
index 7fe2a27..1978f8b 100755
--- a/test/json
+++ b/test/json
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 test_description=--format=json output
 . ./test-lib.sh
 
diff --git a/test/long-id b/test/long-id
index 84f9294..85e620f 100755
--- a/test/long-id
+++ b/test/long-id
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 test_description=messages with ridiculously-long message IDs
 . ./test-lib.sh
 
diff --git a/test/maildir-sync b/test/maildir-sync
index 50a5b8e..2b43127 100755
--- a/test/maildir-sync
+++ b/test/maildir-sync
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 test_description=maildir synchronization
 
diff --git a/test/new b/test/new
index 7b396ae..1b7296e 100755
--- a/test/new
+++ b/test/new
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 test_description='notmuch new in several variations'
 . ./test-lib.sh
 
diff --git a/test/notmuch-test b/test/notmuch-test
index 43565e8..d753c81 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Run tests
 #
diff --git a/test/raw b/test/raw
index 4ed237c..b7e265a 100755
--- a/test/raw
+++ b/test/raw
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr//bin/env bash
 
 test_description='notmuch show --format=raw'
 . ./test-lib.sh
diff --git a/test/reply b/test/reply
index 99c3376..c0b8e26 100755
--- a/test/reply
+++ b/test/reply
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 test_description=\notmuch reply\ in several variations
 . ./test-lib.sh
 
diff --git a/test/search b/test/search
index b180c7f..2085fe6 100755
--- a/test/search
+++ b/test/search
@@ -1,4 +1,4 @@
-#!/bin/bash

Re: [GNU EMACS] smtpmail package and queue

2010-12-02 Thread Xavier Maillard
Hi,

On Wed, 1 Dec 2010 03:01:47 +0100, first last arian.kusc...@googlemail.com 
wrote:
 msmtp includes (at last in some distros I think) a script that enqeues mails
 when you are offline and sends them when you are online. It is a drop-in
 replacement for sendmail.

Ok and thank you for msmtp but what about smtpmail.el ? :D

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


Re: [GNU EMACS] smtpmail package and queue

2010-12-02 Thread Xavier Maillard
Hi Philip,

On Wed, 01 Dec 2010 09:38:24 +, Philip Hands p...@hands.com wrote:
 On Wed, 1 Dec 2010 03:01:47 +0100, first last arian.kusc...@googlemail.com 
 wrote:
  msmtp includes (at last in some distros I think) a script that enqeues mails
  when you are offline and sends them when you are online. It is a drop-in
  replacement for sendmail.
 
 masqmail has this functionality built in, and can be configured to
 notice the internet connection going up and down, and kick the queue as
 you go online (although for some reason I cannot persuade it that my
 OpenVPN is online, even when it is, so have kludged it with cron kicking
 the queue regularly)

Thank you for your thoughts. That's interesting but I really want to
known how to do it with emacs built-in smtpmail.el. If it can't do it,
then I'll discard it in favor of either msmtp or this one.

Regards

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


Re: [PATCH] test: change #!/bin/bash to #!/usr/bin/env bash enhances portability

2010-12-02 Thread Ruben Pollan
On 21:27, Wed 01 Dec 10, Joel Borggrén-Franck wrote:
 From: Joel Borggrén-Franck j...@codehouse.se
 
 Change #!/bin/bash at start of tests to #!/usr/bin/env bash. That way
 systems running on bash  4 can prepend bash = 4 to path before
 running the tests.

Is there any reason to use bash? Is the test system dependent to any key feature
of bash?

Not every system has bash installed. To have a dependency on bash just for
development I think is not a big issue. But if it don't requires any big effort
I think will be better to have it more generic.


-- 
Rubén Pollán  | jabber:mes...@jabber.org
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Nos vamos a Croatan.


signature.asc
Description: Digital signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] test: change #!/bin/bash to #!/usr/bin/env bash enhances portability

2010-12-02 Thread Joel Borggrén-Franck
On Thu, Dec 2, 2010 at 4:13 PM, Ruben Pollan mes...@sindominio.net wrote:
 On 21:27, Wed 01 Dec 10, Joel Borggrén-Franck wrote:
 From: Joel Borggrén-Franck j...@codehouse.se

 Change #!/bin/bash at start of tests to #!/usr/bin/env bash. That way
 systems running on bash  4 can prepend bash = 4 to path before
 running the tests.

 Is there any reason to use bash? Is the test system dependent to any key 
 feature
 of bash?

 Not every system has bash installed. To have a dependency on bash just for
 development I think is not a big issue. But if it don't requires any big 
 effort
 I think will be better to have it more generic.


The test harness explicitly requires bash = 4 . The docs say it needs
support for associative arrays.

cheers
/Joel
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] test: change #!/bin/bash to #!/usr/bin/env bash enhances portability

2010-12-02 Thread Mike Kelly
On Wed, Dec 01, 2010 at 09:27:52PM +0100, Joel Borggrén-Franck wrote:
 From: Joel Borggrén-Franck j...@codehouse.se
 
 Change #!/bin/bash at start of tests to #!/usr/bin/env bash. That way
 systems running on bash  4 can prepend bash = 4 to path before
 running the tests.

This is also important on systems where bash isn't in /bin/ (for
example, FreeBSD), so I'd appreciate this patch. (I'm slowly working on
various other patches that are required to get things working well on
FreeBSD).

-- 
Mike Kelly
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-02 Thread Dirk Hohndel
On Wed,  1 Dec 2010 21:33:55 +0100, Joel Borggrén-Franck 
joel.borggren.fra...@gmail.com wrote:
 From: Joel Borggrén-Franck j...@codehouse.se
 
 Add headers cc: bcc: and to: to index. Real header to: is searched as
 exactto:f...@bar.baz and search term to: is kept as a union of cc:,
 bcc: and to: for backward compatibility. Use search term cc: resp.
 bcc: to search those headers respectively.

cworth has been talking for a while about changing notmuch to index all
of the headers - this is one of my key missing features at this point. 
Searching for Sender: or X-Mailing-List: or (PLEASE) X-Spam-Score:

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


Re: [PATCH] bug in notmuch-fcc-header-setup

2010-12-02 Thread Ladislav Lhotka
On Út, 2010-11-30 at 15:02 +, David Edmondson wrote:
 On Tue, 30 Nov 2010 15:58:53 +0100, Ladislav Lhotka lho...@cesnet.cz wrote:
  the check for old-style setting of notmuch-fcc-dirs doesn't work
  because 'length' function cannot be applied to a cons cell. The
  following patch should fix this bug.
 
 A fix (plus tests) is included in
 id:1290682750-30283-2-git-send-email-...@dme.org.

OK, thanks, I missed that one.

Lada

 
 dme.

-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C

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


How notmuchmail guess the 'from' and what to do in To and Cc ?

2010-12-02 Thread Xavier Maillard
Hi,

all is in the subject but I will try to clarify.

On this mailing list, when pressing the 'r' key to post an answer to a
message, my From header is automatically filled with my 'backup' email
address and I do not know why. My primary is this one. How does it guess
that ?

Second, once again, taking notmuchmail mailing list, I observe weird
behaviour when answering: all people are automatically set in the To
header which is wrong in my opinion. Why does it react that way ? My
guess is that it should explode and balance all the recipients along
the To and Cc headers. Am I wrong thinking like this ?

Regards

-- Xavier
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch