Re: abook: have "Jose" also match "José"

2016-03-19 Thread Xu Wang
On Thu, Mar 17, 2016 at 5:56 PM, Cameron Simpson  wrote:
> On 16Mar2016 22:10, Xu Wang  wrote:
>>
>> On my keyboard I do not have the character é. But I would like to be
>> respectful to spell the name as they prefer so I want to keep the
>> abook entry name as José. But problem is that in mutt when I do "Jose"
>> it does not match. I can do "Jos" but sometimes I forget and in other
>> cases "Jos" might lead to many cases.
>>
>> Does anyone approach a solution for this?
>
>
> I've just had a quick play with abook. It looks like "abook --mutt-query"
> consults the nickname in addition to the name and email. So you might set
> José's nickname to "jose" and have abook find a match.
>
> It appears not to look in the "notes" section, which was my other attempt.

This works well and I am fine with this solution. I had searched
google before for how to use aliases but I could not find results.
However, thanks to you I just opened abook directly and went to
"other" tab and indeed there is nick. Or easier for many is you can
just add "nick=" directly to data text file.

It indeed is searched when query. And I think it makes sense that
notes is not searched (although maybe there is option)?

Thank you for this solution and for your time spent on helping me. It is great!

Kind regards,

Xu


Re: abook: have "Jose" also match "José"

2016-03-19 Thread Ken Moffat
On Wed, Mar 16, 2016 at 10:10:36PM -0400, Xu Wang wrote:
> Dear all,
> 
> On my keyboard I do not have the character é. But I would like to be
> respectful to spell the name as they prefer so I want to keep the
> abook entry name as José. But problem is that in mutt when I do "Jose"
> it does not match. I can do "Jos" but sometimes I forget and in other
> cases "Jos" might lead to many cases.
> 
> Does anyone approach a solution for this?
> 
> Kind regards,
> 
> Xu

It depends on your setup.  I don't use abook, but I mostly use mutt
in an X term (normally, urxvt).  I'm british, and the default keymap
lets me use AltGr for dead keys (specifically, AltGr with ; for an
acute accent, so AltGr ; e for é.  I also happen to use my own
extensions for some less-common diacriticals - but you probably
don't need those.  In a plain tty I can also do something similar,
but only because I inserted my own keymap.

If you use an american keyboard, you can see the symbols in
/usr/share/X11/xkb/symbols/us (or wherever yourr system puts that
file), and dead_acute seems to be on the key two places to the
right of 'l'.  You will also need to check the Compose sequences -
normally in /usr/share/X11/locale/en_US.UTF-8/Compose [ again,
distros and BSDs might put that in a different place, but almost all
locales use the en_US.UTF-8 Compose settings ].

You can, of course, add your own Compose settings and perhaps map
something to the Compose key (''), but like the extra
dead keys I added to my own keyboard definition, that is only
normally needed if you want to use uncommon things such as romanian
s with comma below [ ș ] or the schwa [ ə ].  If anybody does go
down that road, mass-market desktop environments such as gnome and
kde might do their best to thwart you ;-)

ĸen
-- 
This email was written using 100% recycled letters.


Re: abook: have "Jose" also match "José"

2016-03-18 Thread Cameron Simpson

On 16Mar2016 22:10, Xu Wang  wrote:

On my keyboard I do not have the character é. But I would like to be
respectful to spell the name as they prefer so I want to keep the
abook entry name as José. But problem is that in mutt when I do "Jose"
it does not match. I can do "Jos" but sometimes I forget and in other
cases "Jos" might lead to many cases.

Does anyone approach a solution for this?


I've just had a quick play with abook. It looks like "abook --mutt-query" 
consults the nickname in addition to the name and email. So you might set 
José's nickname to "jose" and have abook find a match.


It appears not to look in the "notes" section, which was my other attempt.

Cheers,
Cameron Simpson 


Re: abook add email from mutt with name containing accent

2016-03-06 Thread Xu Wang
On Sun, Mar 6, 2016 at 3:21 PM, Andreas Doll  wrote:
> On 2016-03-06 at 12:13, Xu Wang wrote:
>> However, since you have been so nice to write up details, if
>> you have a strong preference, I will make bug report. Let me know.
>
> No need to file a bug report. I was sceptical if someone writing such a
> program would forget about the fact that names contain non-ascii characters,
> and had a closer look at the abook repo. The readme [1] states that you have
> to
>
> set pipe_decode
>
> in your muttrc, which works fine for me.

Ah thank you yes that works for me as well! I wonder what consequences
are. I will ask.

Thank you for all the help!

Kind regards,

Xu


Re: abook add email from mutt with name containing accent

2016-03-06 Thread Andreas Doll
On 2016-03-06 at 12:13, Xu Wang wrote:
> However, since you have been so nice to write up details, if
> you have a strong preference, I will make bug report. Let me know.

No need to file a bug report. I was sceptical if someone writing such a
program would forget about the fact that names contain non-ascii characters,
and had a closer look at the abook repo. The readme [1] states that you have
to

set pipe_decode

in your muttrc, which works fine for me.

Best regards,
Andreas


[1]https://sourceforge.net/p/abook/git/ci/master/tree/README


Re: abook add email from mutt with name containing accent

2016-03-06 Thread Xu Wang
On Sun, Mar 6, 2016 at 7:20 AM, Andreas Doll  wrote:
> On 2016-03-05 at 23:03, Xu Wang wrote:
>> I am not planning to make bug report [...]
>
> Ah, I've overlooked the *not* - if you're still not planning on reporting this
> with the minimal example I provided please let me know, then I will.

I would prefer for you to do as such, because I do not understand what
encoding really means. I know it means represent characters in
different ways, but I have no experience so I will not understand
replies. However, since you have been so nice to write up details, if
you have a strong preference, I will make bug report. Let me know.

Kind regards,

Xu


Re: abook add email from mutt with name containing accent

2016-03-06 Thread Andreas Doll
On 2016-03-05 at 23:03, Xu Wang wrote:
> I am not planning to make bug report [...]

Ah, I've overlooked the *not* - if you're still not planning on reporting this
with the minimal example I provided please let me know, then I will.


Re: abook add email from mutt with name containing accent

2016-03-06 Thread Andreas Doll
On 2016-03-05 at 23:03, Xu Wang wrote:
> I am not planning to make bug report because I do not know how to make
> minimal example. I think minimal example would only use abook but I
> only use abook through mutt.

Minimal expectations of abook seems to be the "From:" header, so it is
sufficient to create a file containing

From: =?UTF-8?B?SsOyaG4gRMO2ZQ==?= 

and do

$ cat file | abook --add-email

which is the same as mutt does - namely calling abook, which reads the message
from stdin (compare your mutt keybindings).


I derived the above decoded string with python, to create such a failing 
example:

>>> print b64encode('Jòhn Döe').decode('utf-8')
SsOyaG4gRMO2ZQ==
>>> print b64decode('SsOyaG4gRMO2ZQ==').decode('utf-8')
Jòhn Döe

Best regards,
Andreas


Re: abook add email from mutt with name containing accent

2016-03-05 Thread Xu Wang
On Sat, Mar 5, 2016 at 2:26 PM, Andreas Doll  wrote:
> On 2016-03-05 at 01:16, Xu Wang wrote:
>> Does anyone else have a problem to use "A" to call abook to add the
>> sender's name and email as an entry if that name has an accent? For me
>> the name receives a strange questionmark and some gibberish. The name
>> displays fine in mutt so It think I have utf8 configured.
>
> Yes, I can confirm this. However, the "gibberish" is the encoding of non-ascii
> characters, compare [1], so this affects also names containing e.g. Umlaute 
> [2].
>
> Example: =?utf-8?B?Q2zDoXVkaW8gR2ls?=
>
>$ python
>>>> from base64 import *
>>>> sender = 'Q2zDoXVkaW8gR2ls'
>>>> print b64decode(sender).decode('utf-8')
>
> should give you the correct sender name with accents.
>
> Thus I'd say the fault is on abooks side, which doesn't perform the necessary
> decodings.  Maybe you want to file an issue there.

Thank you for this analysis! It is good to know I am not the only one.
I am not planning to make bug report because I do not know how to make
minimal example. I think minimal example would only use abook but I
only use abook through mutt.

Kind regards,

Xu


Re: abook add email from mutt with name containing accent

2016-03-05 Thread Andreas Doll
On 2016-03-05 at 01:16, Xu Wang wrote:
> Does anyone else have a problem to use "A" to call abook to add the
> sender's name and email as an entry if that name has an accent? For me
> the name receives a strange questionmark and some gibberish. The name
> displays fine in mutt so It think I have utf8 configured.

Yes, I can confirm this. However, the "gibberish" is the encoding of non-ascii
characters, compare [1], so this affects also names containing e.g. Umlaute [2].

Example: =?utf-8?B?Q2zDoXVkaW8gR2ls?=

   $ python
   >>> from base64 import *
   >>> sender = 'Q2zDoXVkaW8gR2ls'
   >>> print b64decode(sender).decode('utf-8')

should give you the correct sender name with accents.

Thus I'd say the fault is on abooks side, which doesn't perform the necessary
decodings.  Maybe you want to file an issue there.

Best regards,
Andreas

[1]http://stackoverflow.com/a/454848
[2]https://en.wikipedia.org/wiki/Germanic_umlaut


Re: abook to lbdb (OT?)

2015-10-16 Thread Peter P.
* Chris Bannister  [2015-10-16 00:22]:
> On Thu, Oct 15, 2015 at 11:06:34PM -0400, Patrick Shanahan wrote:
> > * Peter P.  [10-15-15 18:28]:
> > > * Patrick Shanahan  [2015-10-15 18:04]:
> > > > * Peter P.  [10-15-15 16:30]:
> > > > > Hi list,
> > > > > 
> > > > > please excuse me if this is slightly offtopic, nevertheless this 
> > > > > seems a
> > > > > propoer community to ask.
> > > > > 
> > > > > Does anyone know if/how I can export an abook data file to a format 
> > > > > that
> > > > > can be merged with lbdb's m_inmail.list file?
> > > > 
> > > > lbdb can read abook, /usr/lib64/lbdb/m_abook
> > > > 
> > > > I believe if configured that it will automatically include abook 
> > > > addresses
> > > > and will provide them when queried.
> > > 
> > > Thank you, this is what I am already doing successfully. I would just
> > > like to uninstall abook altogether (I am not using it really) and rely
> > > only on lbdb, hence I would like to import/merge abook's datafile into
> > > ~/.lbdb/m_inmail.list
> > 
> > lbdbq > m_inmail.list.new
> > 
> > cat m_inmail.list > m_inmail.list.new
> 
> Shouldn't that be:
> cat m_inmail.list >> m_inmail.list.new

Thanks Patrick, Chris,

simple and elegant, what a nice solution! 
thanks again!

best,P


Re: abook to lbdb (OT?)

2015-10-16 Thread Patrick Shanahan
* Chris Bannister  [10-16-15 00:25]:
> On Thu, Oct 15, 2015 at 11:06:34PM -0400, Patrick Shanahan wrote:
> > 
> > lbdbq > m_inmail.list.new
> > 
> > cat m_inmail.list > m_inmail.list.new
> 
> Shouldn't that be:
> cat m_inmail.list >> m_inmail.list.new
> 
> otherwise it just overwrites previous output of previous instruction?

Yes, indeed.  You are correct.
 
> > sort m_inmail.list.new | sort | uniq > m_inmail.list.new2
> > 
> > inspect m_inmail.list.new2
> > 
> > If satisfied, mv m_inmail.list m_inmail.list.old
> >   mv m_inmail.list.new2 m_inmail.list
> > 
> > When happy with new list, rm m_inmail.list.old


-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


Re: abook to lbdb (OT?)

2015-10-15 Thread Patrick Shanahan
* Peter P.  [10-15-15 18:28]:
> * Patrick Shanahan  [2015-10-15 18:04]:
> > * Peter P.  [10-15-15 16:30]:
> > > Hi list,
> > > 
> > > please excuse me if this is slightly offtopic, nevertheless this seems a
> > > propoer community to ask.
> > > 
> > > Does anyone know if/how I can export an abook data file to a format that
> > > can be merged with lbdb's m_inmail.list file?
> > 
> > lbdb can read abook, /usr/lib64/lbdb/m_abook
> > 
> > I believe if configured that it will automatically include abook addresses
> > and will provide them when queried.
> 
> Thank you, this is what I am already doing successfully. I would just
> like to uninstall abook altogether (I am not using it really) and rely
> only on lbdb, hence I would like to import/merge abook's datafile into
> ~/.lbdb/m_inmail.list

lbdbq > m_inmail.list.new

cat m_inmail.list > m_inmail.list.new

