pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/mini_sendmail Add a few more sendmail compatibili...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d23a167ebd41
branches:  trunk
changeset: 534580:d23a167ebd41
user:      martin <martin%pkgsrc.org@localhost>
date:      Sat Oct 27 11:30:36 2007 +0000

description:
Add a few more sendmail compatibility command line flags (all ignored) -
enough to allow NetBSD's cron to send mail.

diffstat:

 mail/mini_sendmail/distinfo         |   4 +-
 mail/mini_sendmail/patches/patch-aa |  38 ++++++++++++++++++++++++++----------
 2 files changed, 29 insertions(+), 13 deletions(-)

diffs (118 lines):

diff -r 1b469ad16e87 -r d23a167ebd41 mail/mini_sendmail/distinfo
--- a/mail/mini_sendmail/distinfo       Sat Oct 27 11:26:30 2007 +0000
+++ b/mail/mini_sendmail/distinfo       Sat Oct 27 11:30:36 2007 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.10 2006/12/01 10:40:48 martin Exp $
+$NetBSD: distinfo,v 1.11 2007/10/27 11:30:36 martin Exp $
 
 SHA1 (mini_sendmail-1.3.6.tar.gz) = e8d18419ffa5075ce0b3f49a52bd5e1a38beeb02
 RMD160 (mini_sendmail-1.3.6.tar.gz) = 87fc1133c5976ae6e85730d3600149f69c7cab55
 Size (mini_sendmail-1.3.6.tar.gz) = 7579 bytes
-SHA1 (patch-aa) = 82eccc80d1cde777ed49d965e1c9b3df05e8cc22
+SHA1 (patch-aa) = 54601fa54cedeb9b3bfbafdbd9b2f7e129a53fcd
 SHA1 (patch-ab) = f96d22be2f94445a6f8b249cdd823dcfbd1528de
 SHA1 (patch-ac) = b14f2687f3186e198af03b2662b81726c7321558
 SHA1 (patch-ad) = 35319baaf3eac9dd931170ed4e6d638a19fff8b5
diff -r 1b469ad16e87 -r d23a167ebd41 mail/mini_sendmail/patches/patch-aa
--- a/mail/mini_sendmail/patches/patch-aa       Sat Oct 27 11:26:30 2007 +0000
+++ b/mail/mini_sendmail/patches/patch-aa       Sat Oct 27 11:30:36 2007 +0000
@@ -1,8 +1,9 @@
-$NetBSD: patch-aa,v 1.9 2006/12/01 10:40:48 martin Exp $
+$NetBSD: patch-aa,v 1.10 2007/10/27 11:30:37 martin Exp $
+
 
 --- mini_sendmail.c.orig       2005-06-29 19:37:15.000000000 +0200
-+++ mini_sendmail.c    2006-12-01 11:35:27.000000000 +0100
-@@ -66,8 +66,13 @@ static char* argv0;
++++ mini_sendmail.c    2007-10-27 13:25:55.000000000 +0200
+@@ -66,8 +66,13 @@
  static char* fake_from;
  static int parse_message, verbose;
  #ifdef DO_MINUS_SP
@@ -17,7 +18,7 @@
  #endif /* DO_MINUS_SP */
  static int timeout;
  static int sockfd1, sockfd2;
-@@ -84,7 +89,7 @@ static char* make_received( char* from, 
+@@ -84,7 +89,7 @@
  #endif /* DO_RECEIVED */
  static void parse_for_recipients( char* message );
  static void add_recipient( char* recipient, int len );
@@ -26,7 +27,7 @@
  static int read_response( void );
  static void send_command( char* command );
  static void send_data( char* data );
-@@ -106,13 +111,15 @@ main( int argc, char** argv )
+@@ -106,13 +111,15 @@
      char from[1000];
      int status;
      char buf[2000];
@@ -43,7 +44,14 @@
      port = SMTP_PORT;
  #endif /* DO_MINUS_SP */
      verbose = 0;
-@@ -125,15 +132,21 @@ main( int argc, char** argv )
+@@ -122,22 +129,36 @@
+       {
+       if ( strncmp( argv[argn], "-f", 2 ) == 0 && argv[argn][2] != '\0' )
+           fake_from = &(argv[argn][2]);
++      else if ( strncmp( argv[argn], "-F", 2 ) == 0 && argv[argn][2] != '\0' )
++          ;   /* ignore for sendmail compatibility, should set From: header */
++      else if ( strncmp( argv[argn], "-or", 3 ) == 0 && argv[argn][3] != '\0' )
++          ;   /* ignore for sendmail compatibility (sets some timeout) */
        else if ( strcmp( argv[argn], "-t" ) == 0 )
            parse_message = 1;
  #ifdef DO_MINUS_SP
@@ -68,7 +76,15 @@
        else if ( strcmp( argv[argn], "-i" ) == 0 )
            ;   /* ignore */
        else if ( strcmp( argv[argn], "-oi" ) == 0 )
-@@ -186,8 +199,21 @@ main( int argc, char** argv )
+           ;   /* ignore */
++      else if ( strcmp( argv[argn], "-odi" ) == 0 )
++          ;   /* ignore */
++      else if ( strcmp( argv[argn], "-oem" ) == 0 )
++          ;   /* ignore */
+       else if ( strcmp( argv[argn], "--" ) == 0 )
+           ;   /* ignore */
+       else
+@@ -186,8 +207,21 @@
  
      (void) signal( SIGALRM, sigcatch );
  
@@ -91,7 +107,7 @@
  
      sockfd2 = dup( sockfd1 );
      sockrfp = fdopen( sockfd1, "r" );
-@@ -507,14 +533,24 @@ parse_for_recipients( char* message )
+@@ -507,14 +541,24 @@
            switch ( *cp )
                {
                case '\n':
@@ -123,7 +139,7 @@
                    }
                break;
                case ',':
-@@ -532,25 +568,43 @@ static void
+@@ -532,25 +576,43 @@
  add_recipient( char* recipient, int len )
      {
      char buf[1000];
@@ -174,7 +190,7 @@
      send_command( buf );
      status = read_response();
      if ( status != 250  && status != 251 )
-@@ -569,7 +623,7 @@ add_recipient( char* recipient, int len 
+@@ -569,7 +631,7 @@
  #endif
  
  static int
@@ -183,7 +199,7 @@
      {
  #ifdef USE_IPV6
      struct sockaddr_in6 sa;
-@@ -744,10 +798,10 @@ open_client_socket( void )
+@@ -744,10 +806,10 @@
  
      sockfd = socket( sock_family, sock_type, sock_protocol );
      if ( sockfd < 0 )



Home | Main Index | Thread Index | Old Index