Commit 86ed4219 authored by Seblu's avatar Seblu
Browse files

Use \r\n when sending mails

parent c228f173
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ pkgdesc='Send an email when your computer boot'
arch=('any')
url='https://github.com/seblu/mailboot'
license=('GPL')
depends=('bash' 'systemd')
depends=('bash' 'systemd' 'sed')
source=("$pkgname-$pkgver.tar.xz")
md5sums=('SKIP')

+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ DEPENDENCIES
- Bash [#]_
- Systemd [#]_
- sysvinit-tools
- Sed


INSTALL
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ print_mail() {


send_mail() {
    print_mail | sendmail root
    print_mail | sed 's/$/\r/' | sendmail root
}

while getopts 'psvh' opt; do