def _store(self, messages, response, *args, **kwargs):
contrib_messages = []<EOL>if self.user.is_authenticated():<EOL><INDENT>if not messages:<EOL><INDENT>self.backend.inbox_purge(self.user)<EOL><DEDENT>else:<EOL><INDENT>for m in messages:<EOL><INDENT>try:<EOL><INDENT>self.backend.inbox_store([self.user], m)<EOL><DEDENT>except MessageTypeNotSupported:<EOL><INDENT>contrib_messages.append(m)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>super(StorageMixin, self)._store(contrib_messages, response, *args, **kwargs)<EOL>
persistent messages are already in the database inside the 'archive',
so we can say they're already "stored".
Here we put them in the inbox, or remove from the inbox in case the
messages were iterated.

messages contains only new msgs if self.used==True
else contains both new and unread messages