On Thu, 13 Sep 2012, Michal Nazarewicz min...@mina86.com wrote:
Have you consider doing the same in bison? I consider the code totally
unreadable and unmaintainable.
On Thu, Sep 13 2012, Jani Nikula wrote:
I do not think you could easily do everything that this parser does in
bison. But
Michal Nazarewicz min...@mina86.com writes:
IMO this is totally unintuitive and not how the range should work.
date:foo..bar should return messages whose date = foo and bar. So
for instance date:november..yesterday should return messages whose date
is 2012/11/01 00:00:00 and 2012/09/12
On Thu, Sep 13 2012, Jani Nikula wrote:
I find since rounding towards past and until rounding towards future
a very simple rule. But YMMV.
To implement rounding, each date needs to have a period of time to align
to. I call that a duration. But if you have such a duration than
I propose a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 17/09/12 09:55, Rainer M Krug wrote:
> On 14/09/12 18:27, Mark Anderson wrote:
>> On Fri, 14 Sep 2012 09:50:01 +0200, Rainer M Krug
>> wrote: On 13/09/12 17:15, Damien Cassou
>> wrote:
> On Thu, Sep 13, 2012 at 5:13 PM, Jeremy Nickurak
)--Ooo--
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL:
<http://notmuchmail.org/pipermail/notmuch/attachments/20120917/8fbb08b7/attachment.pgp>
-
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL:
<http://notmuchmail.org/pipermail/notmuch/attachments/20120917/aa689057/attachment.pgp>
On Mon, 17 Sep 2012, Michal Nazarewicz wrote:
> Bison can do a lot of weird stuff including modifying how lexer
> interpretes tokens even while parsing given grammar rule.
I'll just have to take your word for it.
> I'm sorry. I sometime tend to go into extremes with my statements, so
> yes,
This patch makes it possible for notmuch-show hooks to change the
header line.
Signed-off-by: Damien Cassou
---
emacs/notmuch-show.el |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index ce5ea6f..16008b4 100644
---
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 14/09/12 18:27, Mark Anderson wrote:
> On Fri, 14 Sep 2012 09:50:01 +0200, Rainer M Krug
> wrote: On 13/09/12 17:15, Damien Cassou
> wrote:
On Thu, Sep 13, 2012 at 5:13 PM, Jeremy Nickurak
wrote:
> Gmail doesn't have folders, of
stributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see http://www.gnu.org/licenses/ . */
+
+#define _POSIX_C_SOURCE 1
+
+#include
+#include
+#include
+
+#include "date-parser.h"
+
+int main(void) {
+ char buf[1024], *ch;
+ time_t from, to;
+ struct tm tm;
+
+ setlocale(LC_ALL, "");
+
+ while (fgets(buf, sizeof buf, stdin)) {
+ if (parse_range(buf, , )) {
+ localtime_r(, );
+ ch = buf + strftime(buf, sizeof buf / 2,
+ "[%Y/%m/%d %H:%M:%S %Z, ", );
+ localtime_r(, );
+ strftime(ch, sizeof buf / 2,
+"%Y/%m/%d %H:%M:%S %Z)\n", );
+ fputs(buf, stdout);
+ }
+ }
+}
--
1.7.7.3
--
Best regards, _ _
.o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Micha? ?mina86? Nazarewicz(o o)
ooo +--ooO--(_)--Ooo--
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL:
<http://notmuchmail.org/pipermail/notmuch/attachments/20120917/77b648e9/attachment-0001.pgp>
10 matches
Mail list logo