30 Sep
2010
30 Sep
'10
5:39 p.m.
On 23/09/10 11:00, Mark Rogers wrote:
I need to go through a text file, and for all lines similar to this: X-Mozilla-Status: 0009 .. I need to unset the 4th bit (so the above becomes 0001).
Just to follow-up on this: I didn't find a good solution, but did find out that I could remove all the X-Mozilla-Status: lines and Thunderbird was happy with the resulting file, it just had everything marked unread and undeleted. To remove the lines I used: grep -v 'X-Mozilla-Status:' mailbox > mailbox.tmp mv mailbox.tmp mailbox Mark -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG