📄 email2sms
字号:
#!/bin/sh# Smsd can send eMails via SMS. You simply need to store the eMail as text# file in the outgoing queue directory with a unique filename.# The eMail must include the phone number in the To: field, for example:# To: "Herbert +491721234567" <sms@localhost># This simple script creates a unique filename and copies the eMail from# stdin to that file.# If you use procmail to deliver local eMail. Create the user sms and create# the file /home/sms/.procmailrc with this content:# VERBOSE=off# MAILDIR=/var/spool/mail# DEFAULT=/var/spool/mail/sms# LOGFILE=/var/log/procmail# # :0# * ^TOsms# | /usr/local/bin/email2sms# If you use QMail and vpopmail you need the file# /home/vpopmail/domains/your-domain/.qmail-sms with this content:# | /usr/local/bin/email2smsOUTFILE=$(mktemp /var/spool/sms/outgoing/smsgw.out.XXXXXX)cat >$OUTFILEecho "SMS queued to $OUTFILE"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -