KNOWNHOST WIKI

User Tools

Site Tools


email:exim:how-can-i-view-an-exim-emails-header-andor-body-in-the-queue-from-command-line

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

email:exim:how-can-i-view-an-exim-emails-header-andor-body-in-the-queue-from-command-line [2015/01/12 21:02] (current)
Jonathan W. created
Line 1: Line 1:
 +====== View the body and/or header of a queued exim message ======
 +{{howhard>​4}}
 +If you already know the email'​s ID (if you dont: [[email:​exim:​how-can-i-see-a-list-of-emails-in-exims-queue-from-the-command-line|Review Exim's Queue]]), printing the header and/or body information is simple!
 +
 +<WRAP center round info 100%>
 +For this example, we'll use '​1XSY5g-0001kh-N6'​ as the email ID but this ID is unique to each email message - yours will be different.
 +</​WRAP>​
 +
 +===== Email headers =====
 +
 +For the email header, from your terminal, perform the following command:
 +
 +<​code>​exim -Mvh 1XSY5g-0001kh-N6</​code>​
 +
 +<WRAP center round info 100%>
 +It's important to remember '​M'​ needs to be capitalized,​ and all 14 characters of the ID, with the hyphens (-) are included.
 +</​WRAP>​
 +
 +Here's an example output:
 +
 +{{:​email:​exim:​exim-mvh.png?​direct&​300|}}
 +
 +===== Email body =====
 +For the email body, the command is similar. Just using a '​b'​ for body, rather than '​h'​ from the previous command:
 +
 +<​code>​exim -Mvb 1XSY5g-0001kh-N6</​code>​
 +
  
email/exim/how-can-i-view-an-exim-emails-header-andor-body-in-the-queue-from-command-line.txt · Last modified: 2015/01/12 21:02 by Jonathan W.