FLEX-generated quote_fmt_scan_string() allocates a buffer
(and actually returns a pointer to it, although its prototype
in quote_fmt.h says its return value is void), which needs
to be cleaned up afterwards.
* src/prefs_account.c
* src/prefs_common.c
* src/prefs_folder_item.c
* src/prefs_quote.c
* src/quote_fmt.c
* src/quote_fmt.h
Fix compose template formats (in global preferences)
being translated under specific conditions.
Add a button to restore factory defaults for current
language.
* src/compose.c
* src/folder_item_prefs.c
* src/folder_item_prefs.h
* src/prefs_account.c
* src/prefs_folder_item.c
* src/prefs_quote.c
* src/prefs_template.c
* src/quote_fmt.c
* src/quote_fmt.h
* src/common/template.c
* src/common/template.h
Global and per-folder templates can now override the from name (this
doesn't change the account being used).
Examples:
"My other name" <%account_email> (just changes the name)
my.faked.email@address.org (overrides the address too)
doesn't change the account being used), satisfying bug #1456.
Examples:
"My other name" <%account_email> (just changes the name)
my.faked.email@address.org (overrides the address too)
* src/compose.c
* src/prefs_template.c
* src/prefs_template.h
* src/quote_fmt.c
* src/quote_fmt.h
* src/quote_fmt_lex.l
* src/quote_fmt_parse.y
Fix for bug #1493: count lines (\n chars) according to the way
format body is passed (i.e. \-escaped or not).
* src/prefs_account.c
* src/prefs_folder_item.c
* src/prefs_quote.c
* src/quote_fmt.c
* src/quote_fmt.h
remove unnecessary frame from Templates options
and improve the English of the check button label
* src/prefs_account.c
* src/prefs_folder_item.c
* src/prefs_quote.c
* src/quote_fmt.c
* src/quote_fmt.h
Per-folder templates can now be applied recursively.
Always save per-folder templates (formats were erroneously
saved only if they were enabled).
Check for validity of quotation marks everywhere there
are defined.
* src/compose.c
* src/prefs_compose_writing.c
* src/prefs_quote.c
* src/prefs_template.c
* src/prefs_template.h
* src/quote_fmt.c
* src/quote_fmt.h
* src/quote_fmt_lex.l
* src/quote_fmt_parse.y
Introduced new syntax elements (symbols and commands)
in templates/quote_fmt. Compatibility w/ old
symbols is kept.
Updated and reworked the corresponding Information
dialog.
Display the line number in dialogs that talk about
parser errors (in addition to the error message in
output).
* src/compose.c
* src/prefs_template.c
* src/quote_fmt.c
* src/quote_fmt.h
* src/quote_fmt_lex.l
* src/quote_fmt_parse.y
* src/gtk/gtkaspell.c
* src/gtk/gtkaspell.h
Added template/quote format syntactical elements
to show and query:
- current dictionary
%T to show (shows empty if not set or not enabled),
?T and !T to check if the default dictionary is
enabled and set
- current account's default dictionary
%aT to show (empty if not set or not enabled),
?aT and !aT to check if it's enabled and set
- name completion for an address, from the address
book
%ABf, %ABt, %ABc respectively show the full name got
from the address book if From, To or Cc match a single
contact.
?ABf, !ABf, ?ABt, !ABt, ?ABc and !ABc check if completion
matches any contact and if the full name is non-empty.
If From, To or Cc are lists of email addresses, only
the first address will be checked.
In compose.c, fix msginfo's To, Cc and Newsgroup address lists,
that could show a trailing ','.
Also, template/quote_fmt parser now shows the line number in case
of parser error.
* src/compose.c
Svae RMID in drafted mails too
Save quote_fmt vars for whole mails,
don't reset at each quote_fmt_init:
allows to use the same |i{var} in
various template fields
* src/prefs_template.c
* src/quote_fmt.h
* src/quote_fmt_parse.y
Same
* src/compose.c
* src/prefs_template.c
* src/quote_fmt.h
* src/quote_fmt_parse.y
prevent from executing |p and |p templates commands when
adding or replacing templates in prefs (avoids annoying and
potentially dangerous behaviours)
added quote_fmt.c
* src/prefs_common.[ch]
* src/prefs_template.c
* src/quote_fmt.c *** NEW FILE ***
* src/quote_fmt.h
move quote format symbol description code
to it's own file because it is used from
differnent code parts
Rewrote symbol description GUI
+ use table
+ add separators
+ get data from array (no more long constant strings)
* src/quote_fmt_lex.l
* src/quote_fmt_parse.y
Symbol for Literal % changed to \% instead of %%
(More logical as \ is used for quoting for other symbols)
Add |f and |p to include files and program output
Examples:
|f{/home/.../.signature}
|p{date}
* po/de.po
Correct wrong spelling for "Referenzen"