 | | From: | pb | | Subject: | KorrNews header problem | | Date: | Sat, 16 Oct 2004 13:28:57 -0400 |
|
|
 | This problem began, I think, with version 4,2 of KN, as I used to be able to do this with no problem.
KN is not dealing with the mail envelope properly. When I try to reroute outgoing mail, the original "MAIL FROM header is not removed. Consequently the mail is left with two headers:
Original envelope: !MAIL FROM: New envelope: !MAIL FROM: !MAIL FROM:
which understandably causes the remote servers to choke.
I've tried every form of the appropriate command I know of: Set Header !MAIL FROM: and Set Header !MAIL FROM =
both of which are supposed to nuke the original header. I've also tried a two-step operation: !MAIL FROM: !MAIL FROM:
The first command should nuke the original address; it doesn't, so the result is the same as above. It's only the two envelope headers that KorrNews doesn't handle correctly; the others are fine.
Also note that the replacement header KN sets is not formed exactly correctly, having a space between the colon and the value.
Thanks for a great tool! Paul
|
|
 | | From: | Henrik K Hansen | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 15:45:20 +0200 |
|
|
 | pb, wrote:
> Have you read this thread? Have you tried this command with KN > 4.2?
Yes and yes.
-- Henrik
|
|
 | | From: | s h e h u | | Subject: | Re: KorrNews header problem | | Date: | 21 Oct 2004 11:47:57 +0200 |
|
|
 | "pb" wrote in news:him2n0998qm7sjnqln53blgnlcplvno45o@4ax.com:
> both of which are supposed to nuke the original header. I've also > tried a two-step operation: > !MAIL FROM: > !MAIL FROM: >
That is where you have set the two envelopes. The new should override the old shouldn't it? So you need just this one.
Set Header !MAIL FROM:
s h e h u -- valid reply address set
|
|
 | | From: | pb | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 07:50:14 -0400 |
|
|
 | s h e h u wrote:
> the new should override the > old shouldn't it? So you need just this one. > > Set Header !MAIL FROM:
Yes it should, but it doesn't. Using KN 4.2, try this and tell me what happens.
p.
|
|
 | | From: | s h e h u | | Subject: | Re: KorrNews header problem | | Date: | 21 Oct 2004 15:35:37 +0200 |
|
|
 | "pb" wrote in news:8i8fn0l6u94deai66c1fcslavq424oq5sg@4ax.com:
> s h e h u wrote: > >> the new should override the >> old shouldn't it? So you need just this one. >> >> Set Header !MAIL FROM: > > Yes it should, but it doesn't. Using KN 4.2, try this and tell me > what happens. > > p.
No problem here with KN 4.2. Works as expected. This also works.
Set Header !MAIL FROM:new_address@xxx.com
Check your script again.
s h e h u -- valid reply address set
|
|
 | | From: | pb | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 13:50:21 -0400 |
|
|
 | s h e h u wrote:
> Check your script again.
I just replaced my mail.out.def with a new file, consisting only of
!MAIL FROM:
I then sent out a mail, and after KN handled it, it read:
!MAIL FROM: !MAIL FROM:
Xs added here, of course. This has got me baffled.
Paul
|
|
 | | From: | s h e h u | | Subject: | Re: KorrNews header problem | | Date: | 24 Oct 2004 14:23:23 +0200 |
|
|
 | "pb" wrote in news:nitfn09dvgsd87s1k4eoabg2kuh5ef37g3@4ax.com:
> I just replaced my mail.out.def with a new file, consisting only > of > !MAIL FROM:
Have you checked Automation > Actions > Outgoing Mail? Is Only_KN.exe being called at all?
How about using an if statement?
If Lower(Header(To)) contains " Set Header !MAIL FROM:xxxx@myrealbox.com endif
s h e h u -- valid reply address set
|
|
 | | From: | pb | | Subject: | Re: KorrNews header problem | | Date: | Sun, 24 Oct 2004 09:10:02 -0400 |
|
|
 | s h e h u wrote:
> Have you checked Automation > Actions > Outgoing Mail? Is Only_KN.exe being > called at all?
Yes:
mail.out.wait=1 mail.out.exec=C:\Com\Hamster\KorrNews\Only_KN.exe mail.out.pars=Type:mails Filename:"%1" ;mail.out.script=
KN definitely is making changes; it's just that it's making wrong changes.
> How about using an if statement?
I can't see how that would affect things. See above.
Thanks, pb
|
|
 | | From: | s h e h u | | Subject: | Re: KorrNews header problem | | Date: | 24 Oct 2004 17:02:17 +0200 |
|
|
 | "pb" wrote in news:saann0lt33bkk827tim6jbt4b80v9us0l3@4ax.com:
> KN definitely is making changes; it's just that it's making wrong > changes. >
One last thought: Any general mail rules in Header.def?
s h e h u -- valid reply address set
|
|
 | | From: | pb | | Subject: | Re: KorrNews header problem | | Date: | Sun, 24 Oct 2004 11:43:36 -0400 |
|
|
 | s h e h u wrote:
