Previous: , Up: Contribution Guidelines   [Contents]

4.2 Sending Git mails

As mentioned, the preferred way of contribution is via patches. The easiest way for sending git mails without git send-email is using msmtp. You can install it from the repository by doing:

$ cpt b msmtp && cpt i msmtp

You can then edit ~/.config/msmtp/config to add your email. Here is an example configuration, you can use pass, pash, or any other password manager that fits your needs:

auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.config/msmtp/msmtp.log
account my-mail
port 587
passwordeval "pass my-mail"

In order to simply send your patch, do the following:

$ git format-patch --to=~carbslinux/ -1 --stdout |
    msmtp -t -a my-mail

You can also send multiple patches by doing the following:

$ git format-patch --to=~carbslinux/ <region>

Edit those files as necessary and send them.
$ for file in *.patch; do msmtp -t -a my-mail < $patch; done