sort m_inmail.list.new | sort | uniq > m_inmail.list.new2

inspect m_inmail.list.new2

If satisfied, mv m_inmail.list m_inmail.list.old
  mv m_inmail.list.new2 m_inmail.list

When happy with new list, rm m_inmail.list.old


-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


Re: abook to lbdb (OT?)

2015-10-15 Thread Peter P.
* Patrick Shanahan  [2015-10-15 18:04]:
> * Peter P.  [10-15-15 16:30]:
> > Hi list,
> > 
> > please excuse me if this is slightly offtopic, nevertheless this seems a
> > propoer community to ask.
> > 
> > Does anyone know if/how I can export an abook data file to a format that
> > can be merged with lbdb's m_inmail.list file?
> 
> lbdb can read abook, /usr/lib64/lbdb/m_abook
> 
> I believe if configured that it will automatically include abook addresses
> and will provide them when queried.

Thank you, this is what I am already doing successfully. I would just
like to uninstall abook altogether (I am not using it really) and rely
only on lbdb, hence I would like to import/merge abook's datafile into
~/.lbdb/m_inmail.list


Re: abook to lbdb (OT?)

2015-10-15 Thread Patrick Shanahan
* Peter P.  [10-15-15 16:30]:
> Hi list,
> 
> please excuse me if this is slightly offtopic, nevertheless this seems a
> propoer community to ask.
> 
> Does anyone know if/how I can export an abook data file to a format that
> can be merged with lbdb's m_inmail.list file?

lbdb can read abook, /usr/lib64/lbdb/m_abook

I believe if configured that it will automatically include abook addresses
and will provide them when queried.

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


Re: abook to lbdb (OT?)

2015-10-15 Thread Chris Bannister
On Thu, Oct 15, 2015 at 11:06:34PM -0400, Patrick Shanahan wrote:
> * Peter P.  [10-15-15 18:28]:
> > * Patrick Shanahan  [2015-10-15 18:04]:
> > > * Peter P.  [10-15-15 16:30]:
> > > > Hi list,
> > > > 
> > > > please excuse me if this is slightly offtopic, nevertheless this seems a
> > > > propoer community to ask.
> > > > 
> > > > Does anyone know if/how I can export an abook data file to a format that
> > > > can be merged with lbdb's m_inmail.list file?
> > > 
> > > lbdb can read abook, /usr/lib64/lbdb/m_abook
> > > 
> > > I believe if configured that it will automatically include abook addresses
> > > and will provide them when queried.
> > 
> > Thank you, this is what I am already doing successfully. I would just
> > like to uninstall abook altogether (I am not using it really) and rely
> > only on lbdb, hence I would like to import/merge abook's datafile into
> > ~/.lbdb/m_inmail.list
> 
> lbdbq > m_inmail.list.new
> 
> cat m_inmail.list > m_inmail.list.new

Shouldn't that be:
cat m_inmail.list >> m_inmail.list.new

otherwise it just overwrites previous output of previous instruction?

> sort m_inmail.list.new | sort | uniq > m_inmail.list.new2
> 
> inspect m_inmail.list.new2
> 
> If satisfied, mv m_inmail.list m_inmail.list.old
>   mv m_inmail.list.new2 m_inmail.list
> 
> When happy with new list, rm m_inmail.list.old

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Re: abook: query notes field

2010-09-03 Thread Steve Schmerler
On Sep 02 17:38 -0700, Chip Camden wrote:
 
 Sorry to respond to myself -- but this version has minor improvements.

That's neat! Thanks for the nice script.

So it is either parse-it-yourself or use a full-fledged LDAP. If I
script the parser myself, I might as well set up a small sqlite db to
hold my contacts. There is no real need to use abook, then. Thanks.

best,
Steve


Re: abook: query notes field

2010-09-03 Thread Chip Camden
Quoth Steve Schmerler on Friday, 03 September 2010:
 On Sep 02 17:38 -0700, Chip Camden wrote:
  
  Sorry to respond to myself -- but this version has minor improvements.
 
 That's neat! Thanks for the nice script.
 
 So it is either parse-it-yourself or use a full-fledged LDAP. If I
 script the parser myself, I might as well set up a small sqlite db to
 hold my contacts. There is no real need to use abook, then. Thanks.
 
 best,
 Steve

