Re: Multiple sender addresses to the same roundup user

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
On Thu, Aug 29, 2013 at 03:47:01PM +0200, y kmm wrote:
> As my previous answer to Peter I had not considered this option, would you
> suggest it instead of trying to manipulating it with an auditor?

thats too late. Roundups mail gateway checks if an email is allowed to
submit. Only *after* that check auditors are called.

> If I understand correctly how roundup works, when a new email is downloaded
> by the roundup-mailgw script, a set of new objects are created (one user,
> one issue, one message and one or more files). However it seems to me that
> each object creation is somewhat atomic and thus completely oblivious about
> the other elements that could be part of the same "trasaction".

It is all done in a database transaction. So if you're using a
relational database backend (mysql, postgreSQL, sqlite) this *is*
atomic.

> So for example, if I have an auditor on the user, It will be called each
> time a user is being created, and I have no way to know what is the context
> for this user (for example if it is part of an email processing or it is
> simpy the creation of a new user from the web interface)

In a way, yes. But you can follow links (or multilinks) to other
objects. For example when you are called with an issue auditor you can
already access the messages and files of that issue (and the user even
if it has been created in this transaction). For an example what you can
do you may want to look into the nosyreaction.py file in the classic
tracker. This contains (contrary to the name which suggests it only
contains a reactor) an auditor that updates the nosy list. For this it
looks through the messages of the issue.

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: [email protected]
allmenda.com member                     email: [email protected]

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.