[Mailman-Users] Codes
Tokio Kikuchi
tkikuchi at is.kochi-u.ac.jp
Mon Feb 21 13:07:40 CET 2005
Hi,
> I have noticed that in the section which deals with members' anonymity
> (hide/show) there are three figure codes appended to the email addresses
> of my members. I had written my PHP script to recognise that the code
> "280" meant "HIDE" and "264" meant "SHOW". Everything was working well
> until I have just noticed a code appearing which I hadn't seen before
> ("314") which is another code meaning "HIDE" as well. This was obviously
> not being recognised by my PHP code and this member's anonymity was
> being compromised (or it would have been if I had 'gone live' and wasn't
> just at the testing stage).
You should have first read Defaults.py in mailman source code:
# Bitfield for user options. See DEFAULT_NEW_MEMBER_OPTIONS above to set
# defaults for all new lists.
Digests = 0 # handled by other mechanism, doesn't need a flag.
DisableDelivery = 1 # Obsolete; use set/getDeliveryStatus()
DontReceiveOwnPosts = 2 # Non-digesters only
AcknowledgePosts = 4
DisableMime = 8 # Digesters only
ConcealSubscription = 16
SuppressPasswordReminder = 32
ReceiveNonmatchingTopics = 64
Moderate = 128
DontReceiveDuplicates = 256
You can get 'HIDE' status by taking bit-by-bit AND operation like:
>>> 280 & 16
16
>>> 264 & 16
0
>>> 314 & 16
16
--
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/
More information about the Mailman-Users
mailing list