Parsing TXT attachments

Author Message

Geoff Oxholm

Monday 11 December 2006 8:50:21 am

As an attachment of a tab-delineated TXT file, I get an "ezcMailText" object. When I print the generateBody() it starts like this:
begin 644 attach_excel_file_20061208131411_4333.txt
M061V86YC960@4V%L97,@4F5P;W)T(&)Y(%!L86-E;65N= HQ,B\W+S(P,#8*
.....

With lots of binary data. Other email clients have the same e-mail show up with a raw ascii txt file as an attachment.

How can I convert this emailPart into the tab-delineated text file it is supposed to be?

Derick Rethans

Tuesday 12 December 2006 3:55:02 am

Please use the ezcomponents mailinglist to which you are already subscribed. This forum is for eZ publish, and not the eZ components.

regards,
Derick

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:07:22
Script start
Timing: Jan 18 2025 15:07:22
Module start 'layout'
Timing: Jan 18 2025 15:07:22
Module start 'content'
Timing: Jan 18 2025 15:07:23
Module end 'content'
Timing: Jan 18 2025 15:07:23
Script end

Main resources:

Total runtime0.7439 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.9063152.6250
Module start 'layout' 0.00580.0031 740.531339.4453
Module start 'content' 0.00890.7335 779.9766493.9844
Module end 'content' 0.74240.0015 1,273.96098.1719
Script end 0.7439  1,282.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4513160.0002
Check MTime0.00140.1844160.0001
Mysql Total
Database connection0.00070.100710.0007
Mysqli_queries0.703194.5181540.0130
Looping result0.00050.0669520.0000
Template Total0.714096.020.3570
Template load0.00220.291320.0011
Template processing0.711895.688920.3559
Template load and register function0.00020.026510.0002
states
state_id_array0.00110.142910.0011
state_identifier_array0.00140.191220.0007
Override
Cache load0.00180.2418140.0001
Sytem overhead
Fetch class attribute can translate value0.00050.067320.0003
Fetch class attribute name0.00190.259930.0006
XML
Image XML parsing0.00080.101220.0004
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00090.1226160.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs