/[smecontribs]/rpms/smeserver-fetchmail/contribs8/smeserver-fetchmail-1.4.non_standard_smtpd_TCPPort.patch
ViewVC logotype

Diff of /rpms/smeserver-fetchmail/contribs8/smeserver-fetchmail-1.4.non_standard_smtpd_TCPPort.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by stephdl, Mon Jan 12 17:00:26 2015 UTC Revision 1.2 by stephdl, Fri Feb 6 08:53:36 2015 UTC
# Line 1  Line 1 
1  diff -Nur smeserver-fetchmail-1.4.old8796/root/etc/e-smith/templates/etc/fetchmail/90fetchmail smeserver-fetchmail-1.4.bz8796/root/etc/e-smith/templates/etc/fetchmail/90fetchmail  diff -Nur smeserver-fetchmail-1.4.old8796/root/etc/e-smith/templates/etc/fetchmail/90fetchmail smeserver-fetchmail-1.4.bz8796/root/etc/e-smith/templates/etc/fetchmail/90fetchmail
2  --- smeserver-fetchmail-1.4.old8796/root/etc/e-smith/templates/etc/fetchmail/90fetchmail        2015-01-12 17:45:34.869937632 +0100  --- smeserver-fetchmail-1.4.old8796/root/etc/e-smith/templates/etc/fetchmail/90fetchmail        2015-01-12 17:45:34.869937632 +0100
3  +++ smeserver-fetchmail-1.4.bz8796/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2015-01-12 17:47:51.134384591 +0100  +++ smeserver-fetchmail-1.4.bz8796/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2015-02-06 09:42:51.012772145 +0100
4  @@ -339,7 +339,7 @@  @@ -333,13 +333,16 @@
5                             $mname =~ s/[\']/\\x27/g ;
6                             $mpass =~ s/[\']/\\x27/g ;
7    
8    +                        #find the tcp port of smtpd
9    +                        my $tcpport = $db->get_prop('smtpd','TCPPort')||'25';
10    +                        
11                                $OUT .= "#\n";
12                             $OUT .= "#   Mail N$FetchN Account for : $comment\n";
13                             $OUT .= $staticvalue;
14                           $OUT .= "poll $mserv with proto $mtype$ServOpt\n" ;                           $OUT .= "poll $mserv with proto $mtype$ServOpt\n" ;
15                           $OUT .= "  user '$mname' $DestSMTPServer with password '" ;                           $OUT .= "  user '$mname' $DestSMTPServer with password '" ;
16                           $OUT .= "$mpass' is $name here $keep $ssl\n" ;                           $OUT .= "$mpass' is $name here $keep $ssl\n" ;
17  -                        $OUT .= "  smtphost 127.0.0.200\n" ;  -                        $OUT .= "  smtphost 127.0.0.200\n" ;
18  +                        $OUT .= "  smtphost 127.0.0.200" . ($smtpd{TCPPort} ? "/$smtpd{TCPPort}" : "") . "\n";  +                        $OUT .= "  smtphost 127.0.0.200" . ($tcpport ? "/$tcpport" : "") . "\n";
19                          $OUT .="EOF\n";                          $OUT .="EOF\n";
20                      }                      }
21                  }                  }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed