Community Discussions and Support
Sender: maiser - question about header

[quote user="PaulW"]

[quote user="Vincent Fatica"]P.S. As far as I can tell, it's either Outlook or the MS Exchange server that's providing the info "From: Maiser@... on behalf of ...".  That's not the real "From:" header in the emails.  There's no real consequence (other than upsetting folks when they see it) because replies to such emails go to the "on behalf of" person (who is also named in the real "From:" header).  All that said, perhaps the behavior isn't so bad; Maiser really was the sender, and did send the message on behalf of the person who submitted it to the list.[/quote]

I disagree that Outlook's behaviour is totally neutral.  I had considerable difficulty on my lists with some members' replies going to (and being rejected by) maiser.

I now suppress the outgoing 'Sender: Maiser@listname' header in a policy.  On a low volume mailserver that works fine, with busier servers a daemon may be better.

[/quote]

Thanks for the tip Paul.  I'll try a policy.  I haven't seen replies going to maiser (yet).  My problem is that the gals who work in the dept office of the small math dept for which I work are alarmed by it and keep harping at me.  They are the ones who use the few mailing lists and they often get replies to their messages.  I haven't the time to track down the offending clients (and am probably powerless to change their behavior).  Yet it's good policy to stay on the good side of those gals.

[quote user="PaulW"]<p>[quote user="Vincent Fatica"]P.S. As far as I can tell, it's either Outlook or the MS Exchange server that's providing the info "From: Maiser@... on behalf of ...".  That's not the real "From:" header in the emails.  There's no real consequence (other than upsetting folks when they see it) because replies to such emails go to the "on behalf of" person (who is also named in the real "From:" header).  All that said, perhaps the behavior isn't so bad; Maiser really was the sender, and did send the message on behalf of the person who submitted it to the list.[/quote]</p> <p>I disagree that Outlook's behaviour is totally neutral.  I had considerable difficulty on my lists with some members' replies going to (and being rejected by) maiser.</p> <p>I now suppress the outgoing 'Sender: <a href="mailto:Maiser@listname%27" mce_href="mailto:Maiser@listname'">Maiser@listname'</a> header in a policy.  On a low volume mailserver that works fine, with busier servers a daemon may be better.</p><p>[/quote]</p><p>Thanks for the tip Paul.  I'll try a policy.  I haven't seen replies going to maiser (yet).  My problem is that the gals who work in the dept office of the small math dept for which I work are alarmed by it and keep harping at me.  They are the ones who use the few mailing lists and they often get replies to their messages.  I haven't the time to track down the offending clients (and am probably powerless to change their behavior).  Yet it's good policy to stay on the good side of those gals. </p>

What determines if mail sent to a Mercury list gets such a header as:

Sender: Maiser@...

Some have it, some don't.  These headers haven't been a problem in the past, but recently, some replies to emails to a list appear to come from:

"maiser@ ... on behalf of <original From: spec>"

&lt;p&gt;What determines if mail sent to a Mercury list gets such a header as:&lt;/p&gt;&lt;p&gt;Sender: Maiser@...&lt;/p&gt;&lt;p&gt;Some have it, some don&#039;t.&amp;nbsp; These headers haven&#039;t been a problem in the past, but recently, some replies to emails to a list appear to come from:&lt;/p&gt;&lt;p&gt;&quot;maiser@ ... on behalf of &amp;lt;original From: spec&amp;gt;&quot; &lt;/p&gt;

The Sender header (not to be confused with the From header) is added by Mercury when distributing a message to list members, and has been there since at least Mercury v. 4.01. Is there some specific email client that uses "maiser@ ... on behalf of..." as From header when replying to list messages?

/Rolf 

&lt;p&gt;The Sender header (not to be confused with the From header) is added by Mercury when distributing a message to list members, and has been there since at least Mercury v. 4.01. Is there some specific email client that uses&amp;nbsp;&quot;maiser@ ... on behalf of...&quot; as From header when replying to list messages?&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

[quote user="Rolf Lindby"]

The Sender header (not to be confused with the From header) is added by Mercury when distributing a message to list members, and has been there since at least Mercury v. 4.01. Is there some specific email client that uses "maiser@ ... on behalf of..." as From header when replying to list messages?

/Rolf 

[/quote]

No there isn't (at least not that I know of).  But those replies to mail sent to a list are not coming through Mercury ... so somrthing alse must be doing it.

Googling turned up that I asked about the same thing in January 2007 and that I solved it with a daemon.  I could find **no** emails to myself, via lists, that contained the "Sender:" header prior to 23 June 2012, which coincides with my migrating to Win7 (but running Mercury from the same place it was in on XP,no reinstall).  Maybe I messed up my own daemon.  At that time, David Harris wrote:

"I'll consider adding an option to suppress or restructure the "Sender"

field in an upcoming version of Mercury, but initially, I'd be trying to

find out why the mail client is doing such a bizarre thing."

Does anyone know if David has made any steps in this direction?  The Mercury in question is v4.6; I could upgrade.

Thanks.

  - Vince

[quote user=&quot;Rolf Lindby&quot;]&lt;p&gt;The Sender header (not to be confused with the From header) is added by Mercury when distributing a message to list members, and has been there since at least Mercury v. 4.01. Is there some specific email client that uses&amp;nbsp;&quot;maiser@ ... on behalf of...&quot; as From header when replying to list messages?&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;No there isn&#039;t (at least not that I know of).&amp;nbsp; But those replies to mail sent to a list are not coming through Mercury ... so somrthing alse must be doing it.&lt;/p&gt;&lt;p&gt;Googling turned up that I asked about the same thing in January 2007 and that I solved it with a daemon.&amp;nbsp; I could find **no** emails to myself, via lists, that contained the &quot;Sender:&quot; header prior to 23 June 2012, which coincides with my migrating to Win7 (but running Mercury from the same place it was in on XP,no reinstall).&amp;nbsp; Maybe I messed up my own daemon.&amp;nbsp; At that time, David Harris wrote:&lt;/p&gt;&lt;p&gt;&quot;I&#039;ll consider adding an option to suppress or restructure the &quot;Sender&quot; field in an upcoming version of Mercury, but initially, I&#039;d be trying to find out why the mail client is doing such a bizarre thing.&quot;&lt;/p&gt;&lt;p&gt;Does anyone know if David has made any steps in this direction?&amp;nbsp; The Mercury in question is v4.6; I could upgrade.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp; - Vince &lt;/p&gt;

Here's all of what D.H. said 5 1/2 years ago:

*******************************************************

Vincent Fatica:

But

I did discover that the queue's QDF file is not locked at daemon

call-time and can simply be edited by the daemon.  Now I have a working

daemon in place getting rid of the "Sender: Maiser" header.



You

MUST NOT DO THIS! This is so much of a problem that if I find that a

Daemon is doing it, I will be forced to add code to Mercury to detect

and suppress loading of that daemon. Mercury DOES provide a daemon-level

method of modifying the raw data files of a job, but it's not shown in

the current version of the daemon toolkit. Even so, that is the only

approved way of modifying the actual data fork of a job, and you must

not attempt to do it "behind Mercury's back" in this way.

The

real problem here is the mail program that's trying to reply to Maiser.

The RFC822/2822 definition of the Sender: field is quite unambiguous -

it must be used whenever the entity sending the message is not the same

entity as the one shown in the "From" field - the most usual example is a

secretary sending a message on behalf of her boss. It makes no sense

for the reply to go to the secretary - the mail program should be

sending the reply to the actual author.

I'll consider adding an

option to suppress or restructure the "Sender" field in an upcoming

version of Mercury, but initially, I'd be trying to find out why the

mail client is doing such a bizarre thing.

Cheers!

-- David --

*************************************************************************

 I did manage to suppress the "Sender:" header for 5+ years with a daemon.  I don't recall exactly how; I know where the source code is but can't get at it until tomorrow.

 The funny thing is, while some client may be dumb enough to use that header, something along the way is smart (?) enough to actually send the email to the "on behalf of" address (as I said before, the replies are **not** coming through Mercury).

 Does the newest daemon toolkit describe how to modify a job's raw data?  And, as I asked before, does v4.74 have a built-in way to suppress the "Sender:" header?

 - Vince

