Re: abook to lbdb (OT?)
* 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?)
* 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?)
* 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
abook to lbdb (OT?)
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? Thank you for all ideas! P
Re: abook to lbdb (OT?)
* 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?)
* 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?)
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