]> git.deb.at Git - pkg/abook.git/log
pkg/abook.git
8 years agoAdd debhelper token into maintainers scripts.
Denis Briand [Wed, 30 Dec 2015 01:52:41 +0000 (02:52 +0100)]
Add debhelper token into maintainers scripts.

8 years agoProvide debugging symbols with a new abook-dbg binary package
Denis Briand [Mon, 28 Dec 2015 01:17:21 +0000 (02:17 +0100)]
Provide debugging symbols with a new abook-dbg binary package

8 years agoRemove autotools-dev build dependency
Denis Briand [Mon, 28 Dec 2015 00:22:33 +0000 (01:22 +0100)]
Remove autotools-dev build dependency

8 years agoupdate changelog for removed patch
Denis Briand [Mon, 28 Dec 2015 00:07:02 +0000 (01:07 +0100)]
update changelog for removed patch

8 years agoUse dh-autoreconf
Denis Briand [Mon, 28 Dec 2015 00:05:24 +0000 (01:05 +0100)]
Use dh-autoreconf

8 years agoremove merged patch 03_datafile-f-switch.diff
Denis Briand [Sun, 27 Dec 2015 23:43:01 +0000 (00:43 +0100)]
remove merged patch 03_datafile-f-switch.diff

8 years agoMerge tag 'upstream/0.6.1'
Denis Briand [Sun, 27 Dec 2015 23:33:31 +0000 (00:33 +0100)]
Merge tag 'upstream/0.6.1'

Upstream version 0.6.1

8 years agoImported Upstream version 0.6.1 upstream upstream/0.6.1
Denis Briand [Sun, 27 Dec 2015 23:33:30 +0000 (00:33 +0100)]
Imported Upstream version 0.6.1

8 years agominor patch cosmetic changes
Denis Briand [Sun, 27 Dec 2015 23:09:08 +0000 (00:09 +0100)]
minor patch cosmetic changes