&lt;p&gt;Here&#039;s all of what D.H. said 5 1/2 years ago:&lt;/p&gt;&lt;p&gt;******************************************************* &lt;/p&gt;&lt;div class=&quot;ForumPostBodyArea&quot;&gt; &lt;div id=&quot;ctl00_ctl01_bcr_ctl00___PostRepeater_ctl10_PostViewWrapper&quot; class=&quot;ForumPostContentText&quot;&gt; &lt;blockquote&gt;&lt;div&gt;&lt;img src=&quot;http://community.pmail.com/Themes/default/images/icon-quote.gif&quot;&gt; &lt;strong&gt;Vincent Fatica:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;But I did discover that the queue&#039;s QDF file is not locked at daemon call-time and can simply be edited by the daemon.&amp;nbsp; Now I have a working daemon in place getting rid of the &quot;Sender: Maiser&quot; header. &lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt; You MUST NOT DO THIS! This is so much of a problem that if I find that a Daemon is doing it, I will be forced to add code to Mercury to detect and suppress loading of that daemon. Mercury DOES provide a daemon-level method of modifying the raw data files of a job, but it&#039;s not shown in the current version of the daemon toolkit. Even so, that is the only approved way of modifying the actual data fork of a job, and you must not attempt to do it &quot;behind Mercury&#039;s back&quot; in this way. The real problem here is the mail program that&#039;s trying to reply to Maiser. The RFC822/2822 definition of the Sender: field is quite unambiguous - it must be used whenever the entity sending the message is not the same entity as the one shown in the &quot;From&quot; field - the most usual example is a secretary sending a message on behalf of her boss. It makes no sense for the reply to go to the secretary - the mail program should be sending the reply to the actual author. I&#039;ll consider adding an option to suppress or restructure the &quot;Sender&quot; field in an upcoming version of Mercury, but initially, I&#039;d be trying to find out why the mail client is doing such a bizarre thing. Cheers! -- David -- &lt;/div&gt; &lt;/div&gt; &lt;div&gt; &lt;span id=&quot;ctl00_ctl01_bcr_ctl00___PostRepeater_ctl10_InlineTagEditorPanel&quot;&gt;&lt;/span&gt; &lt;/div&gt; *************************************************************************&lt;p&gt;&amp;nbsp;I did manage to suppress the &quot;Sender:&quot; header for 5+ years with a daemon.&amp;nbsp; I don&#039;t recall exactly how; I know where the source code is but can&#039;t get at it until tomorrow.&lt;/p&gt;&lt;p&gt;&amp;nbsp;The funny thing is, while some client may be dumb enough to use that header, something along the way is smart (?) enough to actually send the email to the &quot;on behalf of&quot; address (as I said before, the replies are **not** coming through Mercury). &lt;/p&gt;&lt;p&gt;&amp;nbsp;Does the newest daemon toolkit describe how to modify a job&#039;s raw data?&amp;nbsp; And, as I asked before, does v4.74 have a built-in way to suppress the &quot;Sender:&quot; header?&lt;/p&gt;&lt;p&gt;&amp;nbsp;- Vince &lt;/p&gt;

No such option in the current release,but if you could please send me a sample of a message with  "maiser@ ... on behalf of ..." ( a .CNM file preferably) I'll be happy to bring it up again for the upcoming v5 of Mercury. Daemons basically work the same way under Windows 7 as under XP, so you should be able to get your daemon working again in the meantime.

And additionally (from the current Daemon Developer Guide):

ji_open_job: Call this function to open a job when you need to work with its contents. Until you call ji_close_job, the job will be locked and unavailable to other threads and processes – in other words, you will have exclusive access to it

 /Rolf 

&lt;p&gt;No such option in the current release,but if you could please send me a sample of a message with&amp;nbsp;&amp;nbsp;&quot;maiser@ ... on behalf of ...&quot; ( a .CNM file&amp;nbsp;preferably) I&#039;ll be happy to bring it up again for the upcoming v5 of Mercury. Daemons basically work the same way under Windows 7 as under XP, so you should be able to get your daemon working again in the meantime.&lt;/p&gt;&lt;p&gt;And additionally (from the current Daemon Developer Guide):&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;ji_open_job: Call this function to open a job when you need to work with its contents. Until you call&amp;nbsp;ji_close_job, the job will be locked and unavailable to other threads and processes &ndash;&amp;nbsp;in other words, you will have exclusive access to it&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;/Rolf&amp;nbsp;&lt;/p&gt;

I might be able to get you one but it almost certainly won't be a CNM file.  I'm not one to send mail to a list so I won't have any such replies.  I'll also try to find out what client is doing that.  It's likely to be MS's Web/Outlook thing (with which I am not familiar)

I still didn't get at the source code for my daemon but I'm pretty sure it does exactly what David said I shouldn't do; it memory maps a QDF file, so I suppose it's editing the message as it sits in the queue.  Thanks for the tip, Rolf.  I'll look at the latest guide and try to write a new daemon to do it properly.  Is there any more these days than DAEMON.TXT and DAEMON.H?

 - Vince

&lt;p&gt;I might be able to get you one but it almost certainly won&#039;t be a CNM file.&amp;nbsp; I&#039;m not one to send mail to a list so I won&#039;t have any such replies.&amp;nbsp; I&#039;ll also try to find out what client is doing that.&amp;nbsp; It&#039;s likely to be MS&#039;s Web/Outlook thing (with which I am not familiar) &lt;/p&gt;&lt;p&gt;I still didn&#039;t get at the source code for my daemon but I&#039;m pretty sure it does exactly what David said I shouldn&#039;t do; it memory maps a QDF file, so I suppose it&#039;s editing the message as it sits in the queue.&amp;nbsp; Thanks for the tip, Rolf.&amp;nbsp; I&#039;ll look at the latest guide and try to write a new daemon to do it properly.&amp;nbsp; Is there any more these days than DAEMON.TXT and DAEMON.H? &lt;/p&gt;&lt;p&gt;&amp;nbsp;- Vince &lt;/p&gt;

There is a nice package with a daemon development guide, examples, and code files that can be downloaded here:

http://community.pmail.com/files/folders/mercur/entry10073.aspx 

/Rolf 

&lt;p&gt;There is a nice package with a daemon development guide, examples, and code files that can be downloaded here:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://community.pmail.com/files/folders/mercur/entry10073.aspx&quot;&gt;http://community.pmail.com/files/folders/mercur/entry10073.aspx&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

I'm a little lost.  The daemon that has worked for years (with v4.62) doesn't work now (WIN7).  There are many discrepancies.  It declares/exports

SHORT __declspec(dllexport) DAEMON (VOID *job, M_INTERFACE *mi, CHAR *address, CHAR *param)

and I supply "param" via daemon.ini.

while my daemon.txt calls the function "daemon" (lowercase).  and the newest DDK (daemon2.c)  declares it without "param".

DAEMONEXPORT short daemon (void *job, M_INTERFACE *mi, char *address)

My daemon loads; STARTUP (uppercase) is called.  But DAEMON is not called when there's a job.

Any tips would be appreciated.

&lt;p&gt;I&#039;m a little lost.&amp;nbsp; The daemon that has worked for years (with v4.62) doesn&#039;t work now (WIN7).&amp;nbsp; There are many discrepancies.&amp;nbsp; It declares/exports&lt;/p&gt;&lt;p&gt;SHORT __declspec(dllexport) DAEMON (VOID *job, M_INTERFACE *mi, CHAR *address, CHAR *param)&lt;/p&gt;&lt;p&gt;and I supply &quot;param&quot; via daemon.ini. &lt;/p&gt;&lt;p&gt;while my daemon.txt calls the function &quot;daemon&quot; (lowercase).&amp;nbsp; and the newest DDK (daemon2.c)&amp;nbsp; declares it without &quot;param&quot;. &lt;/p&gt;&lt;p&gt;DAEMONEXPORT short daemon (void *job, M_INTERFACE *mi, char *address)&lt;/p&gt;&lt;p&gt;My daemon loads; STARTUP (uppercase) is called.&amp;nbsp; But DAEMON is not called when there&#039;s a job.&lt;/p&gt;&lt;p&gt;Any tips would be appreciated. &lt;/p&gt;

[quote user="Vincent Fatica"]

I'm a little lost.  The daemon that has worked for years (with v4.62) doesn't work now (WIN7).  There are many discrepancies.  It declares/exports

SHORT __declspec(dllexport) DAEMON (VOID *job, M_INTERFACE *mi, CHAR *address, CHAR *param)

and I supply "param" via daemon.ini.

while my daemon.txt calls the function "daemon" (lowercase).  and the newest DDK (daemon2.c)  declares it without "param".

DAEMONEXPORT short daemon (void *job, M_INTERFACE *mi, char *address)

My daemon loads; STARTUP (uppercase) is called.  But DAEMON is not called when there's a job.

Any tips would be appreciated.

[/quote]

OK, I got it working.  I overlooked the fact that it needed to be in the "[Global Daemons]" section of DAEMON.INI.

But I'm still curious about the case of the name of the daemon/DAEMON function and the apparently conflicting declarations of that function given by my (v4.62) DAEMONS.TXT and the recently downloaded DDK.

