On Sun, Jun 21, 2015 at 11:28 PM, Chris Bannister <cbannis...@slingshot.co.nz> wrote: > On Sat, Jun 20, 2015 at 11:53:40PM -0400, Xu Wang wrote: >> Dear all, >> >> My goal is to get the message ID from a message I just sent. One way I >> am thinking of doing this is copying a message to a temporary file >> (via FCC) and then getting its message ID with a script. Is this >> possible? > > You could use formail. Have a google on 'extract Message-ID' > > -- > "If you're not careful, the newspapers will have you hating the people > who are being oppressed, and loving the people who are doing the > oppressing." --- Malcolm X
Thank you for the idea Chris. That is indeed my strategy. But to do that I need to have the sent file to get it from. And suppose I have a very large file. I just want the last message ID. As far as I know, formail does not have an efficient way to get the last message-id. Kind regards, Xu