FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » NNTP mung email addresses
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
NNTP mung email addresses [message #14245] Tue, 11 November 2003 04:44 Go to next message
hy2jinxnc is currently offline  hy2jinxnc   United States
Messages: 25
Registered: October 2003
Location: NC
Karma: 0
Junior Member

The users of my forum asked to have their email addresses munged in some way when their posts appeared on the NNTP server. While I don't claim this to be the best way to do it Smile , it is what I came up with on the fly..
Address was:
Name <email(at)domain(dot)com>

Changes to:
Name <email_at_domain_dot_com_fixme_>


But only on the NNTP side. Of course a good harvester could still strip the address out, but it calms my users.

Just throwing it out in case someone else may want it.

Patch is based on 2.6.0RC4.
Re: NNTP mung email addresses [message #14280 is a reply to message #14245] Tue, 11 November 2003 18:56 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I've added a similar feature to RC5.

FUDforum Core Developer
Re: NNTP mung email addresses [message #14444 is a reply to message #14280] Fri, 14 November 2003 04:48 Go to previous messageGo to next message
hy2jinxnc is currently offline  hy2jinxnc   United States
Messages: 25
Registered: October 2003
Location: NC
Karma: 0
Junior Member

One problem with your implementation that I see in RC5... If a name, not the email address, contains a "." or a "@" then the name is messed up as well. For example:
F. Name <namef(at)domain(dot)com>

becomes:
F[dot] Name <namef[at]domain[dot]com>

Hence the "find the email address only" part I borrowed and used in my munging. What I used was probably overkill because the post is coming from FUD and FUD will format the email address a certain way.
Re: NNTP mung email addresses [message #14453 is a reply to message #14444] Fri, 14 November 2003 14:38 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
That's not a problem, IMO.

FUDforum Core Developer
Re: NNTP mung email addresses [message #14470 is a reply to message #14453] Fri, 14 November 2003 20:00 Go to previous message
hy2jinxnc is currently offline  hy2jinxnc   United States
Messages: 25
Registered: October 2003
Location: NC
Karma: 0
Junior Member

It's unprofessional looking, IMO. No matter, I'll fix my own since there are other personal hacks I've add to nntp.inc.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Use .htaccess for authentication
Next Topic: make the bold tag operate like the image tag
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 08:43:31 GMT 2024

Total time taken to generate the page: 0.04860 seconds