vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r18231: LJSUP-7903: generate more random email m...

Committer: vsukhanov
LJSUP-7903: generate more random email message-id
U   trunk/cgi-bin/LJ/DoSendEmail.pm
Modified: trunk/cgi-bin/LJ/DoSendEmail.pm
===================================================================
--- trunk/cgi-bin/LJ/DoSendEmail.pm	2011-02-07 13:27:52 UTC (rev 18230)
+++ trunk/cgi-bin/LJ/DoSendEmail.pm	2011-02-08 04:13:44 UTC (rev 18231)
@@ -152,7 +152,9 @@
 
     # unless they specified a message ID, let's prepend our own:
     unless ($headers =~ m!^message-id:.+!mi) {
-        $headers = "Message-ID: <sch-$sender_id\@$this_domain>\r\n" . $headers;
+        my $rand = LJ::rand_chars(8);
+        my $message_id = qq|<sch-$sender_id-$rand\@$this_domain>|;
+        $headers = "Message-ID: $message_id\r\n" . $headers;
     }
 
     ## _do_send returns nothing on success or failed command on error.

Tags: livejournal, pm, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments