Darrik Spaude | 4 Nov 20:20 2010

Parsing Plain Text with Plain Text Attachment

Hello,

I have a situation where a plain text attachment part is being received along with a plain text part. I want the plain text to be parsed as text by the collector and the plain text attachment to be saved as a file. However, with parse option parseTextAttachmentsAsFiles set to FALSE, I cannot get the plain text attachment (it is seen as ezcMailText and not ezcMailFile) and the attachment text is not available in the $mailPart object. There are other cases where a text attachment is actually given as plain text and so I can get that and save it as a file, but in this case the plain text attachment is really an attachment.

He re is the mail part in question:

object(ezcMailText)#17 (4) { ["headers":"ezcMailPart":private]=> object(ezcMailHeadersHolder)#18 (2) { ["lookup":"ezcMailHeadersHolder":private]=> array(4) { ["content-type"]=> string(12) "Content-Type" ["content-description"]=> string(19) "Content-Description" ["content-disposition"]=> string(19) "Content-Disposition" ["content-transfer-encoding"]=> string(25) "Content-Transfer-Encoding" } ["map":"ezcMailHeadersHolder":private]=> array(4) { ["Content-Type"]=> string(31) "text/plain; name="InboxLOG.txt"" ["Content-Description"]=> array(1) { [0]=> string(12) "InboxLOG.txt" } ["Content-Disposition"]=> string(150) "attachment; creation-date="Mon, 18 Oct 2010 13:47:42 GMT"; filename="InboxLOG.txt"; modification-date="Thu, 04 Nov 2010 10:48:30 GMT"; size="186282"" ["Content-Transfer-Encoding"]=> string(6) "base64" } } ["headerCharsets":"ezcMailPart":private]=> array(4) { ["Content-Type"]=> string(8) "us-ascii" ["Content-Description"]=> string(8) "us-ascii" ["Content-Disposition"]=> string(8) "us-ascii" ["Content-Transfer-Encoding"]=> string(8) "us-ascii" } ["excludeHeaders":"ezcMailPart":private]=> array(0) { } ["properties":protected]=> array(7) { ["text"]=> string(0) "" ["charset"]=> string(5) "utf-8" ["encoding"]=> string(4) "8bit" ["subType"]=> string(5) "plain" ["originalCharset"]=> string(8) "us-ascii" ["contentDisposition"]=> object(ezcMailContentDispositionHeader)#19 (11) { ["disposition"]=> string(10) "attachment" ["fileName"]=> string(12) "InboxLOG.txt" ["displayFileName"]=> string(12) "InboxLOG.txt" ["fileNameLanguage"]=> NULL ["fileNameCharSet"]=> NULL ["creationDate"]=> string(29) "Mon, 18 Oct 2010 13:47:42 GMT" ["modificationDate"]=> string(29) "Thu, 04 Nov 2010 10:48:30 GMT" ["readDate"]=> NULL ["size"]=> string(6) "186282" ["additionalParameters"]=> array(0) { } ["additionalParametersMetaData"]=> array(0) { } } ["size"]=> int(0) } }


Is there some way to re-parse just that part as ezcMailFile? I do not want to re-parse the whole set with parseTextAttachmentsAsFiles set to TRUE.

Thanks,
Darrik

<div>Hello,<div><br></div>
<div>I have a situation where a plain text attachment part is being received along with a plain text part. I want the plain text to be parsed as text by the collector and the plain text attachment to be saved as a file. However, with parse option parseTextAttachmentsAsFiles set to FALSE, I cannot get the plain text attachment (it is seen as&nbsp;ezcMailText and not&nbsp;ezcMailFile) and the attachment text is not available in the $mailPart object. There are other cases where a text attachment is actually given as plain text and so I can get that and save it as a file, but in this case the plain text attachment is really an attachment.</div>
<div><br></div>
<div>He
 re is the mail part in question:</div>
<div><br></div>
<div><span class="Apple-style-span">object(ezcMailText)#17 (4) {
  ["headers":"ezcMailPart":private]=&gt;
  object(ezcMailHeadersHolder)#18 (2) {
    ["lookup":"ezcMailHeadersHolder":private]=&gt;
    array(4) {
      ["content-type"]=&gt;
      string(12) "Content-Type"
      ["content-description"]=&gt;
      string(19) "Content-Description"
      ["content-disposition"]=&gt;
      string(19) "Content-Disposition"
      ["content-transfer-encoding"]=&gt;
      string(25) "Content-Transfer-Encoding"
    }
    ["map":"ezcMailHeadersHolder":private]=&gt;
    array(4) {
      ["Content-Type"]=&gt;
      string(31) "text/plain; name="InboxLOG.txt""
      ["Content-Description"]=&gt;
      array(1) {
        [0]=&gt;
        string(12) "InboxLOG.txt"
      }
      ["Content-Disposition"]=&gt;
      string(150) "attachment;  creation-date="Mon, 18 Oct 2010 13:47:42 GMT"; filename="InboxLOG.txt";  modification-date="Thu, 04 Nov 2010 10:48:30 GMT"; size="186282""
      ["Content-Transfer-Encoding"]=&gt;
      string(6) "base64"
    }
  }
  ["headerCharsets":"ezcMailPart":private]=&gt;
  array(4) {
    ["Content-Type"]=&gt;
    string(8) "us-ascii"
    ["Content-Description"]=&gt;
    string(8) "us-ascii"
    ["Content-Disposition"]=&gt;
    string(8) "us-ascii"
    ["Content-Transfer-Encoding"]=&gt;
    string(8) "us-ascii"
  }
  ["excludeHeaders":"ezcMailPart":private]=&gt;
  array(0) {
  }
  ["properties":protected]=&gt;
  array(7) {
    ["text"]=&gt;
    string(0) ""
    ["charset"]=&gt;
    string(5) "utf-8"
    ["encoding"]=&gt;
    string(4) "8bit"
    ["subType"]=&gt;
    string(5) "plain"
    ["originalCharset"]=&gt;
    string(8) "us-ascii"
    ["contentDisposition"]=&gt;
    object(ezcMailContentDispositionHeader)#19 (11) {
      ["disposition"]=&gt;
      string(10) "attachment"
      ["fileName"]=&gt;
      string(12) "InboxLOG.txt"
      ["displayFileName"]=&gt;
      string(12) "InboxLOG.txt"
      ["fileNameLanguage"]=&gt;
      NULL
      ["fileNameCharSet"]=&gt;
      NULL
      ["creationDate"]=&gt;
      string(29) "Mon, 18 Oct 2010 13:47:42 GMT"
      ["modificationDate"]=&gt;
      string(29) "Thu, 04 Nov 2010 10:48:30 GMT"
      ["readDate"]=&gt;
      NULL
      ["size"]=&gt;
      string(6) "186282"
      ["additionalParameters"]=&gt;
      array(0) {
      }
      ["additionalParametersMetaData"]=&gt;
      array(0) {
      }
    }
    ["size"]=&gt;
    int(0)
  }
}
<div><br></div></span></div>
<div><br></div>
<div>Is there some way to re-parse just that part as ezcMailFile? I do not want to re-parse the whole set with&nbsp;parseTextAttachmentsAsFiles set to TRUE.</div>
<div><br></div>
<div>Thanks,</div>
<div>Darrik</div>
<div><br></div>
</div>
Gustavo Solt | 25 Oct 17:55 2010
Picon

Caldav

Hi all,
 I am a developer of PHProjekt.
We want to add the ezc Webdav component to the version 6.

The development also include the Caldav support and since the
ezcWebdavServer do not provides it, we think improve the module for that.

The caldav needs only a few requests and properties more than the webdav,
for example:

1. The transport must support also the REPORT request method.

2. The properties missed are:
	- calendar-data
	- getctag
	- supported-calendar-component-set

3. The 'resourcetype' property can be only "collection" or null, and the
caldav needs "calendar" or null.

4. A ezcWebdavRequest and ezcWebdavResponse for report is needed too for
get/set all the nodes to return, and to get the date range.

5. And since the data of the event/todo are in Ical format, the module
needs also a class that transform "object data to iCal format" and "ical
format to object data".
THIS CAN BE PART OF THE MODULE OR A NEW MODULE, so other modules can use
it too.

I think is better to "improve" the current webdav, adding the needed
classes and changing some current functions, so with the same
functionality, the user can make a webdav and caldav server.

The other option is make a NEW MODULE ezcCaldavServer(extends
ezcWebdavServer), the user will have 2 type of servers, and must
download the 2 modules for work with caldav only.
Also many functions will be re-written just for add a "case option", and
is more hard to maintain.

About the iCal class, the format is usefull for export events/todos to
other programs. Add it into the caldav/webdav or as a new separated
module is up to you.

For sure, we can use the parseUnknownRequest and
serializeUnknownLiveProperty hooks to use our own classes and make a
caldav server, but will be nice to have a caldav ezc component.

If we will change the current ezc webdav i suggest also to change the
processGetCollectionResponse function for return a HTML list of files,
so you can see the files and folders in a browser and for sure download
them (Or add a hook there so the developer can do it without extend the
ezcWebdavTransport)

What do you think?

Greetings,
Gustavo Solt
Jorge Martins | 1 Oct 00:58 2010
Picon

Supend workflow until condition is true

Hi, I', trying to make a workflow in wich, after some user input the workflow follows on or stays in the same node until a certain form field matches a condition

I've created and Input node, after that I have a ExclusiveChoise with forks to a ServiceObjectClass if the condition is false or to a SimpleMerge node if the condition is true

The ServiceObjectClass will suspend the workflow, and that is working OK, but the data is the execution_waiting_for field is lost, and the workflow will never go the right path if the condition later on turn true.

I don't know if i'm doing the right workflow, or if I have to do something to keep the original state of the input node.

So in a glance the idea is:


Input node (id: 1) -> ExclusiveChoise (id: 2)

    ->True? -> SimpleMerge (id: 3)) -> End
    ->False? -> ServiceObjectClass (id: 4) -> SimpleMerge (id: 3)) -> End

node 4 suspends the workflow and it should be back to node 1 so the user later on can change the input value so condition is true

Thanks

<div><p>Hi, I', trying to make a workflow in wich, after some user input the workflow follows on or stays in the same node until a certain form field matches a condition<br><br>I've created and Input node, after that I have a ExclusiveChoise with forks to a ServiceObjectClass if the condition is false or to a SimpleMerge node if the condition is true<br><br>The ServiceObjectClass will suspend the workflow, and that is working OK, but the data is the execution_waiting_for field is lost, and the workflow will never go the right path if the condition later on turn true.<br><br>I don't know if i'm doing the right workflow, or if I have to do something to keep the original state of the input node.<br><br>So in a glance the idea is:<br><br><br>Input node (id: 1) -&gt; ExclusiveChoise (id: 2)<br><br>&nbsp;&nbsp;&nbsp; -&gt;True? -&gt; SimpleMerge (id: 3)) -&gt; End<br>&nbsp;&nbsp;&nbsp; -&gt;False? -&gt; ServiceObjectClass (id: 4) -&gt; SimpleMerge (id: 3)) -&gt; End<br><br>node 4 suspends the workflow and it should be back to node 1 so the user later on can change the input value so condition is true<br><br>Thanks<br></p></div>
Jorge Martins | 30 Sep 19:41 2010
Picon

Workflow - suspend - saveToVariableHandlers - doSuspend

On the suspend method in ezcWorkflowExecution

doSuspend is called after saveToVariableHandlers()

but in the commentary says diferent "This method calls doSuspend() before calling saveToVariableHandlers()..."


I had a problem with commits that got resolved when I changed the saveToVariableHandlers to be executed after doSuspend.

Is ther any problem in executing doSuspend first and saveToVariableHandlers after?

<div><p>On the suspend method in ezcWorkflowExecution<br><br>doSuspend is called after saveToVariableHandlers()<br><br>but in the commentary says diferent "This method calls doSuspend() before calling saveToVariableHandlers()..."<br><br><br>I had a problem with commits that got resolved when I changed the saveToVariableHandlers to be executed after doSuspend.<br><br>Is ther any problem in executing doSuspend first and saveToVariableHandlers after? 
</p></div>
Xiongjie Chen | 16 Sep 22:32 2010
Picon

Thoughts about components for cronjobs

Hello everyone,

   Today I discussed with some partner developers about one topic. We got the feeling that cronjob is not so
easy to configure(especially there are many tasks), manage (monitor, control). Then I thought a little
bit how to improve this, it should be great if there are some components in zeta components for this. Also I
think this is good and general need for 'enterprise use'.

  I also found this one: http://pear.php.net/package/System_Daemon/docs but it's just a daemon, which is
not enough. Ideally there should be a tool/possibility to configure task, control task, monitor
task/memory use, etc.

 Any idea on this or there is already some existence but I didn't know?

 Thank you.

Best regards
Chen (Xiongjie Chen)
Software developer in eZ

Daniel Cher | 7 Sep 18:56 2010
Picon

use IMAP to retrieve messages without attachments

ezcMail is great - very detailed documentation, thanks!


Would like to connect using IMAP, perform a search, return a set of results to display for user. However, would like to avoid downloading the attachments - those can be downloaded via another request.  Is there a way to do this?

Thanks.

Daniel


<div>
<p>ezcMail is great - very detailed documentation, thanks!</p>
<div><br></div>
<div>Would like to connect using IMAP, perform a search, return a set of results to display for user. However, would like to avoid downloading the attachments - those can be downloaded via another request. &nbsp;Is there a way to do this?</div>
<div><br></div>
<div>Thanks.</div>
<div><br></div>
<div>Daniel<br clear="all"><br><br>
</div>
</div>
James Pic | 1 Sep 10:24 2010
Picon

New website: zetac.org

Hello everybody,

Zetac.org provides the following shortcuts:

    * zetac.org/base -> tutorial of component Base
    * zetac.org/Base -> tutorial of component Base
    * zetac.org/ezcbase -> api of class ezcBase
    * zetac.org/ezcBase -> api of class ezcBase

More info on zetac.org

Hope that helps ;)

James

--

-- 
http://jamespic.com/contact
Customer is king - Le client est roi - El cliente es rey.
Thorsten Franke | 10 Aug 11:12 2010
Picon
Picon

Setting DPI for images

  Hi!

I need to convert an JPEG-image to a specific DPI (eg. 150dpi).
Does the ImageConversion component featured such a thing? I have not found this in the 
documentation, but maybe I am blind... :-)

Greetings
Thorsten

--

-- 

Mark E. Haase | 1 Aug 18:07 2010
Picon

Downloadable documentation?

Is it possible to download the documentation for the latest release of ezc?

This page has documents available for download but only for older versions:
http://ez.no/ezcomponents/download

This page has downloads for new versions but no documentation:
http://ezcomponents.org/download/dl_components

Finally, this page has a link that looks like it should point to
documentation for release 2009.2.1, but the link is broken:
http://ezcomponents.org/download links to
http://ezcomponents.org/files/downloads/ezcomponents-2009.2.1-docs.tar.gz

Any ideas?

Thanks,
Mark E. Haase
Kévin Surrault | 6 Jul 15:54 2010
Picon

Frontpage template use

Hello everyone !

I'm new to eZ Publish, and I need some advice to better understand how
to use the template system.

Here is my problem : in the frontpage template, I have to fetch some
nodes of different types to display them on the home page of my site.
 - Should I use 4 or 5 "small" fetches, or rather one big fetch to get
all the nodes I need (and then split it in smaller arrays) ?
 - I could also create content objects that are bond to the ones I
need (for example a "news" block that displays the news it is bond
to).
 - Another solution could be to include other templates without
creating content objects, using "{include uri = ...}"

I have not enough experience to know the pros and the cons of each solution.
Which one would you advise me to use, for better performance and code
cleanliness ?

Thanks in advance,

Kévin
--

-- 
Components mailing list
Components@...
http://lists.ez.no/mailman/listinfo/components

Paul | 4 Jul 17:51 2010

Installation via PEAR freezes since some days

Hi there

the installation-process via pear ("sudo pear install -a 
ezc/eZComponents") freezes since some days (channel could be 
successfully added).

I tried it out every day in the last week and today.

Until May or June i was able to successfully install the Components via 
that way.

Maybe it depends on changes happend due migration from eZ to Zeta... ?

Any suggestion?

Kind Regards, Paul

Gmane