At 01:32 PM 11/8/01, Justin Ainsworth wrote:
>One thing that had always confused my customers, was that in the
>bulletins it would replace the To line with there username@hostname.
>And this confuses most of them.  Does this mean I have to change my
>email address to be [EMAIL PROTECTED]?  (I hated that questions,
>and it confuses so many).
>
>So, I made a slight change to pop_bull.c at line 812.  I made the
>following change.
>
>Was:
>
>sprintf(buffer,"To: %s@%s\n", p->user, p->myhost);
>
>Replaced with:
>
>sprintf(buffer,"To: [EMAIL PROTECTED]\n", p->user);
>
>
>Now this gets rid of most of the confusion.  But this is a change that I
>have to make every time I upgrade qpopper, which isn't that often, but I
>know one of these days I will forget to do it, and once again users will
>be confused.
>
>Would it be possible to make a compile time option that would cause it
>to use getdomainname() instead of gethostname() for the replacement of
>the To: line in bulletins?  It would probably require adding another
>variable to the POP object (p->mydomain).  And in pop_init.c you could
>have it set p->mydomain = getdomaindname().

Actually, try commenting out the sprintf so that no To: line is emitted at 
all. That might be best. Alternatively, change it to read "To: Bulletin 
Recipients". And your users will not be confused.

A possible run-time option would be something like 
'suppress-to-field-on-bulletins' or some such, assuming the suppression of 
the To: is indeed a sufficient fix.
-----------------------------------------------------------------
Daniel Senie                                        [EMAIL PROTECTED]
Amaranth Networks Inc.                    http://www.amaranth.com

Reply via email to