> One last thought: Any general mail rules in Header.def?
I think I covered that in
nitfn09dvgsd87s1k4eoabg2kuh5ef37g3@4ax.com
I use "mail.out.def" as my "header.def". I've also just upgraded hamster-fr to the latest, with no effect on this problem.
Strange.
pb
|
|
 | | From: | Anthony R. Gold | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 19:57:03 +0100 |
|
|
 | On Thu, 21 Oct 2004 13:50:21 -0400, "pb" wrote:
> !MAIL FROM:
I duuno if it helps, but anyway put in the space after the colon which Hamster expects.
> Xs added here, of course. This has got me baffled.
Good luck,
Tony
|
|
 | | From: | pb | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 16:41:41 -0400 |
|
|
 | Anthony R. Gold wrote:
> I duuno if it helps, but anyway put in the space after the colon which > Hamster expects.
No, no difference.
I originally thought that was the problem, but then found out that the lack of the space is really the correct formatting.
Paul
|
|
 | | From: | Anthony R. Gold | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 22:12:00 +0100 |
|
|
 | On Thu, 21 Oct 2004 16:41:41 -0400, "pb" wrote:
> I originally thought that was the problem, but then found out > that the lack of the space is really the correct formatting.
The correct format for the smtp commands MAIL FROM: and RCPT TO: but that's NOT what Hamster uses when its server receives and stores an email for forwarding. But glad to hear that you found this difference was not significant.
Tony
|
|
 | | From: | Thomas G. Liesner | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 16:49:42 +0200 |
|
|
 | pb schrieb: > Have you read this thread? Have you tried this command with KN > 4.2?
Are you using the option "ignore first/last xx lines"?
So long, Thomas G. Liesner -- Hamster beta V2.0.6.0 seit 03.10.2004 verfügbar http://tglsoft.de/ bzw. http://hamster.arcornews.de/tgl/
|
|
 | | From: | pb | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 13:51:14 -0400 |
|
|
 | Thomas G. Liesner wrote:
> Are you using the option "ignore first/last xx lines"?
Thomas, sorry, I don't read you on this. I don't see that option anywhere and do not know what it does.
Thanks, Paul
|
|
 | | From: | Henrik K Hansen | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 14:44:53 +0200 |
|
|
 | pb, wrote:
>> Set Header !MAIL FROM: > > Yes it should, but it doesn't. Using KN 4.2, try this and tell me > what happens.
One header !MAIL FROM:
-- Henrik
|
|
 | | From: | pb | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 09:10:27 -0400 |
|
|
 | > One header > !MAIL FROM:
Have you read this thread? Have you tried this command with KN 4.2?
p.
|
|
 | | From: | Anthony R. Gold | | Subject: | Re: KorrNews header problem | | Date: | Thu, 21 Oct 2004 14:35:06 +0100 |
|
|
 | On Thu, 21 Oct 2004 09:10:27 -0400, "pb" wrote:
>> One header >> !MAIL FROM: > > Have you read this thread? Have you tried this command with KN > 4.2?
I have read this thread and I find the command works for me with KN 4.2
Tony
|
|
 | | From: | Anthony R. Gold | | Subject: | Re: KorrNews header problem | | Date: | Sat, 16 Oct 2004 23:20:18 +0100 |
|
|
 | On Sat, 16 Oct 2004 13:28:57 -0400, "pb" wrote:
> Original envelope: > !MAIL FROM: > New envelope: > !MAIL FROM: > !MAIL FROM:
What commands in file.def had that result?
> I've tried every form of the appropriate command I know of: > Set Header !MAIL FROM: > and > Set Header !MAIL FROM = > > both of which are supposed to nuke the original header. I've also > tried a two-step operation: > !MAIL FROM: > !MAIL FROM:
The single command:
!MAIL FROM:
is all you need. I use this form of command often inside If ... endif conditional statements and it works fine in V4.2 of ONLY_KN.EXE, which is the non-console version of Korrnews.EXE and which is invoked by Hamster.
Tony
|
|
 | | From: | pb | | Subject: | Re: KorrNews header problem | | Date: | Sat, 16 Oct 2004 18:48:01 -0400 |
|
|
 | Anthony R. Gold wrote:
> On Sat, 16 Oct 2004 13:28:57 -0400, "pb" wrote: > >> Original envelope: >> !MAIL FROM: >> New envelope: >> !MAIL FROM: >> !MAIL FROM: > > What commands in file.def had that result?
All the commands that follow here.
>> I've tried every form of the appropriate command I know of: >> Set Header !MAIL FROM: >> and >> Set Header !MAIL FROM = >> >> both of which are supposed to nuke the original header. I've also >> tried a two-step operation: >> !MAIL FROM: >> !MAIL FROM: > > The single command: > > !MAIL FROM: > > is all you need. I use this form of command often inside If ... endif > conditional statements and it works fine in V4.2 of ONLY_KN.EXE, which is > the non-console version of Korrnews.EXE and which is invoked by Hamster.
Doesn't work. Exactly the same result. BTW, I'm using Hamster French now, but it did it before with Hamster Classic, all pretty much latest editions.
Paul
|
|