Set multiple email to a jtrac user

View: New views
4 Messages — Rating Filter:   Alert me  

Parent Message unknown Set multiple email to a jtrac user

by Eric Bellard-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
In order to adapt jtrac to my company I'd like to add more than one email to a single jtrac user.
For us it's particularly useful during a new item creation: the item is assigned to a un-personified user with multiple email
=> everyone in the team is informed, someone take the item and the item is assigned to him.

- In the user creation/edit windows: multiple emails are set (separated with a comma, no space)
- I've modified the MailSender.java class to manage multiple email:

   + in the send mail method i've modified the set TO part:
            // set TO           
            if (item.getAssignedTo() != null) {
                setTos(helper, item.getAssignedTo().getEmail());
            } else {
                setTos(helper, item.getLoggedBy().getEmail());
            }
 
    + I've added the following setTos method to handle multiple email in set TO

    /**
     * Set multiple recipient in a message. The multiple recipient are separated
     * with a comma.
     *
     * @param helper
     *            spring mime message helper
     * @param s
     *            recipients
     * @throws MessagingException
     */
    public final static void setTos(MimeMessageHelper helper, String s)
            throws Exception {
        if (s == null || s.equals("") || !s.contains(",")) {
            helper.setTo(s);
        } else {
            StringTokenizer st = new StringTokenizer(s, ",");
            while (st.hasMoreTokens()) {
                helper.addTo(st.nextToken());
            }

        }
    }
 

Maybe you could add something like this in the main version.

Regards,

--
Eric Bellard

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
j-trac-users mailing list
j-trac-users@...
https://lists.sourceforge.net/lists/listinfo/j-trac-users

Re: Set multiple email to a jtrac user

by TimP-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 05 March 2008 16:31, Eric Bellard wrote:
> Hi,
> In order to adapt jtrac to my company I'd like to add more than one email
> to a single jtrac user.
> For us it's particularly useful during a new item creation: the item is
> assigned to a un-personified user with multiple email
> => everyone in the team is informed, someone take the item and the item is
> assigned to him.

[snip]
>
> Maybe you could add something like this in the main version.
>
> Regards,

Would not the same requirement be easier handled by using a group alias
email address?

The item is initially assigned to the group,
all members of which get a copy of the email,
one can then 'take' the item.

I think this works better than breaking the one to one relationship between
actors and email addresses.

yours
TimP

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
j-trac-users mailing list
j-trac-users@...
https://lists.sourceforge.net/lists/listinfo/j-trac-users

Re: Set multiple email to a jtrac user

by Saurb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Using a group email ID is the way to go. Create a dummy user with a group
email ID and use it as an assignment target.


-----Original Message-----
From: j-trac-users-bounces@...
[mailto:j-trac-users-bounces@...] On Behalf Of TimP
Sent: Thursday, March 06, 2008 1:15 AM
To: JTrac users mailing-list
Subject: Re: [jtrac-users] Set multiple email to a jtrac user

On Wednesday 05 March 2008 16:31, Eric Bellard wrote:
> Hi,
> In order to adapt jtrac to my company I'd like to add more than one email
> to a single jtrac user.
> For us it's particularly useful during a new item creation: the item is
> assigned to a un-personified user with multiple email
> => everyone in the team is informed, someone take the item and the item is
> assigned to him.

[snip]
>
> Maybe you could add something like this in the main version.
>
> Regards,

Would not the same requirement be easier handled by using a group alias
email address?

The item is initially assigned to the group,
all members of which get a copy of the email,
one can then 'take' the item.

I think this works better than breaking the one to one relationship between
actors and email addresses.

yours
TimP

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
j-trac-users mailing list
j-trac-users@...
https://lists.sourceforge.net/lists/listinfo/j-trac-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
j-trac-users mailing list
j-trac-users@...
https://lists.sourceforge.net/lists/listinfo/j-trac-users

Re: Set multiple email to a jtrac user

by Eric Bellard-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your answers.
The problem is that group email are not allowed in my organisation.
I still think a functionality like I describe have to be included in jtrac.
Regards,

On Thu, Mar 6, 2008 at 5:42 AM, Saurabh Banerjee <saurabh.banerjee@...> wrote:
Using a group email ID is the way to go. Create a dummy user with a group
email ID and use it as an assignment target.


-----Original Message-----
From: j-trac-users-bounces@...
[mailto:j-trac-users-bounces@...] On Behalf Of TimP
Sent: Thursday, March 06, 2008 1:15 AM
To: JTrac users mailing-list
Subject: Re: [jtrac-users] Set multiple email to a jtrac user

On Wednesday 05 March 2008 16:31, Eric Bellard wrote:
> Hi,
> In order to adapt jtrac to my company I'd like to add more than one email
> to a single jtrac user.
> For us it's particularly useful during a new item creation: the item is
> assigned to a un-personified user with multiple email
> => everyone in the team is informed, someone take the item and the item is
> assigned to him.

[snip]
>
> Maybe you could add something like this in the main version.
>
> Regards,

Would not the same requirement be easier handled by using a group alias
email address?

The item is initially assigned to the group,
all members of which get a copy of the email,
one can then 'take' the item.

I think this works better than breaking the one to one relationship between
actors and email addresses.

yours
TimP

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
j-trac-users mailing list
j-trac-users@...
https://lists.sourceforge.net/lists/listinfo/j-trac-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
j-trac-users mailing list
j-trac-users@...
https://lists.sourceforge.net/lists/listinfo/j-trac-users




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
j-trac-users mailing list
j-trac-users@...
https://lists.sourceforge.net/lists/listinfo/j-trac-users