Click here to get back home

PERL ---> Move email from Inbox folder to another or vice versa in OUTLOOK

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
PERL ---> Move email from Inbox folder to another or vice versa in OUTLOOK bony_dev 08-04-2006
Get Chitika Premium
Posted by bony_dev on August 4, 2006, 10:39 pm
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Posted by Ben Morrow on August 14, 2006, 4:44 pm
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
perl to move mail from inbox to a personal folder August 4, 2006, 1:03 am
Calling C++ from Perl and vice versa January 22, 2006, 12:08 pm
Can I call Perl module from TCL or vice versa? October 10, 2006, 11:51 pm
Get variable from its name string or vice versa? May 9, 2008, 1:21 pm
Sending Outlook Email w/voting buttons through a Perl script... November 19, 2004, 11:31 am
Outlook -- email March 7, 2008, 1:40 am
parse email coming from outlook in html November 17, 2005, 4:44 pm
Send Hello world outlook email (Exchange server) July 17, 2004, 10:01 am
Are there alternatives to Mail::Box and Email::Folder? September 7, 2004, 3:41 pm
ppm problem, no Email-Folder module November 3, 2005, 3:09 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap