commit:     c85644c7e9931d0b872bd1c8768aeb08cb237961
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Mon Feb 23 15:08:08 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Mon Feb 23 15:08:08 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=c85644c7

Don't store the flags in raw_filename.

---
 ag | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ag b/ag
index ca81b22..083b9ee 100755
--- a/ag
+++ b/ag
@@ -119,7 +119,7 @@ def do_full
     mail = maildir_message.data
 
     begin
-      Ag::Storage.store($options.name, mail, maildir_message.filename)
+      Ag::Storage.store($options.name, mail, maildir_message.unique_name)
     rescue => e
       $stderr.puts "Cannot save message #{mail.message_id}: #{e.message}"
       next
@@ -136,7 +136,7 @@ def do_incremental
     mail = maildir_message.data
 
     begin
-      Ag::Storage.store($options.name, mail, maildir_message.filename)
+      Ag::Storage.store($options.name, mail, maildir_message.unique_name)
       maildir_message.process unless $options.readonly
     rescue => e
       $stderr.puts "Cannot save message #{mail.message_id} (file 
#{maildir_message.filename}): #{e.message}" if $options.debug

Reply via email to