Re: [Harbour] hb_sendmail issues under linux

2009-09-18 Thread Jacek Kubica
Hello Lorenzo, Thursday, September 17, 2009, 4:44:04 PM, you wrote: LF> In contrib/hbtip/sendmail.prg these lines: LF> IF !( Right( cBody, 2 ) == hb_osNewLine() ) LF> cBody += hb_osNewLine() LF> ENDIF LF> should be: LF> IF !( Right( cBody, 2 ) == Chr( 13 ) + Chr( 10

Re: [Harbour] hb_sendmail issues under linux

2009-09-17 Thread Mindaugas Kavaliauskas
Lorenzo Fiorini wrote: In contrib/hbtip/sendmail.prg these lines: ... the standard requires Cr+Lf and servers like QMail reject messages with ONLY Lf reporting: 451 See http://pobox.com/~djb/docs/smtplf.html while others like Postfix accept them but report: 354 End data with . Using Chr( 13 )

Re: [Harbour] hb_sendmail issues under linux

2009-09-17 Thread Gerald Drouillard
On 9/17/2009 10:44 AM, Lorenzo Fiorini wrote: In contrib/hbtip/sendmail.prg these lines: IF !( Right( cBody, 2 ) == hb_osNewLine() ) cBody += hb_osNewLine() ENDIF should be: IF !( Right( cBody, 2 ) == Chr( 13 ) + Chr( 10 ) ) cBody += Chr( 13 ) + Chr( 10

Re: [Harbour] hb_sendmail issues under linux

2009-09-17 Thread Tamas TEVESZ
On Thu, 17 Sep 2009, Viktor Szakáts wrote: > > > i think (from a quick skim of the code) that the correct solution > > > would be deleting these three altogether, and the smtp client seems to > > > already add this in it's commit(), which should be enough (and along > > > these lines, appendin

Re: [Harbour] hb_sendmail issues under linux

2009-09-17 Thread Viktor Szakáts
i think (from a quick skim of the code) that the correct solution would be deleting these three altogether, and the smtp client seems to already add this in it's commit(), which should be enough (and along these lines, appending anything to cbody is wrong). I've tried to remove them but then

Re: [Harbour] hb_sendmail issues under linux

2009-09-17 Thread Lorenzo Fiorini
On Thu, Sep 17, 2009 at 5:41 PM, Tamas TEVESZ wrote: > i think (from a quick skim of the code) that the correct solution > would be deleting these three altogether, and the smtp client seems to > already add this in it's commit(), which should be enough (and along > these lines, appending anythin

Re: [Harbour] hb_sendmail issues under linux

2009-09-17 Thread Tamas TEVESZ
On Thu, 17 Sep 2009, Lorenzo Fiorini wrote: > In contrib/hbtip/sendmail.prg these lines: > > IF !( Right( cBody, 2 ) == hb_osNewLine() ) > cBody += hb_osNewLine() > ENDIF > > should be: > > IF !( Right( cBody, 2 ) == Chr( 13 ) + Chr( 10 ) ) > cBody

Re: [Harbour] hb_sendmail issues under linux

2009-09-17 Thread Viktor Szakáts
Okay, I'll make it. Brgds, Viktor On 2009 Sep 17, at 17:05, Lorenzo Fiorini wrote: On Thu, Sep 17, 2009 at 4:51 PM, Viktor Szakáts 0...@syenar.hu> wrote: Pls commit it. Sorry, my local repo is quite "customized" and I use mercurial as local VCS so for me commit to svn is a "big" task. Cou

Re: [Harbour] hb_sendmail issues under linux

2009-09-17 Thread Lorenzo Fiorini
On Thu, Sep 17, 2009 at 4:51 PM, Viktor Szakáts wrote: > Pls commit it. Sorry, my local repo is quite "customized" and I use mercurial as local VCS so for me commit to svn is a "big" task. Could you kindly add this small change to your next commit? best regards, Lorenzo ___

Re: [Harbour] hb_sendmail issues under linux

2009-09-17 Thread Viktor Szakáts
Hi Lorenzo, Seems okay to me. Current solution is wrong anyway, since Right( , 2 ) will rarely be equal to hb_osNewLine() on systems with 1 char long EOLs. Pls commit it. Brgds, Viktor On 2009 Sep 17, at 16:44, Lorenzo Fiorini wrote: In contrib/hbtip/sendmail.prg these lines: IF !( Ri

[Harbour] hb_sendmail issues under linux

2009-09-17 Thread Lorenzo Fiorini
In contrib/hbtip/sendmail.prg these lines: IF !( Right( cBody, 2 ) == hb_osNewLine() ) cBody += hb_osNewLine() ENDIF should be: IF !( Right( cBody, 2 ) == Chr( 13 ) + Chr( 10 ) ) cBody += Chr( 13 ) + Chr( 10 ) ENDIF the standard requires Cr+Lf and serve