Re: standard input

2016-05-23 Thread Marcelo Laia
On 23/05/16 at 10:53pm, Patrice Levesque wrote:
> You may try
> directly grepping in your file to see if you get the same message, by
> searching for something you know is in your addressbook, like:
> 
>   grep email_address /home/user/.lbdb/m_inmail.list
> 
> If so, you may want to check that m_inmail.list file and look for
> garbage characters in it;
 
Yeap!

In my m_inmail.list I have this entry:

jjjkkkttt...@domain.subdomain.br  Profa. J Inês  F

When I run in a terminal:

user@user:~$ grep jjjkkkttt123 /home/user/.lbdb/m_inmail.list

I got:

Arquivo binário /home/user/.lbdb/m_inmail.list coincide com o padrão

If I remove the ^ from Inês in m_inmail.list, I got the correct way:

user@user:~$ grep jjjkkkttt123 /home/user/.lbdb/m_inmail.list
jjjkkkttt...@domain.subdomain.br  Profa. J Ines  F

So, I will need to remove all sign from my m_inmail.list? Are there some way to
by pass this?

Thank you very much!

-- 
Marcelo


Re: standard input

2016-05-23 Thread Patrice Levesque

> standard input 

Just a hunch, but this looks like what `grep` spits out when fed a
binary stream; many lbdb commands use `grep` internally.  You may try
directly grepping in your file to see if you get the same message, by
searching for something you know is in your addressbook, like:

grep email_address /home/user/.lbdb/m_inmail.list

If so, you may want to check that m_inmail.list file and look for
garbage characters in it; alternatively, some `grep` variants have a
flag to treat binary as text; GNU `grep` has --binary-files=text and
other variants probably have something similar; check your `grep`
manpage to see how to apply this to your situation, if needed.



-- 
· Patrice Levesque
· http://ptaff.ca/
· mutt.wa...@ptaff.ca
--



signature.asc
Description: Digital signature