- Added framework to quote or encode headers using B encoding as needed.
- Use this to encode the subject when necessary.
- From/To header encoding is currently disabled because the name/address parsing is not strong enough.
Add one reference example to illustrate what can be done with templates, and
for folks to use as a stepping stone to branding HylaFAX with their own 'look
and feel'. This is not meant to be the 'one true way' to do it, but rather
just a sample that illustrates most of the features/functionality. We hope
to see several other samples in here in future releases.
Aidan Van Dyk [Mon, 29 Jan 2007 19:58:20 +0000 (19:58 +0000)]
The subtle way BuildAttachArgs uses quotes and whitespace was missed when
it was taken for use in pollrcvd and faxrcvd. This makes them both use
it was intended.
Also - fix file_XXX to be files_XXX which is what BuildAttachArgs expects.
Aidan Van Dyk [Mon, 29 Jan 2007 19:55:08 +0000 (19:55 +0000)]
Wrapping the $COMMAND in ($COMMAND) to allow command to pipe/redirect, etc.
isn't quite enough, because bash "quotes" the | in the string. We need to use eval
if we want the admin to be able to write complicated strings for programs.
Aidan Van Dyk [Fri, 26 Jan 2007 19:13:15 +0000 (19:13 +0000)]
This expands the #INCLUDE functionality of the template AWK code to allow
it to search for the included file in a set of paths. This set's the path
to the file the initial template is taken from, so templates using #INCLUDE
don't have to put full paths in.
Aidan Van Dyk [Thu, 25 Jan 2007 15:50:15 +0000 (15:50 +0000)]
This changes how PAM authentication is done.
1) Straightens out hosts/pam checks in checkUser/checkPasswd
2) Moves all PAM related functions to PAM.c++ from both User.c++ and Login.c++
3) Changes PAM to not try and re-use existing sessions. This has
been reported to cause problems, using separate sessions seems to fix this.
Giuseppe Sacco [Sun, 21 Jan 2007 17:50:05 +0000 (17:50 +0000)]
Debian stuff intended for creating a debian package with
latest source code from CVS. The package created is different from the
"standard" Debian package since:
1. there is "twin directory" configuration: all configuration files are
in $SPOOL/etc
2. debconf isn't used
3. there are no Debian patches
4. on package instead of three (-client, -server, -doc)
5. this package is not compliant to debian policy standard
Patrice Fournier [Fri, 12 Jan 2007 22:23:49 +0000 (22:23 +0000)]
- Make sure the file redirections apply to the complete command, even when pipes are part of it.
- Also use the fallback encoders when encoders are defined but not executable.
Aidan Van Dyk [Tue, 9 Jan 2007 14:09:10 +0000 (14:09 +0000)]
This simplifies the mime encoder selection and handling to follow the design:
1) configure no longer *searches* for encoders. If they are passed
into configure (args, config.*) fine. configure only uses them for
setting the defaults when processing faxsetup.sh.in
2) faxsetup.sh does the looking/verifying of encoders. It verifies only
3 things:
- BASE64ENCODE (tries mimencode, base64-encode, then uuencode -m)
- QPENCODE (ties mimencode -q, the qp-encode)
- MIMENCODE (looks for mimencode)
3) MIMENCODE is set for bacwards compatibly (notify-4.2, notify-4.1,
etc)
4) mimeEncode in common-functions tries *only* the one encoder, then
falls back to $AWK based encoders
Patrice Fournier [Sat, 23 Dec 2006 02:18:39 +0000 (02:18 +0000)]
- Moved BuildAttachArgs to common-functions
- Used BuildAttachArgs in faxrcvd.
- Add templating support to pollrcvd. (default to faxrcvd templates if pollrcvd specific ones are not found)
Patrice Fournier [Sat, 23 Dec 2006 02:14:42 +0000 (02:14 +0000)]
- Moved BuildAttachArgs to common-functions
- Used BuildAttachArgs in faxrcvd.
- Added templating support to pollrcvd. (default to faxrcvd templates if pollrcvd specific ones are not found)
Patrice Fournier [Tue, 21 Nov 2006 03:56:03 +0000 (03:56 +0000)]
Because faxqclean notion of cover page naming was not complete (following the naming change), there were some instances where faxqclean would delete data files which were still needed. There was also a possibility of a segfault.
Thanks to Rob Poe for having reported there was a problem with faxqclean on hylafax-users.
Details:
* faxqclean would crash on doc#.cover left from an older release
where # is less than 10
* faxqclean would remove cover already sent for jobs in sendq
* faxqclean would remove doc###.cover for jobs created by an older
release but still in sendq
* faxqclean would remove prepared cover even for jobs in sendq
Patrice Fournier [Fri, 10 Nov 2006 09:50:37 +0000 (09:50 +0000)]
* Notify templates were missing the beginning of the message for all languages (ro still need to be checked).
* pl templates were incorrectly encoded
* To header was missing for notify-failed.txt in all languages.
* fr templates had missing or wrong translations
Also for French templates (other were already done):
* Destination line (fax info) appears twice in many messages
* Wrong or missing To headers in faxrcvd templates
* Pager templates contain non-pager queue information.
* Base64 encoding with uuencode was broken on 3 Oct
* uuencode STDERR was not redirected to $ERRORSTO
* There was a small possibility of corruption a base64 output produced
by uuencode if an encoded line started with "begin"