No, I don’t think so. I went through some of the code and tested a few ideas after turning on debug.log.
This is interesting. I found the sp_subscriptions_do_post_notification() function in sp-subscriptions-components.php and added a bit of code just after $replyto gets assigned. Logging the output, I saw that $replyto was blank, and so added the forum e-mail lookup. This appears to work on my first test, but surely $replyto would be assigned in this fashion anyway, wouldn’t it?
# let plugins hook into this email by user
$msg = apply_filters(‘sph_subscriptions_notification_email’, $msg, $newpost, $user);
# send the notification
$replyto = apply_filters(‘sph_subscriptions_email_replyto’, ”);
/* <cc20130122 changes> */
error_log(“sp_subscriptions_do_post_notification replyto is {$replyto}n”);
if($replyto == “”)
{
$replyto = spdb_table(SFFORUMS, ‘forum_id=’.$newpost[‘forumid’], ‘forum_email’);
}
error_log(“sp_subscriptions_do_post_notification replyto was blank, now is {$replyto}n”);
/* </cc20130122 changes> */
$subject = apply_filters(‘sph_subscriptions_email_subject’, __(‘Forum Post’, ‘sp-subs’).’ – ‘.get_option(‘blogname’).’: [‘.$topicname.’]’, $newpost, $user);
$email_status = sp_send_email($email, $subject, $msg, $replyto);
if (!$sent && $email_status[0]) $sent = true;
debug.log output:
[22-Jan-2013 20:13:09] sp_subscriptions_do_post_notification replyto is
[22-Jan-2013 20:13:09] sp_subscriptions_do_post_notification replyto was blank, now is tech.support.issues@phit-n-phat.mailgun.org
[22-Jan-2013 20:13:09] sp_subscriptions_do_post_notification replyto is
[22-Jan-2013 20:13:09] sp_subscriptions_do_post_notification replyto was blank, now is tech.support.issues@phit-n-phat.mailgun.org
The newly assigned email address is the address defined in forum options.
Also curious, and perhaps related, is the fact that there are four lines logged here like the function is being called twice on a single post.
In the email itself, there are also two sets of reply instructions (and has been ever since I’ve been working the issue–it was doing this before I changed any code, in other words).
[– To reply by email insert your text above this line – instructions below –]
[– To reply by email insert your text above this line – instructions below –]
So I wonder if it is somehow getting confused by the fact that my account is a forum subscriber, forum moderator, and administrator all at once?
Thanks!