Guest User

Untitled

a guest
Dec 9th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. *** ENVELOPE RECORDS deferred/C/CEEFE416EAB5 ***
  2. message_size: 375 253 1 0 375
  3. message_arrival_time: Thu Dec 6 13:32:19 2018
  4. create_time: Thu Dec 6 13:33:48 2018
  5. named_attribute: rewrite_context=local
  6. sender_fullname: root
  7. original_recipient: [email protected]
  8. *** MESSAGE CONTENTS deferred/C/CEEFE416EAB5 ***
  9. Received: by localhost.localdomain (Postfix, from userid 0)
  10. id CEEFE416EAB5; Thu, 6 Dec 2018 13:33:48 +0900 (JST)
  11. Subject:TestMail_Postfix
  12. Message-Id: <[email protected]>
  13. Date: Thu, 6 Dec 2018 13:32:19 +0900 (JST)
  14.  
  15. Sending Testmail to testmailreciever001
  16.  
  17. *** HEADER EXTRACTED deferred/C/CEEFE416EAB5 ***
  18. *** MESSAGE FILE END deferred/C/CEEFE416EAB5 ***
  19.  
  20. OUTPUT FORMAT:
  21. QUEUE ID SUBJECT RECIPIENT
  22.  
  23. EXPECTED OUTPUT:
  24. CEEFE416EAB5 TestMail_Postfix [email protected]
  25.  
  26. CEEFE416EAB5 TestMail_Postfix [email protected]
  27.  
  28. function grepdata
  29. {
  30. postcat -q $1 | grep '^Subject:'
  31. postcat -q $1 | grep '^recipient:'
  32. }
  33. grepdata $1
Add Comment
Please, Sign In to add comment