[ 
https://issues.apache.org/jira/browse/JAMES-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16305252#comment-16305252
 ] 

ASF GitHub Bot commented on JAMES-2263:
---------------------------------------

Github user chibenwa commented on the issue:

    https://github.com/apache/james-project/pull/91
  
    No problem, it is quite easy:
    
    ```
    git log path/to/file
    ```
    
    Will give you the SHA-1 identifier of the commit containing the mistake.
    
    ```
    git rebase -i master
    ```
    
    Will then allow you to rework the history of your branch.
    
    Edit that specific commit. You can do that by prefixing it by a `e` in the 
rebase view.
    
    ```
    e c785e20a7a JAMES-2263 My awesome commit
    ```
    
    Then you can reset the commit:
    
    ```
    git reset --soft HEAD~
    ```
    
    You can then remove the file you don't want to include anymore:
    
    ```
    git reset file/I/do/not/want/to/commit.txt
    ```
    
    When done, re-commit the changes:
    
    ```
    git commit -m "JAMES-2263 My awesome commit"
    ```
    
    And finish the rebase with
    
    ```
    git rebase --continue
    ```
    
    If git complains about an empty commit, perform that command to skip the 
empty commit:
    
    ```
    git rebase --skip
    ```
    
    That's maybe a lot of commands, but it ends up not that hard to  do, when 
you get the habit.


> onMailetException doesn't work even the default onMailetException="error"
> -------------------------------------------------------------------------
>
>                 Key: JAMES-2263
>                 URL: https://issues.apache.org/jira/browse/JAMES-2263
>             Project: James Server
>          Issue Type: Bug
>          Components: Matchers/Mailets (bundled), SpoolManager & Processors
>    Affects Versions: 3.0.0-beta5
>            Reporter: Taro App
>
> Tested with 3.0.1. When a mailet raises an exception, the message is not sent 
> to the processor specified with onMailetException. Only 
> onMailetException="ignore" works. Other values don't work, the even the 
> default onMailetException="error". Instead the message is somehow processed 7 
> times and then discarded.
> See org.apache.james.mailetcontainer.impl.camel.CamelProcessor.java:106, the 
> exception and the onMailetException value is passed to 
> ProcessorUtil.handleException, which then re-throw the exception. The 
> re-thrown exception is never catched and the mail object is discard at 
> org.apache.james.mailetcontainer.impl.JamesMailSpooler.java:183.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to