9 years agoAdd a closed bug (#771343)
Denis Briand [Mon, 28 Sep 2015 23:24:26 +0000 (01:24 +0200)]
Add a closed bug (#771343)

9 years agochange bug number syntax into changelog
Denis Briand [Mon, 28 Sep 2015 19:21:45 +0000 (21:21 +0200)]
change bug number syntax into changelog

9 years agodh --with autotools_dev
Rhonda D'Vine [Fri, 14 Aug 2015 09:57:35 +0000 (11:57 +0200)]
dh --with autotools_dev

9 years agoNew upstream release which incorporated patches 02_fix-manpage and 727245.
Rhonda D'Vine [Fri, 14 Aug 2015 09:40:51 +0000 (11:40 +0200)]
New upstream release which incorporated patches 02_fix-manpage and 727245.

9 years agoMerge remote-tracking branch 'origin/upstream'
Rhonda D'Vine [Fri, 14 Aug 2015 09:23:36 +0000 (11:23 +0200)]
Merge remote-tracking branch 'origin/upstream'

9 years agoImport upstream git
Rhonda D'Vine [Thu, 13 Aug 2015 15:13:45 +0000 (17:13 +0200)]
Import upstream git

9 years agoMerge remote-tracking branch 'upstream/master' into upstream
Rhonda D'Vine [Thu, 13 Aug 2015 15:08:37 +0000 (17:08 +0200)]
Merge remote-tracking branch 'upstream/master' into upstream

9 years agoMerge branch 'dh' debian/0.6.0_pre2-5
Rhonda D'Vine [Thu, 13 Aug 2015 14:58:30 +0000 (16:58 +0200)]
Merge branch 'dh'

9 years agofinalize the changelog dh
Rhonda D'Vine [Thu, 13 Aug 2015 14:48:02 +0000 (16:48 +0200)]
finalize the changelog

9 years agofix building
Rhonda D'Vine [Thu, 13 Aug 2015 14:41:12 +0000 (16:41 +0200)]
fix building

9 years agochangelog: missing entries
Raphaël Droz [Tue, 11 Aug 2015 14:46:29 +0000 (11:46 -0300)]
changelog: missing entries

9 years agoautotools: pre-release autoreconf update
Raphaël Droz [Tue, 11 Aug 2015 14:19:17 +0000 (11:19 -0300)]
autotools: pre-release autoreconf update

9 years agorelease: 0.6.1, pre-release version change commit
Raphaël Droz [Tue, 11 Aug 2015 14:18:45 +0000 (11:18 -0300)]
release: 0.6.1, pre-release version change commit

9 years agosyntax error
Denis Briand [Sun, 9 Aug 2015 15:17:39 +0000 (17:17 +0200)]
syntax error

9 years agorefresh patches
Denis Briand [Sun, 9 Aug 2015 15:12:22 +0000 (17:12 +0200)]
refresh patches

9 years agofix corruption of address book
Denis Briand [Sun, 9 Aug 2015 15:10:35 +0000 (17:10 +0200)]
fix corruption of address book

9 years agoupdate changelog with unstable updated version
Denis Briand [Sun, 9 Aug 2015 15:05:13 +0000 (17:05 +0200)]
update changelog with unstable updated version

9 years agoadd abook.install file to install some extra doc files
Denis Briand [Tue, 14 Jul 2015 17:22:29 +0000 (19:22 +0200)]
add abook.install file to install some extra doc files

9 years agoadd compat file
Denis Briand [Tue, 14 Jul 2015 16:28:24 +0000 (18:28 +0200)]
add compat file

9 years agoFix broken Vcs-git link (Closes: #791612)
Denis Briand [Tue, 14 Jul 2015 16:27:29 +0000 (18:27 +0200)]
Fix broken Vcs-git link (Closes: #791612)

9 years agoswitch to debhelper
Denis Briand [Sun, 12 Jul 2015 17:13:31 +0000 (19:13 +0200)]
switch to debhelper

9 years agoFix error into debian/postinst
Denis Briand [Sun, 12 Jul 2015 15:10:38 +0000 (17:10 +0200)]
Fix error into debian/postinst

9 years agoadd -std=gnu89 into CFLAGS
Denis Briand [Sun, 12 Jul 2015 15:08:05 +0000 (17:08 +0200)]
add -std=gnu89 into CFLAGS

9 years agoupdate changelog
Denis Briand [Mon, 6 Jul 2015 16:17:24 +0000 (18:17 +0200)]
update changelog

9 years agoSwitch to dpkg-source 3.0 (quilt) format and fix another lintian warning
Denis Briand [Mon, 6 Jul 2015 15:54:08 +0000 (17:54 +0200)]
Switch to dpkg-source 3.0 (quilt) format and fix another lintian warning

9 years agouse non-native package format
Denis Briand [Mon, 6 Jul 2015 15:12:26 +0000 (17:12 +0200)]
use non-native package format

9 years agouse dpkg-buildflags
Denis Briand [Mon, 6 Jul 2015 13:45:55 +0000 (15:45 +0200)]
use dpkg-buildflags

9 years agoset priority to high to prevent autoremove
Denis Briand [Mon, 6 Jul 2015 13:13:39 +0000 (15:13 +0200)]
set priority to high to prevent autoremove

9 years agoBump standards version to 3.9.6
Denis Briand [Mon, 6 Jul 2015 12:53:47 +0000 (14:53 +0200)]
Bump standards version to 3.9.6

9 years agoadd Denis Briand as co-maintainer
Denis Briand [Mon, 6 Jul 2015 12:50:36 +0000 (14:50 +0200)]
add Denis Briand as co-maintainer

9 years agoremove 04_clang-ftbfs patch.
Denis Briand [Mon, 6 Jul 2015 12:44:35 +0000 (14:44 +0200)]
remove 04_clang-ftbfs patch.

9 years agoFix FTBFS with clang
Arthur Marble [Tue, 30 Jun 2015 17:52:35 +0000 (19:52 +0200)]
Fix FTBFS with clang

9 years agoAdd -std=gnu89 to CFLAGS to fix FTBFS with gcc-5
Rhonda D'Vine [Tue, 30 Jun 2015 17:48:54 +0000 (19:48 +0200)]
Add -std=gnu89 to CFLAGS to fix FTBFS with gcc-5

9 years agoFix bogus free()s on error path
Peter Wu [Mon, 16 Feb 2015 18:41:57 +0000 (19:41 +0100)]
Fix bogus free()s on error path

ft contains integers and ft itself was just malloced. Do not corrupt the
heap...

9 years agoFix "Allocator sizeof operand mismatch"
Peter Wu [Mon, 16 Feb 2015 18:41:56 +0000 (19:41 +0100)]
Fix "Allocator sizeof operand mismatch"

sizeof should be used on the data that will be stored, not the pointer.
Luckily the pointers are larger than the actual data, so there is no
security issue here.

Remove sizeof(char) as it is equal to 1 by the C standard.

Caught by Clang Static Analyzer.

9 years agohtml: various fixes
Stéphane Aulery [Fri, 28 Nov 2014 16:17:48 +0000 (13:17 -0300)]
html: various fixes
  - html5 doctype
  - CSS in a <style> tag
  - finer style
  - utf-8 encoding specified
  - empty cells filled with &nbsp;

9 years agodoc: syntax typos in manpages
Stéphane Aulery [Fri, 28 Nov 2014 16:11:39 +0000 (13:11 -0300)]
doc: syntax typos in manpages

10 years agoadd-email: fixed a spurious "Valid sender address not found" in interactive-mode
Raphaël Droz [Thu, 16 Jan 2014 12:51:40 +0000 (13:51 +0100)]
add-email: fixed a spurious "Valid sender address not found" in interactive-mode
 when one of several emails addition is refused.

Original patch from Daniel <quite@hack.org>
Reported-by: Daniel <quite@hack.org>
10 years agoi18n: removed po/stamp-po from the repository
Raphaël Droz [Wed, 27 Nov 2013 16:53:02 +0000 (17:53 +0100)]
i18n: removed po/stamp-po from the repository
If present it'll most probably keep `make -C po install` from
 (re)generating gmo files (timestamp comparison).

10 years agobuild system: updating gnuconfig files to 2013-06-10
Raphaël Droz [Wed, 27 Nov 2013 13:18:12 +0000 (14:18 +0100)]
build system: updating gnuconfig files to 2013-06-10

10 years agoautotools update: 2/2: autofiles after running:
Raphaël Droz [Wed, 27 Nov 2013 13:10:45 +0000 (14:10 +0100)]
autotools update: 2/2: autofiles after running:
$ WANT_AUTOMAKE=1.13 autoreconf -vfim

Note: the gnuconfig files (config.guess and config.sub) provided are
 those from Gentoo's stable gnuconfig ebuild (from 2013-01-11).

10 years agoautotools update: 1/2: configure.ac compatibility with automake 1.13
Raphaël Droz [Wed, 27 Nov 2013 13:09:05 +0000 (14:09 +0100)]
autotools update: 1/2: configure.ac compatibility with automake 1.13

10 years agovcard built-in import: support of the BDAY (anniversary) vcard field
Gaetan Bisson [Tue, 26 Nov 2013 20:34:11 +0000 (21:34 +0100)]
vcard built-in import: support of the BDAY (anniversary) vcard field
vcard export: output BDAY and NICK vcard fields

10 years agovcard built-in import: fix segfaults when a subset of vcard ADR fields
Raphaël Droz [Tue, 26 Nov 2013 20:17:43 +0000 (21:17 +0100)]
vcard built-in import: fix segfaults when a subset of vcard ADR fields
 are provided (and/or a trailing semi-colon appended).

Reported-by: Gaetan Bisson <bisson@archlinux.org>
11 years agomisc: release notes updated
Raphaël Droz [Fri, 19 Apr 2013 16:30:56 +0000 (18:30 +0200)]
misc: release notes updated

11 years agocsv export: "allcsv" now outputs "custom" fields as well.
Raphaël Droz [Fri, 19 Apr 2013 16:20:13 +0000 (18:20 +0200)]
csv export: "allcsv" now outputs "custom" fields as well.

Fields using the "customN" scheme, defined using the "field" command
in the rc file, and using N between 1 and 5, are now part of the "allcsv" output.

11 years agocsv export: "allcsv" output changed
Raphaël Droz [Fri, 19 Apr 2013 15:32:39 +0000 (17:32 +0200)]
csv export: "allcsv" output changed
- fields name in the header are now lowercase
- "MOBILEPHONE" changed to "mobile"

11 years agoui: makes potentially destructive operations safe to wrong key presses.
Raphaël Droz [Thu, 18 Apr 2013 15:07:01 +0000 (17:07 +0200)]
ui: makes potentially destructive operations safe to wrong key presses.

When a deletion, a merge or a deduplication of entries is requested,
accounts (translated) key binding other than [y|n] as a "no" instead
of "yes" to avoid mistakes.

11 years agomouse: improve to new scrolling method implemented in 775cf2c
Raphaël Droz [Thu, 18 Apr 2013 15:03:24 +0000 (17:03 +0200)]
mouse: improve to new scrolling method implemented in 775cf2c
If the viewport reaches the top/bottom list limit, then further
scroll makes the cursor to move instead of the viewport.

11 years agoScroll whole list on mouse wheel action
Thorsten Wißmann [Sat, 12 May 2012 14:07:50 +0000 (16:07 +0200)]
Scroll whole list on mouse wheel action

This lets the whole list scroll on mouse action (button 5 and 6) instead
of just moving the selection. This also adds the scroll_speed option
that sets the number of lines the list is scrolled by.

11 years agomouse: added a hint about terminal ability to inhibit ncurses
Thorsten Wißmann [Wed, 23 Jan 2013 10:02:21 +0000 (11:02 +0100)]
mouse: added a hint about terminal ability to inhibit ncurses
 mouse events handling

11 years agoautotools update: 2/2: autofiles after `autoreconf -f`
Raphaël Droz [Sun, 20 Jan 2013 16:59:03 +0000 (17:59 +0100)]
autotools update: 2/2: autofiles after `autoreconf -f`

- Used autoconf-2.69, the version in the (currently frozen)
  Debian testing: wheezy
- Applied the externalization of gettext (intl/ files are not
  part of the repository anymore)
- autoheader pass: significantly reduced config.h.in

11 years agoautotools update: 1/2: main files
Raphaël Droz [Sun, 20 Jan 2013 16:54:28 +0000 (17:54 +0100)]
autotools update: 1/2: main files
* run autoupdate on configure.in
* renamed configure{.in => .ac}
* unbundle libintl: AM_GNU_GETTEXT([external])
* added a couple of files to .gitignore

11 years agoi18n: .pot and po files updated to latest code
Raphaël Droz [Sun, 20 Jan 2013 16:45:04 +0000 (17:45 +0100)]
i18n: .pot and po files updated to latest code

11 years agomiscellaneous fixes & doc: i18n, custom format and vcard
Raphaël Droz [Sun, 20 Jan 2013 16:20:44 +0000 (17:20 +0100)]
miscellaneous fixes & doc: i18n, custom format and vcard

* converted HOWTO.translating_abook to UTF-8, added a couple of lines
 about quickly installing and testing new translations and updated URL
 of some po-related softwares.

* fixed a trivial error with custom format strncpy() initialization

* vcard builtin import: removed variables unused since e3aa1d4

* vcard export: set a "PREF" EMAIL field attribute (not [yet]
  used by vcard import though)

* vcard libvformat import:
  - fixed segfault on 64bits arch where a va_list's NULL sentinel value
    must be properly casted [sizeof(int) != sizeof(char *)]
  - now really import multivalued fields (better use of libvformat):
    VFGP_FIND instead of VFGP_GET + vf_get_next_property()
  - use of abook_list instead of strconcat for multivalued fields
    (groups and emails)
  - no more duplicated phone numbers if one or more *PHONE/FAX is
    provided while no HOMEPHONE is available

11 years agovcard import: fixing the "ADR" field
Raphaël Droz [Sun, 13 Jan 2013 12:31:20 +0000 (13:31 +0100)]
vcard import: fixing the "ADR" field
* cleaner code for vcard_parse_address() (the abook's built-in vcard parser)
* vcard_parse_address() now parses "ADR" w.r.t. rfc6350
* fixed the libvformat-based "ADR" import in a similar way

11 years agovcard export: ADR field's components now respect the order
Sébastien Guillet [Sun, 13 Jan 2013 11:49:10 +0000 (12:49 +0100)]
vcard export: ADR field's components now respect the order
 defined by the rfc6350 section-6.3.1.

11 years ago* custom output format: fixes and enhancements
Raphaël Droz [Wed, 2 Jan 2013 13:56:45 +0000 (14:56 +0100)]
* custom output format: fixes and enhancements
 - support for the {groups} placeholder
 - support for escaped characters (\n, \t, ...)
 - removed the leading empty line from the output
 - fix segfaults when an empty or a special format string
  was provided
 - referenced --outformatstr in --help
 - code cleanup: use of built-in ITEM_FIELDS and standard_fields[]
  to fetch standard fields numbering

* vcard output: removed the leading empty line
(which is mutt-specific)

* colors: added the has_colors() ncurses check
before actually initializing colors.

* Changelog, RELEASE_NOTES, AUTHORS and THANKS files updated

11 years agoldif: removed ldif_fix_string()
Raphaël Droz [Wed, 19 Dec 2012 01:55:28 +0000 (02:55 +0100)]
ldif: removed ldif_fix_string()
WARNING: this will change the default output file
 encoding when importing a LDIF input!

- An LDIF input of UTF-8 entries is base64-encoded (RFC)
 str_parse_line() already supports that pretty well.
- But ldif_fix_string(), present since the initial
 CVS revision of abook, forces the conversion of utf-8
 wide-chars to latin1.
- And that's why iconv exists

=> so let's drop it unless someone complains for a good reason.

11 years agoldif: export all available emails for an entry
Raphaël Droz [Wed, 19 Dec 2012 01:53:05 +0000 (02:53 +0100)]
ldif: export all available emails for an entry

All available emails are now part of the LDIF output
in the form of multiple "email:" attributes.

11 years agoldif: deeply reworked LDIF fields processing!
Raphaël Droz [Wed, 19 Dec 2012 01:36:29 +0000 (02:36 +0100)]
ldif: deeply reworked LDIF fields processing!

* import: now relies on item_f*t() only when it's safe
  Internal field assignation used to be very wrong what made the
  LDIF import unreliable. This is not the case anymore
* import: ability to consider additional aliases of LDIF attributes,
  eg: "zip" for "postalcode", "fax" for "facsimiletelephonenumber", ...
* import: multiple emails support (up to 2, naturally)
* import/export: added support for "description" (NOTES),
  "anniversary" and "ou" (GROUPS)
* export: replaced the attribute named "xmozillaanyphone" by
  the _more standard_ "telephonenumber"

Code has been heavily commented and hopefully opens the way
 to a better and more extensible LDIF importer.

The last chunk of that patch is a bit unclear but very simple:
  LDIF export got rid of some uneeded indirections: there's no point
  in testing LDIF_ITEM_FIELDS and doing ldif_conv_table[] translations.
  Iterating over j until ITEM_FIELDS to grab names from
  ldif_field_names[j] is enough.

Other than new features, effective changes to LDIF export
 brought by this commit are:
* attribute order is changed (eg: the URL attribute will
  displayed after MOBILEPHONE)
* no more empty ",mail:" in the "dn:" when no email exists
* export now uses the "telephonenumber" attribute
  instead of "xmozillaanyphone" previously
The LDIF import may be (undetectably) slower.

That being said, the results a the below command are now
 far more reliable.
$ diff ~/.abook/addressbook
       <( ./abook --convert --infile ~/.abook/addressbook --outformat ldif | \
          ./abook --convert --informat ldif --outformat abook )

11 years agoldif: Don't arbitrarily reject LDIF records missing a
Raphaël Droz [Thu, 13 Dec 2012 17:00:35 +0000 (18:00 +0100)]
ldif: Don't arbitrarily reject LDIF records missing a
 "xmozillanickname" (NICK) field.

11 years agoldif: don't dump "email:" if the email field is empty.
Raphaël Droz [Thu, 13 Dec 2012 16:31:17 +0000 (17:31 +0100)]
ldif: don't dump "email:" if the email field is empty.

11 years agoldif: support parsing from stdin
Raphaël Droz [Thu, 13 Dec 2012 15:47:00 +0000 (16:47 +0100)]
ldif: support parsing from stdin

ldif parser used to seek in the file handler to grab multi-line
 strings, thus creating buggy records when input was stdin.
It now reads-ahead the next line in order to work consistently with
 unseekable streams like stdin.

11 years agoldif: cleanup ldif_convert()
Raphaël Droz [Thu, 13 Dec 2012 16:01:14 +0000 (17:01 +0100)]
ldif: cleanup ldif_convert()

* removed the "dirty hack" about LDIF_ITEM_FIELDS
* removed a useless free() causing segfaults
* don't process "objectclass" fields as we don't do anything about them

11 years agoldif: Don't process the whole list of ldif fields, once one
Christian Brabandt [Thu, 13 Dec 2012 15:57:32 +0000 (16:57 +0100)]
ldif:  Don't process the whole list of ldif fields, once one
 has been found matching.

See:
* http://permalink.gmane.org/gmane.comp.tools.abook.devel/40

11 years agoldif: According to RFC 2849, LDIF field names are not case-sensitive.
Christian Brabandt [Thu, 13 Dec 2012 11:46:14 +0000 (12:46 +0100)]
ldif: According to RFC 2849, LDIF field names are not case-sensitive.

See:
* http://permalink.gmane.org/gmane.comp.tools.abook.devel/39
* http://article.gmane.org/gmane.mail.mutt.user/39770

11 years agovformat: fixed a build failure when libvformat is not enabled.
Raphaël Droz [Wed, 12 Dec 2012 00:15:53 +0000 (01:15 +0100)]
vformat: fixed a build failure when libvformat is not enabled.
 (what is the default)

vcard.[ch] files shouldn't be included if they are unwanted.
 Makefile.am and configure.in have been fixed and auto'files
 regenerated.

Reported-by: Raniere <ra092767@ime.unicamp.br>
11 years agovformat: make use of libvformat to parse vcard input
Raphaël Droz [Wed, 7 Nov 2012 23:04:01 +0000 (00:04 +0100)]
vformat: make use of libvformat to parse vcard input

11 years agovformat: Makefile.in regenerated
Raphaël Droz [Wed, 7 Nov 2012 23:03:34 +0000 (00:03 +0100)]
vformat: Makefile.in regenerated

11 years agovformat: added new files to Makefile.am
Raphaël Droz [Wed, 7 Nov 2012 23:03:25 +0000 (00:03 +0100)]
vformat: added new files to Makefile.am

11 years agovformat: added abook's specific libvformat wrapper: vcard.[ch]
Raphaël Droz [Wed, 7 Nov 2012 23:03:06 +0000 (00:03 +0100)]
vformat: added abook's specific libvformat wrapper: vcard.[ch]

11 years agovformat: autoreconf
Raphaël Droz [Wed, 7 Nov 2012 18:43:08 +0000 (19:43 +0100)]
vformat: autoreconf

11 years agovformat: libvformat configure option added to configure.in
Raphaël Droz [Wed, 7 Nov 2012 18:42:56 +0000 (19:42 +0100)]
vformat: libvformat configure option added to configure.in

11 years agoUpdated to latest autotools: automake-1.11.6, autoconf-2.68 $ autoreconf -f
Raphaël Droz [Wed, 7 Nov 2012 18:20:02 +0000 (19:20 +0100)]
Updated to latest autotools: automake-1.11.6, autoconf-2.68 $ autoreconf -f

11 years agocommand-line containing --outformat is less-error prone.
Raphaël Droz [Mon, 3 Dec 2012 13:28:58 +0000 (14:28 +0100)]
command-line containing --outformat is less-error prone.

Since --convert isn't mandatory anymore for --outformat to be used
(what was conflicting with --mutt-query), we removed the call to
set_convert_var() in 141acfcc.

We now need to test that one of MODE_CONVERT and MODE_QUERY is 'on'
before allowing the use of --outformat.
$ abook --outformat anyformat < file # won't hang anymore

11 years ago* exit() if an unsupported outformat is given after --mutt-query.
Raphaël Droz [Tue, 6 Nov 2012 22:55:17 +0000 (23:55 +0100)]
* exit() if an unsupported outformat is given after --mutt-query.
* More documentation about (query + formats) possibilities
  (comments + manpage)

11 years agovformat: vCard format can now be used in the context of --mutt-query
Raphaël Droz [Tue, 6 Nov 2012 21:56:34 +0000 (22:56 +0100)]
vformat: vCard format can now be used in the context of --mutt-query
eg:
 $ abook --mutt-query "Max" --outformat vcard
 will only dump abook's entries matching "Max", using the vCard output format.

12 years agoChangelog updated
Raphaël Droz [Wed, 24 Oct 2012 16:00:23 +0000 (18:00 +0200)]
Changelog updated

12 years agocustom output format (4/4): document custom output format in abook(1)
Raphaël Droz [Wed, 24 Oct 2012 16:22:55 +0000 (18:22 +0200)]
custom output format (4/4): document custom output format in abook(1)

12 years agocustom output format (3/4): added the --outformatstr option
Raphaël Droz [Tue, 30 Aug 2011 14:27:44 +0000 (16:27 +0200)]
custom output format (3/4): added the --outformatstr option
* Allows the definition of a custom output format using placeholders.
* Registers the two functions: custom_export_database() and custom_print_item()
 respectively for e_filters and u_filters.

--outformatstr only applies if --outformat=custom has been specified and
if we are querying the database (presence of the --mutt-query option)

If the first character of --outformatstr is a '!', then each entry
is checked before output: it will be full skipped if any of its fields
among those requested is NULL.

Example:
$ abook --mutt-query "Max" --outformat custom --outformatstr "!{nick}: {mobile}"
max: +336863331XX

While querying is no more mutt-centric the --mutt-query option name
has *not* been duplicated nor renamed, given its wide use.

(http://sourceforge.net/mailarchive/message.php?msg_id=27849095)

12 years agocustom output format (2/4): item-based and the other database-based output functions
Raphaël Droz [Tue, 30 Aug 2011 14:20:39 +0000 (16:20 +0200)]
custom output format (2/4): item-based and the other database-based output functions

* custom_export_database() takes care of building a field_types pointer
  from the format string by calling parse_custom_format().
* custom_export_item() output each entry according to the format string
  itself + the associated *field_types.

The default value for custom_format is: "{nick} ({name}): {mobile}"

12 years agocustom output format (1/4): created a parser for {placeholders}
Raphaël Droz [Tue, 30 Aug 2011 13:57:52 +0000 (15:57 +0200)]
custom output format (1/4): created a parser for {placeholders}

This creates a field_types pointer from a string containing placeholders
where fields' names are allowed.

field_types *ft is terminated by the magic value 66 and is initialized
by parse_custom_format() (see the part 2/3)

12 years agomutt-query (3/3): register the --mutt-query-format per-item filter and use it
Raphaël Droz [Tue, 30 Aug 2011 13:42:09 +0000 (15:42 +0200)]
mutt-query (3/3): register the --mutt-query-format per-item filter and use it

12 years agomutt-query (2/3): moved mutt full database querying to mutt_query_export_database...
Raphaël Droz [Tue, 30 Aug 2011 13:31:31 +0000 (15:31 +0200)]
mutt-query (2/3): moved mutt full database querying to mutt_query_export_database() inside filter.c

12 years agomutt-query (1/3): moved muttq_print_item() from abook.c to filter.c
Raphaël Droz [Tue, 30 Aug 2011 10:25:49 +0000 (12:25 +0200)]
mutt-query (1/3): moved muttq_print_item() from abook.c to filter.c

12 years agoconvert (1/1): introduced prototypes for per-item filtering functions.
Raphaël Droz [Tue, 30 Aug 2011 09:53:36 +0000 (11:53 +0200)]
convert (1/1): introduced prototypes for per-item filtering functions.
Filtering and output on a per-entry basis rather than in a main-loop is
needed as soon as we want both query + formatting.

The abook_output_item_filter is aimed to store query-compatible output filters.
For most output formats generate a strict and standard-compliant output and won't
need this.
But the goal is the have a generic customizable format compatible with an
hypothetic --query switch.

As a future example, --mutt-query could be seen as:
 --query --format="{email} {name}"

(see the 6 following patches)

12 years agoRemove duplicates
Fabio Zanini [Mon, 2 Jul 2012 11:34:30 +0000 (13:34 +0200)]
Remove duplicates

12 years agoMerge entries
Fabio Zanini [Mon, 2 Jul 2012 09:13:51 +0000 (11:13 +0200)]
Merge entries

12 years agoMutt groups support
Fabio Zanini [Sun, 1 Jul 2012 15:59:37 +0000 (17:59 +0200)]
Mutt groups support

12 years agoadded a 'git' entry in the Changelog
Raphaël Droz [Sun, 23 Sep 2012 14:01:21 +0000 (16:01 +0200)]
added a 'git' entry in the Changelog