Re: Error in RC file
"@lbutlr" <[email protected]> Wed, 22 Feb 2017 22:54:38 -0700
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
--===============2086047467== Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head></head><body dir=3D"auto" style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D"ApplePlainTextBody"><div = class=3D"ApplePlainTextBody"><br><blockquote type=3D"cite">On 22 Feb = 2017, at 22:30, Stan Ryckman <[email protected]> = wrote:<br><br>On 2017-02-22 20:24, @lbutlr = wrote:<br>[snip]<br><blockquote type=3D"cite"> :0fw<br> | (formail -rt = -I"Subject: ${LISTNAME} ${SUBJECT}" \<br> -I"From: = ${MOFROM}" \<br> -I"To: ${MOBILE}" ; \<br> = echo $SMSTEXT) | $SENDMAIL -t<br> :0<br> = .trapped/<br>}<br>LOG=3D"END OF SMS_PROCMAIL${NL}"<br>VERBOSE=3DOFF<br>Two= things happen with this. First, the message is not sent with = the<br>=46rom header I set and two, and empty (as in 0 byte) = =E2=80=9Cmessages=E2=80=9D falls<br>through to be written in = .trapped.<br>Frankly, it=E2=80=99s been too long since I really hammered = on procmail much,<br>and most of what I knew has = evaporated.<br></blockquote><br>I'm a little rusty myself, but is it = possible that your $SENDMAIL<br>doesn't think you are authorized to set = "From:"?<br></blockquote><br>No. I think I way have bene wrong about = that. Or it fixed itself. I trapped a copy of the message at the server = and it is right (but is not triggering ifttt, but that is entirely = different and unrelated).<br><br><blockquote type=3D"cite">Also, is it = possible that your $SENDMAIL thinks that a 0-byte message<br>is an error = (which would then be interpreted as failure to deliver<br>due to the w = flag, and thus drop through to .trapped)?<br></blockquote><br>No, a = message is sent. But a 9 byte "message" exists after and that's why I = created the .rapped rule so I could make sure all the messaged trapped = are actually 0 bytes.<br><br><blockquote type=3D"cite">You should be = able to test those two things by piping something<br>to $SENDMAIL = directly from the shell, and thereby see if the<br>problem is outside = the script.<br></blockquote><br>Yes. I can send the message I want from = the shell (and now from procmail), but I still have the 0 byte = phantom.<br><br>-- <br>Apple broke AppleScripting signatures in = Mail.app, so no random signatures.<br><br></div></body></html>= --===============2086047467== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ____________________________________________________________ procmail mailing list Procmail homepage: http://www.procmail.org/ [email protected] https://mailman.rwth-aachen.de/mailman/listinfo/procmail --===============2086047467==--