[wp-hackers] WP-Hackers Stats for August 2006
Roy Schestowitz
r at schestowitz.com
Fri Sep 1 10:58:55 GMT 2006
___/ On Fri 01 Sep 2006 07:58:07 BST, [ Diwaker Gupta ] wrote : \___
>> ***** Most used email clients:
>> +----+----Mailer------------------------------------+--Msg-+-Percent-+
>> | 1 | (unknown) | 297 | 49.34 % |
>
> is this gmail?
I had to check this to be sure...
,----
| roy at BAINE:~/Main/Programs/mls-1.3> fgrep Agent *
| README.txt: Email clients are taken from "X-Mailer:" or "User-Agent:" or
| "X-Newsreader:"
| Binary file mls matches
| mls.1:.I User-Agent:
| mls.c: // regex for X-Mailer/User-Agent/X-Newsreader/Message-ID
| mls.c: if (regcomp(&r_m_fag, "^ {0,}(Forte Agent [0-9]+\\.[0-9]?)",
| REG_EXTENDED) > 0) myWarn("Error compiling regex!","(x-mailer)",5);
| Binary file mls.o matches
| mls_stat.c:void GetMailer(char *mail) { // remove versions from
| X-Mailer/User-Agent/X-Newsreader line
| mls_stat.c: if (!regexec(&r_m_fag, mail, MAX_REGMATCH, pm, 0)) { // Forte
| Agent
| mls_stat.c: M ... X-Mailer/User-Agent/X-Newsreader line
| mls_stat.c: char sMail[MAX_SUBJ]=""; //
| X-Mailer/User-Agent/X-Newsreader/Message-ID header line
| mls_stat.c: if (!strncasecmp(riadok,"User-Agent: ",12)) {
| Binary file mls_stat.o matches
`----
It seems like Google wouldn't specify anything in the
headers (I had a quick look through yours). It's rather odd
because, at least in UseNet, it identifies itself as G2,
which stands for Google Groups, as the user-agent.
I'll add an exception for GMail and recompile. There is no
way to guarantee that a sender with a GMail address actually
uses GMail. I think I have just found a candidate though,
e.g. in your case:
Message-ID: <891be9410608312358l49ff4e8elfe43cb840640fb99 at mail.gmail.com>
Can catch the domain with a regex.
More information about the wp-hackers
mailing list