That's up to you -- I still like abook for its simplicity and its other
interface features with mutt.  But mutt follows the Unix philosophy: it
provides a well-defined set of features and works well with text files
and pipes, so it easily plugs into whatever other services you prefer.

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgpCXH1tSKIoI.pgp
Description: PGP signature


Re: abook: query notes field

2010-09-02 Thread Chip Camden
Quoth Steve Schmerler on Thursday, 02 September 2010:
 Hi
 
 Say I have abook entries like
 
 [0]
 name=Bob B.
 email=...@gmail.com
 nick=bob
 notes=friend,coworker
 
 [1]
 name=Alice A.
 email=al...@gmail.com
 nick=alice
 notes=friend
 
 Is it possible to query the notes field?
 abook --mutt-query friend
 abook --mutt-query coworker
 
 abook returns Not found in that case and seems to search only in the
 name and email fields.
 
 The background is that I want to high-jack the notes field to tag
 entries with an arbitrary (comma separated) list of tags (friend,
 coworker) and, for instance, send a mail to all people with the
 friend tag.
 
 If that is not possible, what other address book systems do people use
 which can handle tags which can be queried?
 
 Thanks.
 
 best,
 Steve

I have a solution for you.  See the attached ruby script.

Change .muttrc to read:

set query_command=aqua %s

now you can search any or every field.  For instance,

Query: friend

would give you anyone with 'friend' in any field.

Query: notes=friend

would give you only people who have 'friend' in the 'notes' field.

Query state=wa notes=friend name=smith

would give you all your friends in Waashington with smith in their name.
Note that multiple arguments have an implied AND conjunction.

You can also use limited regexen (whatever you can get passed the CLI --
you might have to quote):

Query 'name=^(smith|jones)'

everyone with either smith or jones at the beginning of their name.

Enjoy!

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com
#!/usr/bin/env ruby
require 'optparse'

abook = '~/.abook/addressbook'

optparse = OptionParser.new do |opts|
  opts.banner = 'usage: aqua [-f addressbook] term...'

  opts.on('-f', '--file addressbook', 'Specify address book to use') do |file|
abook = file
  end

end

begin
  optparse.parse!
rescue OptionParser::InvalidOption, OptionParser::MissingArgument = e
  puts e
  puts optparse
  exit 1
end

search = []
ARGV.each do |arg|
  if /(\w+?)=(.+)/ =~ arg
key = $1
val = /#{$2}/i
search  lambda {|who| val =~ who[key]}
  else
val = /#{arg}/i
search  lambda {|who| who.detect {|k,v| val =~ v}}
  end
end

who = nil
puts 
File.open(File.expand_path abook).each do |line|
  case line
when /^\s*$/
  puts #{who['email']}\t#{who['name']}\t#{who['notes']} if who  
who['email']  !search.detect {|s| !s.call(who)}
when /^\[\d+\]/
  who = {}
when /^(\w+?)=(.+)/
  who[$1] = $2 if who
  end
end


pgp4cORg7jiNC.pgp
Description: PGP signature


Re: abook: query notes field

2010-09-02 Thread Chip Camden

Sorry to respond to myself -- but this version has minor improvements.

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com
#!/usr/bin/env ruby
require 'optparse'

abook = '~/.abook/addressbook'

optparse = OptionParser.new do |opts|
  opts.banner = 'usage: aqua [-f addressbook] term...'

  opts.on('-f', '--file addressbook', 'Specify address book to use') do |file|
abook = file
  end

end

begin
  optparse.parse!
rescue OptionParser::InvalidOption, OptionParser::MissingArgument = e
  puts e
  puts optparse
  exit 1
end

search = []
ARGV.each do |arg|
  if /(\w+?)=(.+)/ =~ arg
key = $1
val = /#{$2}/i
search  lambda {|who| val =~ who[key]}
  else
val = /#{arg}/i
search  lambda {|who| who.detect {|k,v| val =~ v}}
  end
end

who = nil
found = []
File.open(File.expand_path abook).each do |line|
  case line
when /^\s*$/
  found  #{who['email']}\t#{who['name']}\t#{who['notes']} if who  
who['email']  search.all? {|s| s.call(who)}
when /^\[\d+\]/
  who = {}
when /^(\w+?)=(.+)/
  who[$1] = $2 if who
  end
end

if found.size  0
  puts #{found.size} found
  puts found
else
  puts Not found
end


pgpOKNXMIqePy.pgp
Description: PGP signature


Re: abook

2010-02-27 Thread Gerard Robin

On Fri, Feb 26, 2010 at 08:55:19PM -0500, Patrick Shanahan wrote:

Date: Fri, 26 Feb 2010 20:55:19 -0500
From: Patrick Shanahan ptilopt...@gmail.com
To: mutt-users@mutt.org
Subject: Re: abook
User-Agent: Mutt/1.5.20 (2009-06-14)

* rog...@sdf.org rog...@sdf.org [02-26-10 20:31]:


Mutt is not mouse aware nor is aboot, iirc.

Thank for your explanation, I asked this question because clicking twice
inadvertently on the mouse, I sent a blank mail without subject to a friend ...

Eh. finger-erk reactions... they happen. :-/


like aboot  sb/abook   :^)


apt-cache search aboot:
aboot-base 
aboot-cross


aboot exist too :)

--
Gérard



signature.asc
Description: Digital signature


Re: abook

2010-02-26 Thread Patrick Shanahan
* Gerard Robin g.rob...@free.fr [02-26-10 13:58]:
 when I run abook, if I select an address and I hit the key m, mutt works
 properly, but if use the mouse to send an email, mutt asks nothing and
 send a blank mail to the address sélected.
 
 Shoud I do something in the file .abookrc or in muttrc ?

Mutt is not mouse aware nor is aboot, iirc.


-- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org


Re: abook

2010-02-26 Thread Gerard Robin

On Fri, Feb 26, 2010 at 03:31:18PM -0500, Patrick Shanahan wrote:

Date: Fri, 26 Feb 2010 15:31:18 -0500
From: Patrick Shanahan ptilopt...@gmail.com
To: mutt-users@mutt.org
Subject: Re: abook
User-Agent: Mutt/1.5.20 (2009-06-14)

* Gerard Robin g.rob...@free.fr [02-26-10 13:58]:

when I run abook, if I select an address and I hit the key m, mutt works
properly, but if use the mouse to send an email, mutt asks nothing and
send a blank mail to the address sélected.


Mutt is not mouse aware nor is aboot, iirc.


Thank for your explanation, I asked this question because clicking twice
inadvertently on the mouse, I sent a blank mail without subject to a friend ...

--
Gérard



signature.asc
Description: Digital signature


Re: abook

2010-02-26 Thread rogerx
when I run abook, if I select an address and I hit the key m, mutt works
properly, but if use the mouse to send an email, mutt asks nothing and
send a blank mail to the address sélected.

Mutt is not mouse aware nor is aboot, iirc.

Thank for your explanation, I asked this question because clicking twice
inadvertently on the mouse, I sent a blank mail without subject to a friend ...

Eh. finger-erk reactions... they happen. :-/

-- 
Roger
http://rogerx.freeshell.org/


Re: abook

2010-02-26 Thread Patrick Shanahan
* rog...@sdf.org rog...@sdf.org [02-26-10 20:31]:
 
 Mutt is not mouse aware nor is aboot, iirc.
 
 Thank for your explanation, I asked this question because clicking twice
 inadvertently on the mouse, I sent a blank mail without subject to a friend 
 ...
 
 Eh. finger-erk reactions... they happen. :-/

like aboot  sb/abook   :^)

-- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org


Re: Abook ?

2003-03-24 Thread Benoit Friry
Bonjour,

Ploum [EMAIL PROTECTED] a déclaré :
 J'aimerais savoir si ça vaut la peine que j'utilise abook.

Pourquoi ne pas simplement essayer et voir si ça te convient ?


benoit


Re: abook, lbdb, ...

2003-01-23 Thread Cedric Duval
Salut,

Ploum a écrit :
 Cependant, abook ne sauve pas les modifications que je fais, et donc mon
 répertoire reste complètement vide !
 (J'ai essayé w et de toutes façons autosave=true dans mon abookrc. J'ai
 même essayé en root pour voir si c'était pas un problème de permissions)

Oui, j'ai essayé abook il y a quelques temps et j'avais rencontré le
même problème.

Un 'abook --convert mutt ~/.mutt/aliases abook ~/.abook.addressbook'
résoud le problème.

 Donc je comprends pas trop.  Je ne sais pas non plus si abook pourra faire
 ce que je cherche.  Je cherche en fait à avoir :

 - la complétion automatique sur l'alias (comme les alias de mutt,
 c'est parfait)

tab

 - la complétion sur le nom, prénom, adresse email.

set query_command=abook --mutt-query %s

ctrl+T

 - des alias de groupe

alias  group  foo, bar, baz

 - de trier mes alias par catégorie (*)
 - ne pas voir certaines catégories

?

 Autre question : on m'a parlé de lbdb et que c'était complémentaire de
 abook.  En quoi cela peut-il m'aider ?

Ça permet d'utiliser les alias de Mutt et un carnet abook, mais aussi
diverses autres sources pour les requêtes. C'est plus général, donc.

-- 
Cédric



Re: abook and folder-hooks.

2002-10-15 Thread Jussi Ekholm

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Armin Wolfermann [EMAIL PROTECTED] wrote:
 * Jussi Ekholm [EMAIL PROTECTED] [15.10.2002 07:14]:
 When I open abook in vim-folder, and compose a mail to some address
 selected from there (press 'm' when the cursor's on top of the
 address I want to mail), my From-header gets mangled like this:
 
 pressing 'm' in abook starts a new instance of mutt. The new
 instance doesn't know about the previously selected folder.

I suspected this to be so, but now I'm sure about this and it's always
goot to be sure about things. So the thing goes, that one launches
Mutt from within abook, which is launched within other (the first and
main one) Mutt, right? :-)

 Oh, and this brings me to additional question: how did I query for
 abook's entries from Mutt's 'To: ' prompt again? And where the hell
 it was again where I was able to specify the file to be queried in
 this situation? I hate it when I forget things.
 
 Take a look at '4.5.  External Address Queries' in your manual.

Ah indeed, thanks! And I actually appreciate answers that refers to
something, where the question is already answered; in this case,
especially, it reminds me again of how good Mutt's manual is and from
the fact, that I shouldn't be so hasty in writing a question. I should
try to find the answers myself. So, thanks again - this article of
yours was really uplifting! :-)

- -- 
Jussi Ekholm [EMAIL PROTECTED] | http://erppimaa.ihku.org/ | 0x1410081E
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9rCl3AtEARxQQCB4RAtUrAJ9slo3dfpiiMFQdji9hXFJvWawLIACeJ3I4
szcFTnLKGppa+G++l3fK2iY=
=X5T2
-END PGP SIGNATURE-



Re: abook is ugly. What else is there?

2002-10-15 Thread Jussi Ekholm

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

MindFuq [EMAIL PROTECTED] wrote:
 I just installed abook.  How can you folks stand it?  It's so ugly
 the way it tries to be graphical.

I don't actually remember why I installed abook in the first place,
and why I put all the email addresses there; why not just aliases.
Ah well, anyway -- I don't have to watch abook very much, as all I
normally do is pressing 'A' to save the current mail's address for
future use and '^T' when composing mail to use $query_command. And
maybe it's ugly, so what... what matters, is that you can safely
save the email addresses you want to remember to its database. 

 Furthermore, it doesn't support categories; so my friends have to be
 listed next to my coworkers and vendors.

Oh well, I haven't ever even thought of this; I just have my mailing
list addresses in the top, then one fake address (---) as
delimiter and then private email addresses. I guess you are right
about this, but you could separate your friends from your coworkers
and vendors _manually_. It probably would look even uglier, but
indeed, this kind of feature is lacking abook. Although, I guess it
haven't even been developed to be full-blown business address book...

 Anyway, (hope no one is offended), what alternatives are there to
 abook?  I would most like to find something that's interoperable
 between a palm and mutt, which probably doesn't exist.  But what
 about something that can import CSV or ABA formatted address books,
 and export a mutt alias file?

I actually don't know what other stuff there's out there. This article
of main was mostly MO and my experiences with abook. And so far I
haven't had any reason to use any other address book than abook; I
guess that I would've, if I've ran to good one. Although, I would be
quite satisfied even with Mutt's aliases, so my need for a good
address book isn't very high. :-)

I'm sorry I cannot help you, but I'm again in one of my rant moods...

 What do you non-abook users use?  I don't care if it's textual or
 graphical.

I would be interested too; what other, free (non-)graphical address
books there would be available for testing? Something, that could
server the purpose of a real address book, as well (oh well, abook
can do this too, but in this case I mean GUI-software), so that I
could save phonennumbers, addresses, email addresses, URLs and whatnot
in an easily usable software.

- -- 
Jussi Ekholm [EMAIL PROTECTED] | http://erppimaa.ihku.org/ | 0x1410081E
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9rEjPAtEARxQQCB4RAks6AKCfUsueYFU5DbQCsjsPj09qYmH1DACfSvyv
yQgEr/o4UuIkRhsTemTpIe4=
=uH5W
-END PGP SIGNATURE-



Re: abook is ugly. What else is there?

2002-10-13 Thread David Britton

On Thu, Oct 10, 2002 at 11:54:00PM +, MindFuq wrote:
 
 What do you non-abook users use?  I don't care if it's textual or
 graphical.

Check out lbdb (Little Brother Data Base) -- google for 'lbdb'.  It has
a bunch of modules (including something called 'm_palm', and lots of
others) that can import address and print them out in a mutt-readable
manner (so the internal query utility can read them).  But I'll leave
that investigation to you.

/db



Re: abook is ugly. What else is there?

2002-10-11 Thread Chris Green

On Thu, Oct 10, 2002 at 11:54:00PM +, MindFuq wrote:
 
 Then it also has the problem where if you're hitting backspace to
 erase text, the cursor position shifts so that you don't know what
 you've deleted.  (mutt also has this problem)
 
This sounds more like a terminal set up problem (TERM variable) than a
mutt/abook problem.

-- 
Chris Green ([EMAIL PROTECTED])



Re: abook and forwarding mail (was: Re: Adressbook?)

2002-06-27 Thread Richard Curnow

* Jussi Ekholm [EMAIL PROTECTED] [2002-06-27]:
 David T-G [EMAIL PROTECTED] wrote:
 
  ...and then Jussi Ekholm said...
  One thing that annoys me a great deal is, that AFAIK you can't, for
  example, forward/bounce emails with abook. At least I can't find
  anything somehow related to it, but this:
  
  Once you press 'f' to forward a new mail, can't you hit tab or Q to
  query abook?
 
 Nope. When I hit tab on 'To:' prompt, I get Mutt's aliases in front of
 my eyes. I tried pressing C-b, too, which normally takes me to abook but
 it didn't work when Mutt queries you about whom to send the mail.
 

Try hitting Ctrl-T instead when you're at the 'To:' prompt after
hitting 'f' to forward.  You'll get the list of everyone in abook's
address book.  Cursor to the entries you want and hit 't' on each.  Then
hit Enter and they will be inserted into the 'To:' line.  Ignore the
duplicated commas with whitespace between - this will be cleaned up
before you get to the editor or compose window.

HTH
Richard

-- 
Richard \\\ SuperH Core+Debug Architect /// .. At home ..
  P./// [EMAIL PROTECTED]  ///  [EMAIL PROTECTED]
Curnow  \\\ http://www.superh.com////  www.rc0.org.uk
Speaking for myself, not on behalf of SuperH



Re: abook

2001-09-02 Thread Christian Ordig

On Wed, Aug 22, 2001 at 11:25:34PM -0700, Will Yardley wrote:
 is there a way to add email addresses / names to abook instead of using
 the 'alias' command in mutt?  i have mutt setup to query abook which
 works pretty well but it would be nice to be able to add addresses to
 abook as well.  a quick web search didn't turn up anything...
 
I don't know how the file format of the abook address book file is, but
maybe the address_add function of my own mutt address book script may help.

URL: http://thor.prohosting.com/~chrordig/
there in the Linux section.

good luck ;-)

-- 
Christian Ordig
Germany



Re: abook

2000-08-21 Thread Brian Salter-Duke

On Sun, Aug 20, 2000 at 11:01:59PM -0700, Jason Helfman wrote:
 How would I convert my mutt addressbook to a abook style???

I do not think this is currently possible, but the reverse is possible
with the "Little Brother Database" (lbdbq) and its m_abook module that
allows you to search the abook database from in mutt. Why would you want
to convert mutt aliases to abook?

Cheers, Brian.
 -- 
 /Jason G Helfman
 
 "At any given moment, you may find the ticket to the circus that has always
 been in your possession."
 
 Fingerprint: 6A32 3774 E390 33B5 8C96  2AA1 2BF4 BD71 35A1 C149
 GnuPG http://www.gnupg.org  Get Private!  1024D/35A1C149

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html