Community Discussions and Support
How to extract email to file without additional line breaks?

> ok, I will try to describe my problem once again with shorter specificitaion
>
> every single email I export from PM to file, fragment in email
> contained rows by 77 letters and I do not why?!?

The e-mail should be 78 characters max per line.

> it means email contain for example 100 rows, but export file contain
> 300 rows because each one original row is fragment by 77 characters and
> each one of those new rows is finished with mark "="

Soft line break character.  You must remove the soft line break and then delete the CR/LF at the end of the line to get this wrap.

>
> I tried to remove those additional line breaks by php script with
> function "substr_replace" but without any success, seems not problem
> with line breaks any idea how to prevent that useless rows-breaking, I
> am started to be mad from that

How about just printing to a file? The print process knows how to handle the soft line breaks.

 

<p>> ok, I will try to describe my problem once again with shorter specificitaion > > every single email I export from PM to file, fragment in email > contained rows by 77 letters and I do not why?!? The e-mail should be 78 characters max per line. > it means email contain for example 100 rows, but export file contain > 300 rows because each one original row is fragment by 77 characters and > each one of those new rows is finished with mark "=" Soft line break character.  You must remove the soft line break and then delete the CR/LF at the end of the line to get this wrap. > > I tried to remove those additional line breaks by php script with > function "substr_replace" but without any success, seems not problem > with line breaks any idea how to prevent that useless rows-breaking, I > am started to be mad from that How about just printing to a file? The print process knows how to handle the soft line breaks.</p><p> </p>

Hello everybody,
I have an one little problem. I set rule for incoming email to be emails saved (extract) to .txt file, but problem is that extracted data contain additional line breaks.  Here is example what exatly happen:

in email looks every rows like following example:
2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software backup not ok: comm_err 201 - http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124
2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software backup not ok: comm_err 201 - http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124
2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software backup not ok: comm_err 201 - http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124

but in .txt file are displayed as you can see below:
2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software
backup not ok: comm_err 201 -
http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124
2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software
backup not ok: comm_err 201 -
http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124
2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software
backup not ok: comm_err 201 -
http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124

What is wrong there? I do not have this additional line breaks in my .txt file. How to perevent to be extracted email saved to external .txt file in the same form like in email?
Pegasus mail is running on Windows XP system, email is extracted to .txt file with predefined UTF-8 encoding and of course word wrap option in .txt is disabled.

<p>Hello everybody, I have an one little problem. I set rule for incoming email to be emails saved (extract) to .txt file, but problem is that extracted data contain additional line breaks.  Here is example what exatly happen:</p><blockquote><p><b>in email looks every rows like following example:</b> 2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software backup not ok: comm_err 201 - http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124 2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software backup not ok: comm_err 201 - http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124 2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software backup not ok: comm_err 201 - http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124 <b>but in .txt file are displayed as you can see below:</b> 2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software backup not ok: comm_err 201 - http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124 2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software backup not ok: comm_err 201 - http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124 2009.05.27 08:45:25 server1.domain1.com_Software_server:BAC1D Software backup not ok: comm_err 201 - http://server.pn.domain.com/cgi-bin/rapbrowser/showjob.cgi?1243403124</p></blockquote><p>What is wrong there? I do not have this additional line breaks in my .txt file. How to perevent to be extracted email saved to external .txt file in the same form like in email? Pegasus mail is running on Windows XP system, email is extracted to .txt file with predefined UTF-8 encoding and of course word wrap option in .txt is disabled. </p>

Hello,

    Instead of using extract To File rule, use Execute a Program.  The program will be called with the filename as a parameter. Try an experiment using Notepad as the Program To Run.

Martin

<p>Hello,</p><p>    Instead of using extract To File rule, use Execute a Program.  The program will be called with the filename as a parameter. Try an experiment using Notepad as the Program To Run. </p><p>Martin </p>

ok, I will try to describe my problem once again with shorter specificitaion

every single email I export from PM to file, fragment in email contained rows by 77 letters and I do not why?!?
it means email contain for example 100 rows, but export file contain 300 rows because each one original row is fragment by 77 characters and each one of those new rows is finished with mark "="

I tried to remove those additional line breaks by php script with function "substr_replace" but without any success, seems not problem with line breaks
any idea how to prevent that useless rows-breaking, I am started to be mad from that

thank you

<p>ok, I will try to describe my problem once again with shorter specificitaion every single email I export from PM to file, fragment in email contained rows by 77 letters and I do not why?!? it means email contain for example 100 rows, but export file contain 300 rows because each one original row is fragment by 77 characters and each one of those new rows is finished with mark "=" I tried to remove those additional line breaks by php script with function "substr_replace" but without any success, seems not problem with line breaks any idea how to prevent that useless rows-breaking, I am started to be mad from that</p><p>thank you </p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft