Aug 30, 2013; 11:50
Peter D Bethke
Preserving line breaks using email_parse in 8.5.6
Hello all,
Heres a much simpler question regarding the pop tags (I solved the server issue thanks to Bil Corry's awesome email_pop replacement tag on tag swap).
I'm getting the body of the email message using the emai_parse helper tag. I'm having an issue though as its not preserving the line breaks in an attachment file (its a .csv file so line breaks are important).
#mypop = (Email_POP:
-Host=#host,
-Username=#username,
-Password=#password,
-Get='Retrieve',
-Port=#port,
-log=true);
iterate: #mypop, local: 'msg';
local: 'foo' = (email_parse: #msg);
if: #foo->mode >> 'multipart';
iterate: #foo, local: 'mypart';
if: #mypart->(content_disposition) >> 'attachment' && ((#mypart->content_type: 'name') >> '.csv');
#emaillist->(insert: (#mypart->content_type: 'name') = (#mypart->body: 'text/plain'));
/if;
/iterate;
/if;
/iterate;
The resulting value of #mypart->body: 'text/plain' does not retain line breaks. Any suggestions on how to retain them?
Peter
#############################################################
Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>