Skip to main content
Topic: Post/reply by email not working? (Read 5129 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Post/reply by email not working?

Reply #15

When I went to your site via
Code: [Select]
http://forum.gtamaid.info/emailpost.php

it said
Code: [Select]
#!/usr/bin/env php

Please check the first line of your emailpost.php script ... it should be like #!/usr/bin/env/php -q or wherever your php command is located.   Notice in the response there is no / after the env in that response .... You need to enter the full path command line to run php  .... don't forget the -q  ....

Re: Post/reply by email not working?

Reply #16

Still getting the same error message even when I changed the shebang.

I even tried switching to IMAP instead of piping, and I get a "Missing Key" error. It's just not my night for forums!  ;)

Re: Post/reply by email not working?

Reply #17

What does the shebang line look like and what flavor of *nix are you running?

IMAP is fine, its just not "instantaneous" so to speak. 

The missing key is the "other" error I referred to above, a little bug introduced in 1.1.3, that we can fix and get you going! 

Re: Post/reply by email not working?

Reply #18

I think I might just stick with IMAP if it's easily doable-- what's the fix?

Re: Post/reply by email not working?

Reply #19

For now edit Mail.subs.php (I'm not sure this will be the 1.1.4 fix, so keep an eye on things)

Code: (find) [Select]
$unq_head = $unq_head_array[0] . '-' . $unq_head_array[2];
Code: (replace) [Select]
$unq_head = $unq_head_array[0] . '-' . $unq_head_array[1] . $unq_head_array[2];

Re: Post/reply by email not working?

Reply #20

Thanks, this seems to work so far. However, one more issue has come up: I'm getting a "Key Expired" message if I try to reply to a given message more than once. (I've set the key expiration setting to 90 days or something like that in the settings.)

 

Re: Post/reply by email not working?

Reply #21

Looking at the code you can only reply to the post once via email until another email is generated by someone else replying. If that makes sense.

Re: Post/reply by email not working?

Reply #22

Correct ... they are use once keys to prevent spamming. 

The key expired means that at least its a legit key, user and topic/message are legit ... so you the admin can still approve it.  I don't see that happen to often but it does happen.
Last Edit: May 08, 2018, 08:29:55 pm by Spuds

Re: Post/reply by email not working?

Reply #23

I guess the issue is that if multiple people respond simultaneously to a new topic then it won't work. This seems to happen to fairly frequently on our listserv, so I'm not sure if this is going to work...

Re: Post/reply by email not working?

Reply #24

Its unique to each specific user ... not to the message.  So if 100 users "subscribe" each can reply to the original message w/o any issue.

Re: Post/reply by email not working -- file attachments not posting properly

Reply #25

Ah, ok, I see... 

One more thing -- and I'm so sorry to keep bugging you about all this!

I've tried replying by email with a file attachment and the attachments gets posted to the forum but gets attached to the wrong reply (see screenshot, the PDF file 'billing units' is supposed to be attached to the last reply.) The attachment doesn't seem to make it through by email.

Any suggestions? Known bug?

Re: Post/reply by email not working?

Reply #26

I'll have to check the attachment code, that sounds like a bug.

Re: Post/reply by email not working?

Reply #27

While you're at it... Are attachments supposed to be forwarded to people who are subscribed to a topic?

(Thanks, I owe you guys if this all does work out for us!)

Re: Post/reply by email not working?

Reply #28

If I recall correctly, it will only report that there are attachments and provide the link, I don't think it includes them in the outbound notification.

Re: Post/reply by email not working?

Reply #29

Quick update... I discovered that even when using cron to fetch the IMAP messages, it only works if guest browsing is enabled. (I posted a new bug report about this.) Now, when I try piping, this is the error message I get when the email bounces back:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  pipe to |/home/wdwbbjsw/forum.gtamaid.info/emailpost.php
    generated by test@forum.gtamaid.info

The following text was generated during the delivery attempt:

------ pipe to |/home/wdwbbjsw/forum.gtamaid.info/emailpost.php
       generated by test@forum.gtamaid.info ------

X-Powered-By: PHP/7.1.17
Content-type: text/html; charset=UTF-8



Reporting-MTA: dns; s1.kickassd.com

Action: failed
Final-Recipient: rfc822;|/home/wdwbbjsw/forum.gtamaid.info/emailpost.php
Status: 5.0.0