commit-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mailutils branch, master, updated. rel-2_1-30-g5d37076


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. rel-2_1-30-g5d37076
Date: Tue, 09 Feb 2010 10:55:45 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mailutils".

http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=5d370760311aaa86a16ab5bab166d9d339104cd3

The branch, master has been updated
       via  5d370760311aaa86a16ab5bab166d9d339104cd3 (commit)
      from  68447ef06f4752ebaf1d47e4f93d2791153459c9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5d370760311aaa86a16ab5bab166d9d339104cd3
Author: Sergey Poznyakoff <address@hidden>
Date:   Tue Feb 9 12:52:02 2010 +0200

    Fix compilation without sendmail.
    
    * libproto/mailer/remote.c: Fix compilation with --disable-sendmail.
    * mail/testsuite/mail/send.exp: Ignore test (return UNSUPPORTED), if
    sendmail support is not compiled.
    * sieve/testsuite/sieve/redirect.exp: Likewise.
    * sieve/testsuite/sieve/reject.exp: Likewise.

-----------------------------------------------------------------------

Summary of changes:
 libproto/mailer/remote.c           |   10 ++-
 mail/testsuite/mail/send.exp       |  137 +++++++++++++++++++-----------------
 sieve/testsuite/sieve/redirect.exp |   16 +++--
 sieve/testsuite/sieve/reject.exp   |   16 +++--
 4 files changed, 97 insertions(+), 82 deletions(-)

diff --git a/libproto/mailer/remote.c b/libproto/mailer/remote.c
index a9d08be..a99e4ab 100644
--- a/libproto/mailer/remote.c
+++ b/libproto/mailer/remote.c
@@ -27,8 +27,6 @@
 # include <config.h>
 #endif
 
-#ifdef ENABLE_SMTP
-
 #include <stdlib.h>
 #include <string.h>
 
@@ -40,6 +38,8 @@
 #include <mailer0.h>
 #include <registrar0.h>
 
+#ifdef ENABLE_SMTP
+
 static int
 _url_remote_init (mu_url_t url, const char *new_scheme)
 {
@@ -88,8 +88,12 @@ static struct _mu_record _mu_remote_smtp_record = {
 };
 
 mu_record_t mu_remote_smtp_record = &_mu_remote_smtp_record;
+#else
+mu_record_t mu_remote_smtp_record = NULL;
+#endif
 
 
+#ifdef ENABLE_SENDMAIL
 static int
 _url_remote_sendmail_init (mu_url_t url)
 {
@@ -140,9 +144,7 @@ static struct _mu_record _mu_remote_prog_record =
 
 mu_record_t mu_remote_prog_record = &_mu_remote_prog_record;
 
-
 #else
-mu_record_t mu_remote_smtp_record = NULL;
 mu_record_t mu_remote_sendmail_record = NULL;
 mu_record_t mu_remote_prog_record = NULL;
 #endif
diff --git a/mail/testsuite/mail/send.exp b/mail/testsuite/mail/send.exp
index 726cffb..5576f06 100644
--- a/mail/testsuite/mail/send.exp
+++ b/mail/testsuite/mail/send.exp
@@ -17,81 +17,86 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 # 02110-1301 USA.
 
-mail_start "--file=%mbox1"
+mail_version
 
-mail_command "set sendmail=\"sendmail:$top_builddir/examples/mta\""
-mail_command "set inplacealiases"
-mail_command "setenv MTA_DIAG=\"$MU_FOLDER_DIR/mta.diag\""
+if ![mu_check_capability ENABLE_SENDMAIL] {
+    unsupported "Support for sendmail not compiled in"
+} else {
+    mail_start "--file=%mbox1"
 
-mail_test -noprompt "reply 1" \
+    mail_command "set sendmail=\"sendmail:$top_builddir/examples/mta\""
+    mail_command "set inplacealiases"
+    mail_command "setenv MTA_DIAG=\"$MU_FOLDER_DIR/mta.diag\""
+
+    mail_test -noprompt "reply 1" \
        "To: <address@hidden>,<address@hidden>"\
        "Subject: Re: Jabberwocky"\
        ""
 
-mail_test -noprompt "~m"\
+    mail_test -noprompt "~m"\
        "Interpolating: 1"\
        "(continue)"
+    
+    mail_test "." 
 
-mail_test "." 
-
-mail_stop
-
-mu_test_file "$MU_FOLDER_DIR/mta.diag" \
--re "ENVELOPE FROM: \[^\r\n\]*"\
-"ENVELOPE TO: <address@hidden>,<address@hidden>"\
-"   0: To: <address@hidden>,<address@hidden>"\
-"   1: Subject: Re: Jabberwocky"\
-"   2: In-Reply-To: Your message of Fri, 28 Dec 2001 22:18:08 +0200"\
-"   3: \t<address@hidden>"\
-"   4: References: <address@hidden>"\
-"   5: X-Mailer: mail (GNU Mailutils $MU_TOOL_VERSION)"\
-"   6: "\
-"   7: > Received: (from address@hidden)"\
-"   8: >       by nonexistent.net id fBSKI8N04906"\
-"   9: >       for address@hidden; Fri, 28 Dec 2001 22:18:08 +0200"\
-"  10: > Date: Fri, 28 Dec 2001 22:18:08 +0200"\
-"  11: > From: Foo Bar <address@hidden>"\
-"  12: > Message-Id: <address@hidden>"\
-"  13: > To: Bar <address@hidden>"\
-"  14: > Subject: Jabberwocky"\
-"  15: >"\
-"  16: > `Twas brillig, and the slithy toves"\
-"  17: > Did gyre and gimble in the wabe;"\
-"  18: > All mimsy were the borogoves,"\
-"  19: > And the mome raths outgrabe."\
-"  20: > "\
-"  21: > `Beware the Jabberwock, my son!"\
-"  22: > The jaws that bite, the claws that catch!"\
-"  23: > Beware the Jujub bird, and shun"\
-"  24: > The frumious Bandersnatch!'"\
-"  25: > "\
-"  26: > He took his vorpal sword in hand:"\
-"  27: > Long time the manxome foe he sought --"\
-"  28: > So rested he by the Tumtum gree,"\
-"  29: > And stood awhile in thought."\
-"  30: > "\
-"  31: > And as in uffish thought he stood,"\
-"  32: > The Jabberwock, with eyes of flame,"\
-"  33: > Came whiffling through the tulgey wook,"\
-"  34: > And burbled as it came!"\
-"  35: > "\
-"  36: > One, two!  One, two!  And through and through"\
-"  37: > The vorpal blade went snicker-snack!"\
-"  38: > He left it dead, and with its head"\
-"  39: > He went galumphing back."\
-"  40: > "\
-"  41: > `And has thou slain the Jabberwock?"\
-"  42: > Come to my arms, my beamish boy!"\
-"  43: > O frabjous day!  Calloh!  Callay!"\
-"  44: > He chortled in his joy."\
-"  45: > "\
-"  46: > `Twas brillig, and the slithy toves"\
-"  47: > Did gyre and gimble in the wabe;"\
-"  48: > All mimsy were the borogoves,"\
-"  49: > And the mome raths outgrabe."\
-"  50: > "\
-"  51: "\
-"END OF MESSAGE"
+    mail_stop
 
+    mu_test_file "$MU_FOLDER_DIR/mta.diag" \
+       -re "ENVELOPE FROM: \[^\r\n\]*"\
+       "ENVELOPE TO: <address@hidden>,<address@hidden>"\
+       "   0: To: <address@hidden>,<address@hidden>"\
+       "   1: Subject: Re: Jabberwocky"\
+       "   2: In-Reply-To: Your message of Fri, 28 Dec 2001 22:18:08 +0200"\
+       "   3: \t<address@hidden>"\
+       "   4: References: <address@hidden>"\
+       "   5: X-Mailer: mail (GNU Mailutils $MU_TOOL_VERSION)"\
+       "   6: "\
+       "   7: > Received: (from address@hidden)"\
+       "   8: >        by nonexistent.net id fBSKI8N04906"\
+       "   9: >        for address@hidden; Fri, 28 Dec 2001 22:18:08 +0200"\
+       "  10: > Date: Fri, 28 Dec 2001 22:18:08 +0200"\
+       "  11: > From: Foo Bar <address@hidden>"\
+       "  12: > Message-Id: <address@hidden>"\
+       "  13: > To: Bar <address@hidden>"\
+       "  14: > Subject: Jabberwocky"\
+       "  15: >"\
+       "  16: > `Twas brillig, and the slithy toves"\
+       "  17: > Did gyre and gimble in the wabe;"\
+       "  18: > All mimsy were the borogoves,"\
+       "  19: > And the mome raths outgrabe."\
+       "  20: > "\
+       "  21: > `Beware the Jabberwock, my son!"\
+       "  22: > The jaws that bite, the claws that catch!"\
+       "  23: > Beware the Jujub bird, and shun"\
+       "  24: > The frumious Bandersnatch!'"\
+       "  25: > "\
+       "  26: > He took his vorpal sword in hand:"\
+       "  27: > Long time the manxome foe he sought --"\
+       "  28: > So rested he by the Tumtum gree,"\
+       "  29: > And stood awhile in thought."\
+       "  30: > "\
+       "  31: > And as in uffish thought he stood,"\
+       "  32: > The Jabberwock, with eyes of flame,"\
+       "  33: > Came whiffling through the tulgey wook,"\
+       "  34: > And burbled as it came!"\
+       "  35: > "\
+       "  36: > One, two!  One, two!  And through and through"\
+       "  37: > The vorpal blade went snicker-snack!"\
+       "  38: > He left it dead, and with its head"\
+       "  39: > He went galumphing back."\
+       "  40: > "\
+       "  41: > `And has thou slain the Jabberwock?"\
+       "  42: > Come to my arms, my beamish boy!"\
+       "  43: > O frabjous day!  Calloh!  Callay!"\
+       "  44: > He chortled in his joy."\
+       "  45: > "\
+       "  46: > `Twas brillig, and the slithy toves"\
+       "  47: > Did gyre and gimble in the wabe;"\
+       "  48: > All mimsy were the borogoves,"\
+       "  49: > And the mome raths outgrabe."\
+       "  50: > "\
+       "  51: "\
+       "END OF MESSAGE"
+}
 
 # End of send.exp
diff --git a/sieve/testsuite/sieve/redirect.exp 
b/sieve/testsuite/sieve/redirect.exp
index d782c80..c947000 100644
--- a/sieve/testsuite/sieve/redirect.exp
+++ b/sieve/testsuite/sieve/redirect.exp
@@ -17,14 +17,18 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 # 02110-1301 USA.
 
-set mtafile "$MU_FOLDER_DIR/mta.diag"
-set env(MTA_DIAG) "$mtafile"
-set env(MTA_APPEND) 1
+mu_version
+if ![mu_check_capability ENABLE_SENDMAIL] {
+    unsupported "Support for sendmail not compiled in"
+} else {
+    set mtafile "$MU_FOLDER_DIR/mta.diag"
+    set env(MTA_DIAG) "$mtafile"
+    set env(MTA_APPEND) 1
 
-set mailer "sendmail:$top_builddir/examples/mta"
-
-sieve_driver_test "Redirect" "$mailer" "$mtafile"
+    set mailer "sendmail:$top_builddir/examples/mta"
 
+    sieve_driver_test "Redirect" "$mailer" "$mtafile"
+}
 # End of redirect.exp  
 
 
diff --git a/sieve/testsuite/sieve/reject.exp b/sieve/testsuite/sieve/reject.exp
index c2a2c48..2a904a7 100644
--- a/sieve/testsuite/sieve/reject.exp
+++ b/sieve/testsuite/sieve/reject.exp
@@ -17,14 +17,18 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 # 02110-1301 USA.
 
-set mtafile "$MU_FOLDER_DIR/mta.diag"
-set env(MTA_DIAG) "$mtafile"
-set env(MTA_APPEND) 1
+mu_version
+if ![mu_check_capability ENABLE_SENDMAIL] {
+    unsupported "Support for sendmail not compiled in"
+} else {
+    set mtafile "$MU_FOLDER_DIR/mta.diag"
+    set env(MTA_DIAG) "$mtafile"
+    set env(MTA_APPEND) 1
 
-set mailer "sendmail:$top_builddir/examples/mta"
-
-sieve_driver_test "Reject" "$mailer" "$mtafile"
+    set mailer "sendmail:$top_builddir/examples/mta"
 
+    sieve_driver_test "Reject" "$mailer" "$mtafile"
+}
 # End of reject.exp    
 
 


hooks/post-receive
-- 
GNU Mailutils




reply via email to

[Prev in Thread] Current Thread [Next in Thread]