I'm trying to figure out how to extract the moderation flag for each user
in a list's config.pck file.

I know from Defaults.py that it's in the "Bitfield for user options"
section (below). But for a config.pck with the following:

'user_options': {'rclemings+20230...@gmail.com': 296,
                 'rclemings+authus...@gmail.com': 392,
                 'rclemings+authu...@gmail.com': 408,
                 'rclemi...@gmail.com': 328},

How can I tell which ones are moderated? Automatically, I mean.

I know the "moderated" value is 128, but I don't understand how (or if it's
even possible) to pull out the value for a single flag.

# 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


-- 
===============================================
Russell Clemings
<russ...@clemings.com>
===============================================
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/
Member address: arch...@jab.org

Reply via email to