Difference between revisions of "Pipe"

From Mailutils
Jump to navigationJump to search
m
m
Line 3: Line 3:
 
==Syntax==
 
==Syntax==
  
   pipe [:envelope] <''program'': string>
+
   pipe [:envelope] [:header] [:body] <''program'': string>
  
The ''pipe'' action executes a shell command specified by its argument and pipes the entire message to its standard input.
+
The ''pipe'' action executes a shell command specified by its argument and pipes the entire message, including its envelope, to its standard input.
  
The envelope of the message is included, if the <tt>:envelope</tt> tag is given.
+
Piping only certain parts of the message can be requested by supplying corresponding tagged arguments.  For example
 +
 
 +
  pipe :envelope :body "prog"
 +
 
 +
will send to <tt>prog</tt> only envelope and body of each message.
 +
 
 +
==See also==
 +
 
 +
* [[pipe (test)]]
  
 
[[Category:Sieve]]
 
[[Category:Sieve]]
 
[[Category:Sieve Actions]]
 
[[Category:Sieve Actions]]
 
[[Category:Sieve Extensions]]
 
[[Category:Sieve Extensions]]

Revision as of 00:02, 19 December 2010

Pipe is a Sieve extension action.

Syntax

  pipe [:envelope] [:header] [:body] <program: string>

The pipe action executes a shell command specified by its argument and pipes the entire message, including its envelope, to its standard input.

Piping only certain parts of the message can be requested by supplying corresponding tagged arguments. For example

  pipe :envelope :body "prog"

will send to prog only envelope and body of each message.

See also