Difference between pages "Evolution Header Format" and "Bruce Allen"

From ForensicsWiki
(Difference between pages)
Jump to: navigation, search
 
 
Line 1: Line 1:
<pre>
+
Bruce Allen is a Research Associate at the [http://www.nps.edu Naval Postgraduate School] in Monterey, California.
Subject: header test
+
From: Username <username@sendinghost.com>
+
To: Username <username@receivinghost.com>
+
Content-Type: text/plain
+
Date: Sat, 28 Jul 2007 11:52:35 +0200
+
Message-Id: <1185616355.19231.0.camel@localhost>
+
Mime-Version: 1.0
+
X-Mailer: Evolution 2.10.1
+
Content-Transfer-Encoding: 7bit
+
</pre>
+
  
Code responsible for generating Message-ID:
+
Interests include Software architecture, computer languages, parallel computing, parallel processor architectures, and supporting open-source software. Software contributions include development of the [[hashdb]] tool, development of the [[Bulk Extractor Viewer]] User Interface (used to browse Features extracted using the [[Bulk Extractor]] digital media triage tool), some of the Bulk Extractor scanners, the jlibewf and libewfcs readers, and implementations of high speed encryption and hashing algorithms that run on the Cell Broadband Engine processor.
<pre>
+
camel_header_msgid_generate (void)
+
{
+
        static pthread_mutex_t count_lock = PTHREAD_MUTEX_INITIALIZER;
+
#define COUNT_LOCK() pthread_mutex_lock (&count_lock)
+
#define COUNT_UNLOCK() pthread_mutex_unlock (&count_lock)
+
        char host[MAXHOSTNAMELEN];
+
        char *name;
+
        static int count = 0;
+
        char *msgid;
+
        int retval;
+
        struct addrinfo *ai = NULL, hints = { 0 };
+
 
+
        retval = gethostname (host, sizeof (host));
+
        if (retval == 0 && *host) {
+
                hints.ai_flags = AI_CANONNAME;
+
                ai = camel_getaddrinfo(host, NULL, &hints, NULL);
+
                if (ai && ai->ai_canonname)
+
                        name = ai->ai_canonname;
+
                else
+
                        name = host;
+
        } else
+
                name = "localhost.localdomain";
+
 
+
        COUNT_LOCK ();
+
        msgid = g_strdup_printf ("%d.%d.%d.camel@%s", (int) time (NULL), getpid (), count++, name);
+
        COUNT_UNLOCK ();
+
 
+
        if (ai)
+
                camel_freeaddrinfo(ai);
+
 
+
        return msgid;
+
}
+
</pre>
+
 
+
== References ==
+
evolution-data-server/camel/camel-mime-utils.c
+

Revision as of 15:54, 17 June 2014

Bruce Allen is a Research Associate at the Naval Postgraduate School in Monterey, California.

Interests include Software architecture, computer languages, parallel computing, parallel processor architectures, and supporting open-source software. Software contributions include development of the hashdb tool, development of the Bulk Extractor Viewer User Interface (used to browse Features extracted using the Bulk Extractor digital media triage tool), some of the Bulk Extractor scanners, the jlibewf and libewfcs readers, and implementations of high speed encryption and hashing algorithms that run on the Cell Broadband Engine processor.