Thanks!

[quote user=&quot;Vincent Fatica&quot;]&lt;p&gt;I&#039;m a little lost.&amp;nbsp; The daemon that has worked for years (with v4.62) doesn&#039;t work now (WIN7).&amp;nbsp; There are many discrepancies.&amp;nbsp; It declares/exports&lt;/p&gt;&lt;p&gt;SHORT __declspec(dllexport) DAEMON (VOID *job, M_INTERFACE *mi, CHAR *address, CHAR *param)&lt;/p&gt;&lt;p&gt;and I supply &quot;param&quot; via daemon.ini. &lt;/p&gt;&lt;p&gt;while my daemon.txt calls the function &quot;daemon&quot; (lowercase).&amp;nbsp; and the newest DDK (daemon2.c)&amp;nbsp; declares it without &quot;param&quot;. &lt;/p&gt;&lt;p&gt;DAEMONEXPORT short daemon (void *job, M_INTERFACE *mi, char *address)&lt;/p&gt;&lt;p&gt;My daemon loads; STARTUP (uppercase) is called.&amp;nbsp; But DAEMON is not called when there&#039;s a job.&lt;/p&gt;&lt;p&gt;Any tips would be appreciated. &lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;OK, I got it working.&amp;nbsp; I overlooked the fact that it needed to be in the &quot;[Global Daemons]&quot; section of DAEMON.INI.&lt;/p&gt;&lt;p&gt;But I&#039;m still curious about the case of the name of the daemon/DAEMON function and the apparently conflicting declarations of that function given by my (v4.62) DAEMONS.TXT and the recently downloaded DDK.&lt;/p&gt;&lt;p&gt;Thanks! &lt;/p&gt;

There has been extensions to the daemon interface between versions but the basics are the same as before. Check the developer guide when in doubt:

"The primary function of a Mercury Daemon is usually to process mail as it goes through the queue – indeed, with the simplest type of Daemon, the Single Instance Daemon, this is all the Daemon can do. To implement this primary function, your Daemon, whether Single Instance, Resident or Global, needs to export a function called daemon, which has the following form:

short daemon (void *job, M_INTERFACE *m, char *address, char *parameter);"

In this case this daemon will of course have to be a global daemon, and specified as such in daemon.ini. 

/Rolf 

&lt;p&gt;There has been extensions to the daemon interface between versions but the basics are the same as before. Check the developer guide when in doubt:&lt;/p&gt;&lt;p&gt;&quot;The primary function of a Mercury Daemon is usually to process mail as it goes through the queue &ndash; indeed, with the simplest type of Daemon, the Single Instance Daemon, this is all the Daemon can do. To implement this primary function, your Daemon, whether Single Instance, Resident or Global, needs to export a function called daemon, which has the following form:&lt;/p&gt;&lt;p&gt;short daemon (void *job, M_INTERFACE *m, char *address, char *parameter);&quot;&lt;/p&gt;&lt;p&gt;In this case this daemon will of course have to be a global daemon, and specified as such in daemon.ini.&amp;nbsp;&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

The DDK samples, daemon1.c and daemon2.c, one single-instance, one global, both show:

DAEMONEXPORT short daemon (void *job, M_INTERFACE *mi, char *address)
   {
   mi->logstring (20100, LOG_NORMAL, "TEST DAEMON: Daemon function called");
   return 0;
   }

They are missing the fourth parameter.  Are they in error?  The guide shows the fourth parameter.  All show "daemon" in lower-case, but mine is working (and has for a long time) with the name of that function as "DAEMON".  Of GetProcAddress(), the docs say "The spelling and case of a function name pointed to by lpProcName must be

identical to that in the EXPORTS statement of the source DLL's

module-definition (.def) file."  Do you know what's going on?  Does Mercury try for both the upper-case and lower-case names?

