Difference between revisions of "Mutt"

From CsWiki
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This value is a stub; it will be expanded in the next weeks.
 
 
 
'''mutt''' is a command line mailing tool available from the cs shell. '''mutt''' allows fast, automated backup for files. '''mutt''' is often used in a script which builds, compiles, executes and backups a project with a simple command.
 
'''mutt''' is a command line mailing tool available from the cs shell. '''mutt''' allows fast, automated backup for files. '''mutt''' is often used in a script which builds, compiles, executes and backups a project with a simple command.
  
Line 8: Line 6:
 
  tar cvf ex3.tar *.c *.h
 
  tar cvf ex3.tar *.c *.h
 
Send the project tar to an external account for backup:
 
Send the project tar to an external account for backup:
  mutt -s "ex3 files" -a ex3.tar myaccount@gmail.com < /dev/null
+
  mutt -s "ex3 files" [mailto:abrakadabra@cs.huji.ac.il abrakadabra@cs.huji.ac.il] -a ex3.tar < /dev/null
 
-s specifies the subject line, -a specifies the attached file, then the destination address and "< /dev/null" sends an empty string as the body text of the message.
 
-s specifies the subject line, -a specifies the attached file, then the destination address and "< /dev/null" sends an empty string as the body text of the message.

Latest revision as of 22:11, 14 October 2014

mutt is a command line mailing tool available from the cs shell. mutt allows fast, automated backup for files. mutt is often used in a script which builds, compiles, executes and backups a project with a simple command.

Usage examples:

Archive your project:

tar cvf ex3.tar *.c *.h

Send the project tar to an external account for backup:

mutt -s "ex3 files" abrakadabra@cs.huji.ac.il -a ex3.tar < /dev/null

-s specifies the subject line, -a specifies the attached file, then the destination address and "< /dev/null" sends an empty string as the body text of the message.