title: Dovecot Sieve how to set mail raw_text variable
body: <p>i have filter</p>
  <pre><code>require [&quot;envelope&quot;, &quot;variables&quot;, &quot;vnd.dovecot.pipe&quot;];
  
  if envelope :matches &quot;To&quot; &quot;user@example.com&quot; {
    set &quot;recipient&quot; &quot;${0}&quot;;
  
    if header :matches &quot;From&quot; &quot;*&quot; {set &quot;sender&quot; &quot;${0}&quot;;}
    if header :matches &quot;Date&quot; &quot;*&quot; { set &quot;date&quot; &quot;${0}&quot;; }
    if header :matches &quot;Content-Type&quot; &quot;*&quot; { set &quot;content_type&quot; &quot;${0}&quot;; }
    if header :matches &quot;Subject&quot; &quot;*&quot; { set &quot;subject&quot; &quot;${0}&quot;; }
    if header :matches &quot;Message-ID&quot; &quot;*&quot; { set &quot;message_id&quot; &quot;${0}&quot;; }
  
  
    pipe &quot;forwarding_cimp.sh&quot; [&quot;message_id:${message_id} date:${date} content_type:${content_type} sender:${sender} recipient:${recipient} subject:${subject} body:${body} body2:${body2}&quot;];
  }
  </code></pre>
  <p>how to set variable with email raw text</p>
  <p><strong>if body :content &quot;text&quot; :matches &quot;*&quot; {set &quot;body_text&quot; &quot;${0}&quot;; # not working}</strong></p>
  <p><strong>if body :raw :contains &quot;*&quot; {set &quot;raw_text&quot; &quot;${0}&quot;; # not working too}</strong>
  how ho get email message raw text</p>