&lt;p&gt;The DDK samples, daemon1.c and daemon2.c, one single-instance, one global, both show:&lt;/p&gt;&lt;p&gt;DAEMONEXPORT short daemon (void *job, M_INTERFACE *mi, char *address) &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp; mi-&amp;gt;logstring (20100, LOG_NORMAL, &quot;TEST DAEMON: Daemon function called&quot;); &amp;nbsp;&amp;nbsp; return 0; &amp;nbsp;&amp;nbsp; } &lt;/p&gt;&lt;p&gt;They are missing the fourth parameter.&amp;nbsp; Are they in error?&amp;nbsp; The guide shows the fourth parameter.&amp;nbsp; All show &quot;daemon&quot; in lower-case, but mine is working (and has for a long time) with the name of that function as &quot;DAEMON&quot;.&amp;nbsp; Of GetProcAddress(), the docs say &quot;The spelling and case of a function name pointed to by &lt;i&gt;lpProcName&lt;/i&gt; must be identical to that in the &lt;b&gt;EXPORTS&lt;/b&gt; statement of the source DLL&#039;s module-definition (.def) file.&quot;&amp;nbsp; Do you know what&#039;s going on?&amp;nbsp; Does Mercury try for both the upper-case and lower-case names? &lt;/p&gt;

I haven't tested using names of exported functions uppercase as they are lowercase in the documentation (and I don't think I will), but if it works it would seem that Mercury tries it both ways. 

As for  the parameter "char *parameter" I've used it with the startup function only, but I always include it in the declaration of the daemon function anyway. I'm not sure what the effects are if a parameter is left out this way, though. The DLL will obviously ignore it as the library code doesn't know it exists. The calling program will presumably still put the parameter on the stack, and should clear it from the stack when the function returns.

/Rolf 

&lt;p&gt;I haven&#039;t tested using names of exported functions uppercase as they are lowercase in the documentation (and I don&#039;t think I will), but if it works it would seem that Mercury tries it both ways.&amp;nbsp;&lt;/p&gt;&lt;p&gt;As for &amp;nbsp;the parameter &quot;char *parameter&quot; I&#039;ve used it with the startup function only, but I always include it in the declaration of the daemon function anyway. I&#039;m not sure what the effects are if a parameter is left out this way, though. The DLL will obviously ignore it as the library code doesn&#039;t know it exists. The calling program will presumably still put the parameter on the stack, and should clear it from the stack when the function returns.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

[quote user="Rolf Lindby"]

I haven't tested using names of exported functions uppercase as they are lowercase in the documentation (and I don't think I will), but if it works it would seem that Mercury tries it both ways. 

As for  the parameter "char *parameter" I've used it with the startup function only, but I always include it in the declaration of the daemon function anyway. I'm not sure what the effects are if a parameter is left out this way, though. The DLL will obviously ignore it as the library code doesn't know it exists. The calling program will presumably still put the parameter on the stack, and should clear it from the stack when the function returns.

/Rolf 

[/quote]

I'm using "char *parameter" in DAEMON(), supplying it in DAEMON.INI after a semicolon ... it works.  I suppose the caller (Mercury) would only put it on the stack if it expected DAEMON() to take a fourth argument.  So I still wonder about the two DDK examples.  Perhaps it's OK to just omit it if it won't be used and the caller is going to clean up. I learned "C" as a vehicle to get to the Win32 API, so maybe I missed some basic "C" stuff.

At least I have quieted the complaints so I'm happy for now.  Thanks for you input Rolf.

 P.S. As far as I can tell, it's either Outlook or the MS Exchange server that's providing the info "From: Maiser@... on behalf of ...".  That's not the real "From:" header in the emails.  There's no real consequence (other than upsetting folks when they see it) because replies to such emails go to the "on behalf of" person (who is also named in the real "From:" header).  All that said, perhaps the behavior isn't so bad; Maiser really was the sender, and did send the message on behalf of the person who submitted it to the list.

Cheers!

 

[quote user=&quot;Rolf Lindby&quot;]&lt;p&gt;I haven&#039;t tested using names of exported functions uppercase as they are lowercase in the documentation (and I don&#039;t think I will), but if it works it would seem that Mercury tries it both ways.&amp;nbsp;&lt;/p&gt;&lt;p&gt;As for &amp;nbsp;the parameter &quot;char *parameter&quot; I&#039;ve used it with the startup function only, but I always include it in the declaration of the daemon function anyway. I&#039;m not sure what the effects are if a parameter is left out this way, though. The DLL will obviously ignore it as the library code doesn&#039;t know it exists. The calling program will presumably still put the parameter on the stack, and should clear it from the stack when the function returns.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;I&#039;m using &quot;char *parameter&quot; in DAEMON(), supplying it in DAEMON.INI after a semicolon ... it works.&amp;nbsp; I suppose the caller (Mercury) would only put it on the stack if it expected DAEMON() to take a fourth argument.&amp;nbsp; So I still wonder about the two DDK examples.&amp;nbsp; Perhaps it&#039;s OK to just omit it if it won&#039;t be used and the caller is going to clean up. I learned &quot;C&quot; as a vehicle to get to the Win32 API, so maybe I missed some basic &quot;C&quot; stuff. &lt;/p&gt;&lt;p&gt;At least I have quieted the complaints so I&#039;m happy for now.&amp;nbsp; Thanks for you input Rolf.&lt;/p&gt;&lt;p&gt;&amp;nbsp;P.S. As far as I can tell, it&#039;s either Outlook or the MS Exchange server that&#039;s providing the info &quot;From: Maiser@... on behalf of ...&quot;.&amp;nbsp; That&#039;s not the real &quot;From:&quot; header in the emails.&amp;nbsp; There&#039;s no real consequence (other than upsetting folks when they see it) because replies to such emails go to the &quot;on behalf of&quot; person (who is also named in the real &quot;From:&quot; header).&amp;nbsp; All that said, perhaps the behavior isn&#039;t so bad; Maiser really was the sender, and did send the message on behalf of the person who submitted it to the list.&lt;/p&gt;&lt;p&gt;Cheers! &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

I'd really like to bring this daemon up-to-snuff and do everything the approved way.  But I find that the DAEMON.H that came with Mercury v4.6 does not mention several of the functions I'd need.  For example it does not declare ji_access_job_data() and edit_message_headers().  I could use the newer DAEMON.H from the DDK but ... big question ... are those functions (and perhaps others which I'll need) actually implemented in Mercury v4.6?

&lt;p&gt;I&#039;d really like to bring this daemon up-to-snuff and do everything the approved way.&amp;nbsp; But I find that the DAEMON.H that came with Mercury v4.6 does not mention several of the functions I&#039;d need.&amp;nbsp; For example it does not declare ji_access_job_data() and edit_message_headers().&amp;nbsp; I could use the newer DAEMON.H from the DDK but ... big question ... are those functions (and perhaps others which I&#039;ll need) actually implemented in Mercury v4.6? &lt;/p&gt;

The new Daemon Developer Kit was released in June 2008, around the same time as Mercury 4.61, so it should be OK. It might be a good idea to update Mercury anyway though.

/Rolf 

&lt;p&gt;The new Daemon Developer Kit was released in June 2008, around the same time as Mercury 4.61, so it should be OK. It might be a good idea to update Mercury anyway though.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

[quote user="Rolf Lindby"]

The new Daemon Developer Kit was released in June 2008, around the same time as Mercury 4.61, so it should be OK. It might be a good idea to update Mercury anyway though.

/Rolf 

[/quote]

Yes, I was thinking of that but I get a little nervous updating something that's working well.  When I moved from XP to Win7, nothing that concerns Mercury/32 changed ... Mercury's home remained d:\Mercury and the mail drop remained e:\Mail.  Win7 went on C:.  In Win7, I just started Mercury from its old home and all worked fine.  So I'm considering a simple in-place upgrade figuring that will preserve everything.  I'd make a back-up of d:\Mercury just in case.  Does that sound like a good strategy?  Do you think it will require any further configuring?

Thanks!

[quote user=&quot;Rolf Lindby&quot;]&lt;p&gt;The new Daemon Developer Kit was released in June 2008, around the same time as Mercury 4.61, so it should be OK. It might be a good idea to update Mercury anyway though.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;Yes, I was thinking of that but I get a little nervous updating something that&#039;s working well.&amp;nbsp; When I moved from XP to Win7, nothing that concerns Mercury/32 changed ... Mercury&#039;s home remained d:\Mercury and the mail drop remained e:\Mail.&amp;nbsp; Win7 went on C:.&amp;nbsp; In Win7, I just started Mercury from its old home and all worked fine.&amp;nbsp; So I&#039;m considering a simple in-place upgrade figuring that will preserve everything.&amp;nbsp; I&#039;d make a back-up of d:\Mercury just in case.&amp;nbsp; Does that sound like a good strategy?&amp;nbsp; Do you think it will require any further configuring?&lt;/p&gt;&lt;p&gt;Thanks! &lt;/p&gt;

[quote user="Vincent Fatica"]

Yes, I was thinking of that but I get a little nervous updating something that's working well.  When I moved from XP to Win7, nothing that concerns Mercury/32 changed ... Mercury's home remained d:\Mercury and the mail drop remained e:\Mail.  Win7 went on C:.  In Win7, I just started Mercury from its old home and all worked fine.  So I'm considering a simple in-place upgrade figuring that will preserve everything.  I'd make a back-up of d:\Mercury just in case.  Does that sound like a good strategy?  Do you think it will require any further configuring?

Thanks!

[/quote]

One concern.  v4.61 was never formally "installed" on Win7 and did not use InstallShield.  Do you think this will cause any problems upgrading in-place?

Thanks.

 

[quote user=&quot;Vincent Fatica&quot;]&lt;p&gt;Yes, I was thinking of that but I get a little nervous updating something that&#039;s working well.&amp;nbsp; When I moved from XP to Win7, nothing that concerns Mercury/32 changed ... Mercury&#039;s home remained d:\Mercury and the mail drop remained e:\Mail.&amp;nbsp; Win7 went on C:.&amp;nbsp; In Win7, I just started Mercury from its old home and all worked fine.&amp;nbsp; So I&#039;m considering a simple in-place upgrade figuring that will preserve everything.&amp;nbsp; I&#039;d make a back-up of d:\Mercury just in case.&amp;nbsp; Does that sound like a good strategy?&amp;nbsp; Do you think it will require any further configuring?&lt;/p&gt;&lt;p&gt;Thanks! &lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;One concern.&amp;nbsp; v4.61 was never formally &quot;installed&quot; on Win7 and did not use InstallShield.&amp;nbsp; Do you think this will cause any problems upgrading in-place?&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

Mercury won't require Windows to know any details about the program unless it's run as a service, so no special installation procedure is required.

Making a backup of the main Mercury folder before doing an update is always a good idea, just to be on the safe side. I've never had a problem with an update, though. There are some new settings that have been added since v4.6 so you should probably have a look at the configuration, but it should run nicely without any changes.

/Rolf 

&lt;p&gt;Mercury won&#039;t require Windows to know any details about the program unless it&#039;s run as a service, so no special installation procedure is required.&lt;/p&gt;&lt;p&gt;Making a backup of the main Mercury folder before doing an update is always a good idea, just to be on the safe side. I&#039;ve never had a problem with an update, though. There are some new settings that have been added since v4.6 so you should probably have a look at the configuration, but it should run nicely without any changes.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

[quote user="Vincent Fatica"]P.S. As far as I can tell, it's either Outlook or the MS Exchange server that's providing the info "From: Maiser@... on behalf of ...".  That's not the real "From:" header in the emails.  There's no real consequence (other than upsetting folks when they see it) because replies to such emails go to the "on behalf of" person (who is also named in the real "From:" header).  All that said, perhaps the behavior isn't so bad; Maiser really was the sender, and did send the message on behalf of the person who submitted it to the list.[/quote]

I disagree that Outlook's behaviour is totally neutral.  I had considerable difficulty on my lists with some members' replies going to (and being rejected by) maiser.

I now suppress the outgoing 'Sender: Maiser@listname' header in a policy.  On a low volume mailserver that works fine, with busier servers a daemon may be better.

&lt;P&gt;[quote user=&quot;Vincent Fatica&quot;]P.S. As far as I can tell, it&#039;s either Outlook or the MS Exchange server that&#039;s providing the info &quot;From: Maiser@... on behalf of ...&quot;.&amp;nbsp; That&#039;s not the real &quot;From:&quot; header in the emails.&amp;nbsp; There&#039;s no real consequence (other than upsetting folks when they see it) because replies to such emails go to the &quot;on behalf of&quot; person (who is also named in the real &quot;From:&quot; header).&amp;nbsp; All that said, perhaps the behavior isn&#039;t so bad; Maiser really was the sender, and did send the message on behalf of the person who submitted it to the list.[/quote]&lt;/P&gt; &lt;P&gt;I disagree&amp;nbsp;that Outlook&#039;s behaviour is totally neutral.&amp;nbsp; I had considerable difficulty on&amp;nbsp;my lists with some members&#039; replies going to (and being rejected by) maiser.&lt;/P&gt; &lt;P&gt;I now suppress the outgoing &#039;Sender: &lt;A href=&quot;mailto:Maiser@listname&#039;&quot;&gt;Maiser@listname&#039;&lt;/A&gt; header in a policy.&amp;nbsp; On a low volume mailserver that works fine, with busier&amp;nbsp;servers a daemon may be better.&lt;/P&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft