FAQ about patches | More patches in the web | Main Page


Note that you if you are applying this patch for version 4.20 or earlier, you must first compile pine, then apply the patch and then compile pine again. Starting from version 4.21, you must apply the patch and compile Pine.
 
Once you have succesfuly applied and compiled the patch, you can send a message through the command line as follows:
 
pine -I ^X,y -subject "this is a subject" foo1@bar1.com foo2@bar2.com < input_file
 
(notice that the first switch is the capital letter I, not the pipe command |, I apologize if this causes you any confusion) This will allow you to send input_file to foo1 and foo2. I could send a message from a script, just enclosing ^X,y in quotes. Please read the note below.
 
Note that depending on the operative system that you are using you may want to enclose the ^X,y part of the command in quotes (like "^X,y" or '^X,y'), if you receive an error saying that the -I option did not have any arguments.
 
You can also use the -attach option with this command. I recommend to alias the part pine -I ^X,y to be another command, to abbreviate the command.
 
A new improvement for version 4.33 has been made, now you can use your roles when sending from the command line, for doing this you need to use the command:
 
pine -I #,^M,^X,y -subject "this is a subject" person@domain.com < file
 
You can use your second role by writting -I #,n,^M,^X,y, your third role by using the command -I #,n,n,^M,^X,y etc.
 
Note that Pine will not confirm the role that you will use when sending a message even if you have set it to use with confirmation, in that way we reduce prompting when sending. If you want to use a specific role, use the method of sending it as described above (#,n,n etc).
 
Thanks to Andy Tsouladze for taking the time to try the patch and reporting a bug back.
 
This patch was featured in the issue #20 of the E-Zine Magazine.