@@ -245,13 +245,6 @@ def hold_for_approval(mlist, msg, msgdata, exc):
245245 'subject' : usersubject ,
246246 'admindb_url' : mlist .GetScriptURL ('admindb' , absolute = 1 ),
247247 }
248- # We may want to send a notification to the original sender too
249- fromusenet = msgdata .get ('fromusenet' )
250- # Since we're sending two messages, which may potentially be in different
251- # languages (the user's preferred and the list's preferred for the admin),
252- # we need to play some i18n games here. Since the current language
253- # context ought to be set up for the user, let's craft his message first.
254-
255248 # Ensure the list is locked before calling pend_new
256249 if not mlist .Locked ():
257250 mlist .Lock ()
@@ -260,8 +253,15 @@ def hold_for_approval(mlist, msg, msgdata, exc):
260253 finally :
261254 mlist .Unlock ()
262255 else :
263- cookie = mlist .pend_new (Pending .HELD_MESSAGE , id )
256+ cookie = mlist .pend_new (Pending .HELD_MESSAGE , id )
264257
258+ # We may want to send a notification to the original sender too
259+ fromusenet = msgdata .get ('fromusenet' )
260+ # Since we're sending two messages, which may potentially be in different
261+ # languages (the user's preferred and the list's preferred for the admin),
262+ # we need to play some i18n games here. Since the current language
263+ # context ought to be set up for the user, let's craft his message first.
264+
265265 if not fromusenet and ackp (msg ) and mlist .respond_to_post_requests and \
266266 mlist .autorespondToSender (sender , mlist .getMemberLanguage (sender )):
267267 # Get a confirmation cookie
0 commit comments