[ninux-not-wireless] [ninux-roma] [OT] Ricerche email per TIME SLOT

Luca Cappelletti luca.cappelletti at gmail.com
Mon Jul 22 16:11:43 CEST 2013


2013/7/22 LuX <lux at ninux.org>

> Il giorno 22/lug/2013, alle ore 12:11, Alessandro (aka ArkaNet) ha scritto:
>
> Il giorno 22 luglio 2013 11:23, LuX <lux at ninux.org> ha scritto:
>
>> A qualcuno è mai capitato di dover cercare nel proprio archivio di email
>> per.. FASCIA ORARIA?
>>  (ad esempio: dalle 18:00 alle 09:00)
>>
>> --
>> LuX
>>
>>
> Per Gmail è tutto semplificato in queste stringhe
>
>  *after:
> before:
> older:
> newer:
> * Ricerca di messaggi inviati o ricevuti durante un determinato periodo
> di tempo
> Il formato data utilizzato è aaaa/mm/gg Esempio: *after:2004/04/16
> before:2004/04/18 *
> Significato: messaggi inviati tra il 16 aprile 2004 e il 18 aprile 2004.*
> *Più precisamente: messaggi inviati dopo le ore 24:00 (o 00:00) del 16
> aprile 2004 e prima del 18 aprile 2004.
> Su client come thunderbird non ne ho idea ....
>
>
>
> Uhmm.... l'avevo visto ma NON risolve per fascia oraria.
>
> Mi serve di tirar fuori tutte le mail di TUTTI i giorni dopo le 18 e prima
> delle 09.
> NON da una certa data in poi :(
>
> Possibile che non ci sia modo "facile"?
>
> Sto provando la strada di esportare tutto l'archivio in un CSV per
> lavorarci con le espressioni regolari, ma non lo vedo tanto PORTABILE come
> metodo.
>
>

apt-get install grepmail

man grepmail
...
...
...

-d
         Date specifications must be of the form of:
           - a date like "today", "yesterday", "5/18/93", "5 days ago", "5
weeks ago",
           - OR "before", "after", or "since", followed by a date as
defined above,
           - OR "between <date> and <date>", where <date> is defined as
above.

         Simple date expressions will first be parsed by Date::Parse. If
this fails, grepmail will attempt to parse the date with Date::Manip, if the
         module is installed on the system. Use an empty pattern (i.e. -d
"") to find emails without a "Date: ..." line in the header.

         Date specifications without times are interpreted as having a time
of midnight of that day (which is the morning), except for "after" and
         "since" specifications, which are interpreted as midnight of the
following day.  For example, "between today and tomorrow" is the same as
simply
         "today", and returns emails whose date has the current day. ("now"
is interpreted as "today".) The date specification "after July 5th" will
         return emails whose date is midnight July 6th or later.

...
...
...

       Get all email that you mailed yesterday

         grepmail -d yesterday sent-mail

       Get all email that you mailed before the first thursday in June 1998
that pertains to research (requires Date::Manip):

         grepmail research -d "before 1st thursday in June 1998" sent-mail

       Get all email that you mailed before the first of June 1998 that
pertains to research:

         grepmail research -d "before 6/1/98" sent-mail

       Get all email you received since 8/20/98 that wasn't about research
or your job, ignoring case:

         grepmail -iv "(research|job)" -d "since 8/20/98" saved-mail


L
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ninux.org/pipermail/not-wireless/attachments/20130722/7a46ff3e/attachment-0001.html>


More information about the Not-wireless mailing list