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

Home » FUDforum » How To » maillist.php: munging email addresses and hiding email addresses of newly created users..
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18610] Sun, 30 May 2004 20:21 Go to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
Hi gang,

Having another go at FUD Forum. I just started importing a mailman mailing list archive into a FUD forum and came across two issues:

1) email addresses within posts are not being munged - this was being done nicely in my other archiving system. Any way we can do this without running the messages through another parser? Would be desirable to be able to munge email addresses on a per-list basis.

2) users created automatically via the maillist.php script have their email address publicly visible by default. I seem to recall having changed this in the past but don't remember where or how.

So far very happy with the progress FUD has made since I last tried this.. maybe it's time for me to finally take the plunge! Smile

Best wishes,

Tobias


Kabissa - Space for change in Africa
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18611 is a reply to message #18610] Sun, 30 May 2004 20:33 Go to previous messageGo to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
Hi,

Another issue I just noticed with this import is that the date used to measure the daily average number of posts by users seems to be the date the script was run, not the date the user wrote the message. I've now got many users with lines like this in their profile:

59 Messages(s) (59 average messages per day)

Cheers,

Tobias


Kabissa - Space for change in Africa
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18612 is a reply to message #18611] Mon, 31 May 2004 13:26 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
The e-mail visibility is something that I've just fixed, patch below:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=2810

The e-mail mangling is already being done by encoding parts of the mail using html entities. This makes it look normal and @ the same time protect it against most e-mail scanning bots.

The message averages have been fixed, the problem was incorrect setting of the registration date, which should've been using the timestamp of the message instead of the current date, patch is below.
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=2811


FUDforum Core Developer
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18614 is a reply to message #18612] Mon, 31 May 2004 15:18 Go to previous messageGo to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
Hi - Many thanks as always for your quick response. I'll try out your fixes. In the meantime, are you sure the addresses within email posts are being mangled? I can totally see them, click on them.. they are "mailto:" links. Or are you referring to the email addresses listed in the profiles?

Cheers,

Tobias


Kabissa - Space for change in Africa
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18615 is a reply to message #18614] Mon, 31 May 2004 15:19 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
The whole idea is that they look normal, if you actually look @ the source code you'll see that parts of the e-mail are replaced with HTML entities.

FUDforum Core Developer
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18628 is a reply to message #18615] Mon, 31 May 2004 23:25 Go to previous messageGo to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
Hi Ilia,

Looks like the munging feature you're talking about is not supported by Firefox, the browser I'm using. Can you make this somehow configurable?

Meanwhile, I'm back on another problem I had resolved last time and can't get to work again: setting up a default forum and having all unconfigured mailing list messages go into there. Here's the thread on how you helped me last time: http://fudforum.org/forum/index.php?t=msg&goto=11079&#msg_11079

Would be grateful if you could help me to get this working on the latest version of the maillist.php script. Ideally, this would be a configurable option in the maillist.php script or in the FUD admin interface.

Cheers,

Tobias


Kabissa - Space for change in Africa
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18629 is a reply to message #18628] Mon, 31 May 2004 23:47 Go to previous messageGo to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
Hi Ilia,

OK, I've downloaded the latest version of maillist.php from cvs, and have deduced a couple of things:

1) it seems to me I was asking for the wrong thing before with the default forum - what I need is for the messages to go into a default forum when the list address is not found in the database. The hack you gave me last time works only if there was no list name or list id number specified at all.

2) I am realizing what I'd really like is for maillist.php to actually create a new forum (in a hidden category) when it encounters a message that has a list address that does not exist already in FUD. Is this something that would be more widely useful and could be implemented?

I'm loving maillist.php by the way - this is a great script! Smile

Best wishes,

Tobias


Kabissa - Space for change in Africa
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18630 is a reply to message #18629] Tue, 01 June 2004 00:01 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 have no plans to add forum creating functionality to maillist script.

FUDforum Core Developer
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18631 is a reply to message #18630] Tue, 01 June 2004 00:22 Go to previous messageGo to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
Ok - I can appreciate that you don't want to add forum-adding functionality. No problem there. Smile Does seem a little like mission creep.

Can you advise me on how to get the default forum working?

Many thanks,

Tobias


Kabissa - Space for change in Africa
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18632 is a reply to message #18631] Tue, 01 June 2004 00:31 Go to previous messageGo to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
Sorry for wasting time - I just had a closer look at the script and was able to fix it myself.

At line 384, I made this change:

        if (!$mlist) {
//              exit('Invalid list identifier');
                $mlist = db_sab('SELECT * FROM '.sql_p.'mlist WHERE id=2');

        }


It now appears to be working great.

Cheers,

Tobias


Kabissa - Space for change in Africa
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18634 is a reply to message #18611] Tue, 01 June 2004 01:24 Go to previous messageGo to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
Hi Ilia,

It seems to me that the users that are automatically added shouldn't even be visible until they've come into FUD and set up their profile. Can you point out to me where I can customize the default settings for automatically added users?

Cheers,

Tobias


Kabissa - Space for change in Africa
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18635 is a reply to message #18634] Tue, 01 June 2004 01:40 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
users_reg.inc.t line #46, which sets up the default option bitmasks for the user.

FUDforum Core Developer
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18637 is a reply to message #18635] Tue, 01 June 2004 02:04 Go to previous messageGo to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
thanks for this - am I right in assuming from the explanation in fud_users.tbl (below) that the option bitmasks are basically added together to arrive at the number in the options field? So I subtract 32768 from the bitmap?

Cheers,

Tobias

Quote:


# Opts
# 1 display_email (ON/OFF)
# 2 notify (ON/OFF)
# 4 notify_method (EMAIL/ICQ)
# 8 ignore_admin (ON/OFF)
# 16 email_messages (ON/OFF)
# 32 pm_messages (ON/OFF)
# 64 pm_notify (ON/OFF)
# 128 default_topic_view (MSG/TREE)
# 256 default_message_view (MSG/TREE)
# 512 gender (UNSPECIFIED)
# 1024 gender (MALE/FEMALE)
# 2048 append_sig (ON/OFF)
# 4096 show_sigs (ON/OFF)
# 8192 show_avatars (ON/OFF)
# 16384 show_im (ON/OFF)
# 32768 invisible_mode (ON/OFF)
# 65536 blocked (ON/OFF)
# 131072 email_conf (ON/OFF)
# 262144 coppa (ON/OFF)
# 524288 is_mod (ON/OFF)
# 1048576 is_admin (ON/OFF)
# 2097152 acc_status (P/A)
# 4194304 avatar_approved (No Avatar)
# 8388608 avatar_approved YES
# 16777216 avatar_approved NO
# 33554432 admin disabled PM (ON/OFF)
# 67108864 admin disabled signature (ON/OFF)
# 134217728 do not send e-mail notifications (ON/OFF)



Kabissa - Space for change in Africa
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18640 is a reply to message #18637] Tue, 01 June 2004 12:40 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
If you want to make the user hidden, you add the number to the bitmask otherwise subtract it.

FUDforum Core Developer
Re: maillist.php: munging email addresses and hiding email addresses of newly created users.. [message #18642 is a reply to message #18640] Tue, 01 June 2004 13:01 Go to previous message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
gotcha - many thanks.

best wishes,

tobias


Kabissa - Space for change in Africa
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Group management problem.
Next Topic: Is this possible?
Goto Forum:
  

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

Current Time: Sat Nov 23 01:21:19 GMT 2024

Total time taken to generate the page: 0.02791 seconds