On 1/3/20 11:21 AM, ritwik p wrote:
Line 53 in
eml_confirm.pyis: new_token, token_owner, member = ISubscriptionManager(mlist).confirm(token)
I checked the return of function
/mailman/src/interfaces/subscriptions.pywhich says -->
A 3-tuple is returned where the first element is the token hash, the second element is a
TokenOwner`, and the third element is the subscribed member. If the subscriber got subscribed immediately, the token will be None and the member will be anIMember``. If the subscription is still being held, the token will be a hash and the member will be None.
But this doesn't say anything of unsubscription??
That's exactly the issue. The code doesn't fully account for unsubscription. (And comments don't always agree with what the code actually does.)
Even if it does, the returns I'm getting are not in conjunction to what is written over there. I'm getting a token hash AS WELL AS a member which is thus raising the error.
Because that code didn't take moderation of unsubscriptions into account.