You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by se...@james.apache.org on 2004/07/22 08:40:39 UTC

[jira] Created: (JAMES-310) Redirect mailet overwrtting To: in header

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAMES-310

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAMES-310
    Summary: Redirect mailet overwrtting To: in header
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: James
 Components: 
             Matchers/Mailets (bundled)
   Versions:
             2.2.0

   Assignee: 
   Reporter: John Hornsby

    Created: Wed, 21 Jul 2004 11:40 PM
    Updated: Wed, 21 Jul 2004 11:40 PM
Environment: Win XP, java 1.4.1_05

Description:
As reported in the users mailing list.

Mail sent to:

To:  Fred
CC:  Bob

with Bob mail redirected to Bob2 in the config file, causes the mail to end up looking like this:

To: Bob2
CC: Bob

Hence it appears that the Redirect mailet is overwriting the To: instead of the CC: (in this case).

Same problem with Bob in the BCC field.

config structure:

<mailet match="RecipientIs=bob@localdomain.com" class="Redirect">
    <recipients>bob2@anotherdomain.com</recipients>
    <inline>unaltered</inline>
    <static>false</static>
</mailet>



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-310) Redirect mailet overwrtting To: in header

Posted by "Noel J. Bergman (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-310?page=comments#action_12361646 ] 

Noel J. Bergman commented on JAMES-310:
---------------------------------------

I believe that I agree, but we should also document a configuration that can provide the behavior expected by the reporter.

> Redirect mailet overwrtting To: in header
> -----------------------------------------
>
>          Key: JAMES-310
>          URL: http://issues.apache.org/jira/browse/JAMES-310
>      Project: James
>         Type: Bug
>   Components: Matchers/Mailets (bundled)
>     Versions: 2.2.0
>  Environment: Win XP, java 1.4.1_05
>     Reporter: John Hornsby
>     Assignee: Vincenzo Gianferrari Pini

>
> As reported in the users mailing list.
> Mail sent to:
> To:  Fred
> CC:  Bob
> with Bob mail redirected to Bob2 in the config file, causes the mail to end up looking like this:
> To: Bob2
> CC: Bob
> Hence it appears that the Redirect mailet is overwriting the To: instead of the CC: (in this case).
> Same problem with Bob in the BCC field.
> config structure:
> <mailet match="RecipientIs=bob@localdomain.com" class="Redirect">
>     <recipients>bob2@anotherdomain.com</recipients>
>     <inline>unaltered</inline>
>     <static>false</static>
> </mailet>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Assigned: (JAMES-310) Redirect mailet overwrtting To: in header

Posted by se...@james.apache.org.
Message:

   The following issue has been re-assigned.

   Assignee: Vincenzo Gianferrari Pini (mailto:vincenzo.gianferraripini@praxis.it)
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAMES-310

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAMES-310
    Summary: Redirect mailet overwrtting To: in header
       Type: Bug

     Status: Open
   Priority: Major

    Project: James
 Components: 
             Matchers/Mailets (bundled)
   Versions:
             2.2.0

   Assignee: Vincenzo Gianferrari Pini
   Reporter: John Hornsby

    Created: Wed, 21 Jul 2004 11:40 PM
    Updated: Thu, 22 Jul 2004 5:59 AM
Environment: Win XP, java 1.4.1_05

Description:
As reported in the users mailing list.

Mail sent to:

To:  Fred
CC:  Bob

with Bob mail redirected to Bob2 in the config file, causes the mail to end up looking like this:

To: Bob2
CC: Bob

Hence it appears that the Redirect mailet is overwriting the To: instead of the CC: (in this case).

Same problem with Bob in the BCC field.

config structure:

<mailet match="RecipientIs=bob@localdomain.com" class="Redirect">
    <recipients>bob2@anotherdomain.com</recipients>
    <inline>unaltered</inline>
    <static>false</static>
</mailet>



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-310) Redirect mailet overwrtting To: in header

Posted by "Danny Angus (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-310?page=comments#action_12362614 ] 

Danny Angus commented on JAMES-310:
-----------------------------------

If the users requirement can be met by the software as is at best its a documentation issue. 
I say close this defect.

> Redirect mailet overwrtting To: in header
> -----------------------------------------
>
>          Key: JAMES-310
>          URL: http://issues.apache.org/jira/browse/JAMES-310
>      Project: James
>         Type: Bug
>   Components: Matchers/Mailets (bundled)
>     Versions: 2.2.0
>  Environment: Win XP, java 1.4.1_05
>     Reporter: John Hornsby
>     Assignee: Vincenzo Gianferrari Pini

>
> As reported in the users mailing list.
> Mail sent to:
> To:  Fred
> CC:  Bob
> with Bob mail redirected to Bob2 in the config file, causes the mail to end up looking like this:
> To: Bob2
> CC: Bob
> Hence it appears that the Redirect mailet is overwriting the To: instead of the CC: (in this case).
> Same problem with Bob in the BCC field.
> config structure:
> <mailet match="RecipientIs=bob@localdomain.com" class="Redirect">
>     <recipients>bob2@anotherdomain.com</recipients>
>     <inline>unaltered</inline>
>     <static>false</static>
> </mailet>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-310) Redirect mailet overwrtting To: in header

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-310?page=comments#action_12361617 ] 

Stefano Bagnara commented on JAMES-310:
---------------------------------------

I would like to close this for 2.3.0: any update on the comments?
The 2.2.0 behaviour seems to be more correct, to me.
I will close this as "invalid" if you agree.


> Redirect mailet overwrtting To: in header
> -----------------------------------------
>
>          Key: JAMES-310
>          URL: http://issues.apache.org/jira/browse/JAMES-310
>      Project: James
>         Type: Bug
>   Components: Matchers/Mailets (bundled)
>     Versions: 2.2.0
>  Environment: Win XP, java 1.4.1_05
>     Reporter: John Hornsby
>     Assignee: Vincenzo Gianferrari Pini

>
> As reported in the users mailing list.
> Mail sent to:
> To:  Fred
> CC:  Bob
> with Bob mail redirected to Bob2 in the config file, causes the mail to end up looking like this:
> To: Bob2
> CC: Bob
> Hence it appears that the Redirect mailet is overwriting the To: instead of the CC: (in this case).
> Same problem with Bob in the BCC field.
> config structure:
> <mailet match="RecipientIs=bob@localdomain.com" class="Redirect">
>     <recipients>bob2@anotherdomain.com</recipients>
>     <inline>unaltered</inline>
>     <static>false</static>
> </mailet>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-310) Redirect mailet overwrtting To: in header

Posted by "Vincenzo Gianferrari Pini (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-310?page=comments#action_12362315 ] 

Vincenzo Gianferrari Pini commented on JAMES-310:
-------------------------------------------------

I still believe that the right behaviour is the current one.

To get the behaviour expected by the reporter both the following entries could be used:

<mailet match="RecipientIs=bob@localdomain.com" class="Redirect">
    <recipients>bob2@anotherdomain.com</recipients>
    <to>unaltered</to>
    <inline>unaltered</inline>
</mailet>

even better:

<mailet match="RecipientIs=bob@localdomain.com" class="Resend">
    <recipients>bob2@anotherdomain.com</recipients>
</mailet>

Btw, <static> can be false (default value).

> Redirect mailet overwrtting To: in header
> -----------------------------------------
>
>          Key: JAMES-310
>          URL: http://issues.apache.org/jira/browse/JAMES-310
>      Project: James
>         Type: Bug
>   Components: Matchers/Mailets (bundled)
>     Versions: 2.2.0
>  Environment: Win XP, java 1.4.1_05
>     Reporter: John Hornsby
>     Assignee: Vincenzo Gianferrari Pini

>
> As reported in the users mailing list.
> Mail sent to:
> To:  Fred
> CC:  Bob
> with Bob mail redirected to Bob2 in the config file, causes the mail to end up looking like this:
> To: Bob2
> CC: Bob
> Hence it appears that the Redirect mailet is overwriting the To: instead of the CC: (in this case).
> Same problem with Bob in the BCC field.
> config structure:
> <mailet match="RecipientIs=bob@localdomain.com" class="Redirect">
>     <recipients>bob2@anotherdomain.com</recipients>
>     <inline>unaltered</inline>
>     <static>false</static>
> </mailet>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-310) Redirect mailet overwrtting To: in header

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-310?page=comments#action_12361649 ] 

Stefano Bagnara commented on JAMES-310:
---------------------------------------

I don't use this mailet often but maybe the Resend mailet can do what the reporter asked.
Resend is much more flexible than Redirect.
I haven't tested this but looking at the comments I would say that Resend behaviour when both recipients and <inline>unaltered</inline> are specified is to not alter the To: header.


> Redirect mailet overwrtting To: in header
> -----------------------------------------
>
>          Key: JAMES-310
>          URL: http://issues.apache.org/jira/browse/JAMES-310
>      Project: James
>         Type: Bug
>   Components: Matchers/Mailets (bundled)
>     Versions: 2.2.0
>  Environment: Win XP, java 1.4.1_05
>     Reporter: John Hornsby
>     Assignee: Vincenzo Gianferrari Pini

>
> As reported in the users mailing list.
> Mail sent to:
> To:  Fred
> CC:  Bob
> with Bob mail redirected to Bob2 in the config file, causes the mail to end up looking like this:
> To: Bob2
> CC: Bob
> Hence it appears that the Redirect mailet is overwriting the To: instead of the CC: (in this case).
> Same problem with Bob in the BCC field.
> config structure:
> <mailet match="RecipientIs=bob@localdomain.com" class="Redirect">
>     <recipients>bob2@anotherdomain.com</recipients>
>     <inline>unaltered</inline>
>     <static>false</static>
> </mailet>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Closed: (JAMES-310) Redirect mailet overwrtting To: in header

Posted by "Vincenzo Gianferrari Pini (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-310?page=all ]
     
Vincenzo Gianferrari Pini closed JAMES-310:
-------------------------------------------

    Resolution: Fixed

> Redirect mailet overwrtting To: in header
> -----------------------------------------
>
>          Key: JAMES-310
>          URL: http://issues.apache.org/jira/browse/JAMES-310
>      Project: James
>         Type: Bug

>   Components: Matchers/Mailets (bundled)
>     Versions: 2.2.0
>  Environment: Win XP, java 1.4.1_05
>     Reporter: John Hornsby
>     Assignee: Vincenzo Gianferrari Pini

>
> As reported in the users mailing list.
> Mail sent to:
> To:  Fred
> CC:  Bob
> with Bob mail redirected to Bob2 in the config file, causes the mail to end up looking like this:
> To: Bob2
> CC: Bob
> Hence it appears that the Redirect mailet is overwriting the To: instead of the CC: (in this case).
> Same problem with Bob in the BCC field.
> config structure:
> <mailet match="RecipientIs=bob@localdomain.com" class="Redirect">
>     <recipients>bob2@anotherdomain.com</recipients>
>     <inline>unaltered</inline>
>     <static>false</static>
> </mailet>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-310) Redirect mailet overwrtting To: in header

Posted by se...@james.apache.org.
The following comment has been added to this issue:

     Author: Vincenzo Gianferrari Pini
    Created: Thu, 22 Jul 2004 6:01 AM
       Body:
The "bug" is in the management of <inline>unaltered</inline>: in this case in 2.1.3 the To: header was left unchanged (even if <to> was specified), instead now (if <to> is missing) it is changed ignoring the <inline> parameter. In terms of backward compatibility it is a bug, although, as the <inline> parameter refers to the message body, perhaps we should instead consider the 2.1.x behaviour a bug, and 2.2.0 correct. Waiting for comments on this before doing anything.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/JAMES-310?page=comments#action_36818

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAMES-310

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAMES-310
    Summary: Redirect mailet overwrtting To: in header
       Type: Bug

     Status: Open
   Priority: Major

    Project: James
 Components: 
             Matchers/Mailets (bundled)
   Versions:
             2.2.0

   Assignee: Vincenzo Gianferrari Pini
   Reporter: John Hornsby

    Created: Wed, 21 Jul 2004 11:40 PM
    Updated: Thu, 22 Jul 2004 6:01 AM
Environment: Win XP, java 1.4.1_05

Description:
As reported in the users mailing list.

Mail sent to:

To:  Fred
CC:  Bob

with Bob mail redirected to Bob2 in the config file, causes the mail to end up looking like this:

To: Bob2
CC: Bob

Hence it appears that the Redirect mailet is overwriting the To: instead of the CC: (in this case).

Same problem with Bob in the BCC field.

config structure:

<mailet match="RecipientIs=bob@localdomain.com" class="Redirect">
    <recipients>bob2@anotherdomain.com</recipients>
    <inline>unaltered</inline>
    <static>false</static>
</mailet>



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org