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 "Markus Wiederkehr (JIRA)" <se...@james.apache.org> on 2008/11/29 13:30:45 UTC
[jira] Created: (MIME4J-87) Add a factory for creating message
bodies
Add a factory for creating message bodies
-----------------------------------------
Key: MIME4J-87
URL: https://issues.apache.org/jira/browse/MIME4J-87
Project: JAMES Mime4j
Issue Type: New Feature
Affects Versions: 0.5
Reporter: Markus Wiederkehr
Fix For: 0.6
Currently it is not possible to build a Message object out of the box. This is because the user has to write a custom class that holds the message body first. TempFileBinaryBody and TempFileTextBody are package private and there is no other alternative.
But instead of making these classes public a factory class should be added. This factory should provide methods for
creating text and binary bodies from various sources such as InputStreams or Strings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] Commented: (MIME4J-87) Add a factory for creating message
bodies
Posted by "Markus Wiederkehr (JIRA)" <se...@james.apache.org>.
[ https://issues.apache.org/jira/browse/MIME4J-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651868#action_12651868 ]
Markus Wiederkehr commented on MIME4J-87:
-----------------------------------------
I'm sorry, I usually do that, it must have slipped my mind in this case.. Just to reassure it, the ASF license was granted by posting the attachment, of course.
Markus
> Add a factory for creating message bodies
> -----------------------------------------
>
> Key: MIME4J-87
> URL: https://issues.apache.org/jira/browse/MIME4J-87
> Project: JAMES Mime4j
> Issue Type: New Feature
> Affects Versions: 0.5
> Reporter: Markus Wiederkehr
> Assignee: Robert Burrell Donkin
> Fix For: 0.6
>
> Attachments: mime4j-bodyfactory.patch
>
>
> Currently it is not possible to build a Message object out of the box. This is because the user has to write a custom class that holds the message body first. TempFileBinaryBody and TempFileTextBody are package private and there is no other alternative.
> But instead of making these classes public a factory class should be added. This factory should provide methods for
> creating text and binary bodies from various sources such as InputStreams or Strings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] Closed: (MIME4J-87) Add a factory for creating message
bodies
Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
[ https://issues.apache.org/jira/browse/MIME4J-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Burrell Donkin closed MIME4J-87.
---------------------------------------
Resolution: Fixed
Committed. Many thanks.
> Add a factory for creating message bodies
> -----------------------------------------
>
> Key: MIME4J-87
> URL: https://issues.apache.org/jira/browse/MIME4J-87
> Project: JAMES Mime4j
> Issue Type: New Feature
> Affects Versions: 0.5
> Reporter: Markus Wiederkehr
> Assignee: Robert Burrell Donkin
> Fix For: 0.6
>
> Attachments: mime4j-bodyfactory.patch
>
>
> Currently it is not possible to build a Message object out of the box. This is because the user has to write a custom class that holds the message body first. TempFileBinaryBody and TempFileTextBody are package private and there is no other alternative.
> But instead of making these classes public a factory class should be added. This factory should provide methods for
> creating text and binary bodies from various sources such as InputStreams or Strings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] Assigned: (MIME4J-87) Add a factory for creating message
bodies
Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
[ https://issues.apache.org/jira/browse/MIME4J-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Burrell Donkin reassigned MIME4J-87:
-------------------------------------------
Assignee: Robert Burrell Donkin
> Add a factory for creating message bodies
> -----------------------------------------
>
> Key: MIME4J-87
> URL: https://issues.apache.org/jira/browse/MIME4J-87
> Project: JAMES Mime4j
> Issue Type: New Feature
> Affects Versions: 0.5
> Reporter: Markus Wiederkehr
> Assignee: Robert Burrell Donkin
> Fix For: 0.6
>
> Attachments: mime4j-bodyfactory.patch
>
>
> Currently it is not possible to build a Message object out of the box. This is because the user has to write a custom class that holds the message body first. TempFileBinaryBody and TempFileTextBody are package private and there is no other alternative.
> But instead of making these classes public a factory class should be added. This factory should provide methods for
> creating text and binary bodies from various sources such as InputStreams or Strings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] Commented: (MIME4J-87) Add a factory for creating message
bodies
Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
[ https://issues.apache.org/jira/browse/MIME4J-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651867#action_12651867 ]
Robert Burrell Donkin commented on MIME4J-87:
---------------------------------------------
Hi Markus
Could you try to remember to add the standard license boilerplate to the top of any files you add.
Cheers
Robert
> Add a factory for creating message bodies
> -----------------------------------------
>
> Key: MIME4J-87
> URL: https://issues.apache.org/jira/browse/MIME4J-87
> Project: JAMES Mime4j
> Issue Type: New Feature
> Affects Versions: 0.5
> Reporter: Markus Wiederkehr
> Assignee: Robert Burrell Donkin
> Fix For: 0.6
>
> Attachments: mime4j-bodyfactory.patch
>
>
> Currently it is not possible to build a Message object out of the box. This is because the user has to write a custom class that holds the message body first. TempFileBinaryBody and TempFileTextBody are package private and there is no other alternative.
> But instead of making these classes public a factory class should be added. This factory should provide methods for
> creating text and binary bodies from various sources such as InputStreams or Strings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] Updated: (MIME4J-87) Add a factory for creating message
bodies
Posted by "Markus Wiederkehr (JIRA)" <se...@james.apache.org>.
[ https://issues.apache.org/jira/browse/MIME4J-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Markus Wiederkehr updated MIME4J-87:
------------------------------------
Attachment: mime4j-bodyfactory.patch
This patch introduces a new class called BodyFactory for creating message bodies.
The classes TempFileBinaryBody and TempFileTextBody get replaced by StorageBinaryBody and StorageTextBody respectively.
There is one side effect worth mentioning: TempFileTextBody used ISO-8859-1 as fallback charset. BodyFactory uses US-ASCII instead. This can easily be changed if there is a special reason for using Latin-1.
> Add a factory for creating message bodies
> -----------------------------------------
>
> Key: MIME4J-87
> URL: https://issues.apache.org/jira/browse/MIME4J-87
> Project: JAMES Mime4j
> Issue Type: New Feature
> Affects Versions: 0.5
> Reporter: Markus Wiederkehr
> Fix For: 0.6
>
> Attachments: mime4j-bodyfactory.patch
>
>
> Currently it is not possible to build a Message object out of the box. This is because the user has to write a custom class that holds the message body first. TempFileBinaryBody and TempFileTextBody are package private and there is no other alternative.
> But instead of making these classes public a factory class should be added. This factory should provide methods for
> creating text and binary bodies from various sources such as InputStreams or Strings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org