rn7.net/wiki

QuantifiedSelfVeilleOutils

PagePrincipale :: rn7.net :: DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur :: Vous êtes ec2-54-196-2-131.compute-1.amazonaws.com

Expérimentations :



Outils qui enregistrent l'activité de ma machine :


Les outils manuels de suivit d'activité (en mode déclaratif) :


Ce que je recherche :




Gestion de ses emails

(un peu hors sujet)
http://www.merkapt.com/entrepreneuriat/9_technologie/comment-se-sauver-des-emails-5693#more-5693



Analyse des mails


Outil complet


Bibliothèque Perl pour manipuler une boite IMAP

http://search.cpan.org/~jpaf/Net-IMAP-Simple-0.93/Simple.pm
http://search.cpan.org/~vparseval/Mail-MboxParser-0.55/MboxParser.pm

Fonctions PHP pour produire des statistiques IMAP

http://php.net/manual/en/book.imap.php

Script comlet pour produire des statistiques IMAP en php

http://learnbyblogging.com/?p=96
<?php
global $tdate$today;
$tdate getdate();
$today $tdate[0];
$php_out 0/* =1 if html format is desired. =0 for std text output */
$max_msg_size = -10.0;
$earliest_date $tdate[0];

$start_time time(); /* capture the start time for elapsed time calculation */
if ($php_out) {
   print 
"\n";
   print 
"<h1>Derek's INBOX Statistics:</h1>\n";
}
print 
"Derek's INBOX Statistics:\n";
$total_size 0.0;
/* Replace the following line for your application */
$mbox imap_open("{yourhost.com:993/imap/ssl/novalidate-cert}INBOX""username""your_password");
$n_msg imap_num_msg($mbox);
if (
$php_out)
   echo 
"<h2>Total number of mails = ".$n_msg."</h2>\n";
else
   echo 
"Total number of mails = ".$n_msg."\n";

for (
$i=1$i<=$n_msg$i++) {
  
$header imap_headerinfo($mbox,$i);
  if (
$header == false) {
     echo 
"Call failed\n";
     break;
  }
  else {
          
$size = (float) $header->Size;
          if (
$size $max_msg_size)
             
$max_msg_size $size ;
          
$msg_date=strtotime($header->Date);
          if (
$msg_date $earliest_date)
             
$earliest_date $msg_date;
          
$month_key date('Y-m',$msg_date);
          if ( 
is_null($msg_month[$month_key]))  {
                  
$msg_month[$month_key] = 0;
                  
/* $msg_size[$month_key] = 0.0; */
          
}
          
$msg_month[$month_key] += 1;
          
$msg_week[getweektodate($msg_date)] += 1;
          
$msg_week_size[getweektodate($msg_date)] += $size;
          
$msg_size[$month_key] += $size;

  }
}
foreach (
$msg_month as $key => $mon ){
        
$size $msg_size[$key]/1e6;
        
$total_size += $size;
        
printf ("Month %s has an email count of         %5d     (%5.1f MB)\n",$key$mon$size);
}
foreach ( 
$msg_week as $key => $num ) {
   
printf "Week[-%d] has an email count of    %5d     (%5.1f MB)\n",$key,$num,$msg_week_size[$key]/1e6);
}
printf ("Total mail box size = %5.1f MB\n",$total_size);
unset (
$key,$mon);
$time_elapsed time() - $start_time;
printf("Maximum email size  = %5.1f MB\n",$max_msg_size/1e6);
printf("Earliest email date = %s (%d days ago)\n",date('m/d/Y'$earliest_date),($tdate[0]-$earliest_date)/60/60/24)
;
print (
"Elapsed time = $time_elapsed seconds\n");
imap_close($mbox);
if (
$php_out)
   print 
"";

function 
getdaystodate($indate) {
  return (
$tdate[0]-$indate)/60/60/24;
}
function 
getweektodate($indate) {
  global 
$today;
  
/* echo  "Indate= $indate, today = $today\n";  */
  
return ((int) ($today-$indate)/60/60/24/7);
}
?>





http://en.wikipedia.org/wiki/Mbox
http://www.jwz.org/hacks/mork.pl

Compter le nombre des emails dans un dossier Thunderbird :
time grep '^From .*' ./.thunderbird/mmstrd1b.default/ImapMail?/imap.gmail.com/0\ Personnel -c



Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]
Query log :
SELECT * FROM wikini_pages WHERE tag = 'QuantifiedSelfVeilleOutils' AND latest = 'Y' LIMIT 1 (0.0003)
SELECT id, value FROM wikini_triples WHERE resource = "http://www.wikini.net/_vocabulary/handler/show" AND property = "http://www.wikini.net/_vocabulary/acls" (0.0002)
SELECT id, value FROM wikini_triples WHERE resource = "ThisWikiGroup:admins" AND property = "http://www.wikini.net/_vocabulary/acls" (0.0002)
select * from wikini_acls where page_tag = 'QuantifiedSelfVeilleOutils' and privilege = 'write' limit 1 (0.0002)
select * from wikini_acls where page_tag = 'QuantifiedSelfVeilleOutils' and privilege = 'read' limit 1 (0.0002)
SELECT * FROM wikini_pages WHERE tag = 'RescueTime' AND latest = 'Y' LIMIT 1 (0.0002)
SELECT * FROM wikini_pages WHERE tag = 'ImapMail' AND latest = 'Y' LIMIT 1 (0.0002)
select * from wikini_pages where comment_on = 'QuantifiedSelfVeilleOutils' and latest = 'Y' order by substring(tag, 8) + 0 (0.0002)
SELECT id, value FROM wikini_triples WHERE resource = "http://www.wikini.net/_vocabulary/action/header" AND property = "http://www.wikini.net/_vocabulary/acls" (0.0002)
SELECT * FROM wikini_pages WHERE tag = 'DerniersChangements' AND latest = 'Y' LIMIT 1 (0.0002)
SELECT * FROM wikini_pages WHERE tag = 'DerniersCommentaires' AND latest = 'Y' LIMIT 1 (0.0002)
SELECT * FROM wikini_pages WHERE tag = 'ParametresUtilisateur' AND latest = 'Y' LIMIT 1 (0.0002)
SELECT id, value FROM wikini_triples WHERE resource = "http://www.wikini.net/_vocabulary/action/footer" AND property = "http://www.wikini.net/_vocabulary/acls" (0.0002)
select * from wikini_acls where page_tag = 'QuantifiedSelfVeilleOutils' and privilege = 'write' limit 1 (0.0002)
SELECT * FROM wikini_pages WHERE tag = 'CharlesNepote' AND latest = 'Y' LIMIT 1 (0.0002)
0.003 s (total SQL time)
0.0379 s (total time)
SQL time represent : 8% of total time