diff options
author | Eduardo Chappa <chappa@washington.edu> | 2014-06-20 23:23:19 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2014-06-20 23:23:19 -0600 |
commit | 121a42f3d82c1b98c384857960d14b2057a95c41 (patch) | |
tree | 3dbd271cc59b33cee35acd5a3dd55a997c7848bc /alpine/arg.c | |
parent | 60b67de2ba4be4d2bfeeeea685869e9a5a7363c0 (diff) | |
download | alpine-121a42f3d82c1b98c384857960d14b2057a95c41.tar.xz |
* new version 2.19.9992
* Alpine would not parse options from the command line, such
as -patterns-filters2, correctly.
* Add /usr/local/include as a path to find include and libs files
for openssl in FreeBSD.
* Management certificate screen now prints, in addition to the e-mail
address of the owner of the certificates, the dates of validity
and the MD5 hash of such certificates.
* crash when processing message/rfc822 attachments that are encoded
in base64.
* Openssl: if /usr/local/ssl exists, assume that this is the intended
place where ssl libraries, include files and certificates are located.
Typically, distributions do not use this directory, so its existence
indicates that Openssl has been specially installed there, so it
is probably a preferred place to get the system Openssl files.
* Postponed messages whose content-type is text/html, text/enriched and
text/richtext are sent with that content-type, even though, after
resuming composition, Alpine had changed its type to text/plain.
* HTML: <BR>, <BR />, and <BR/&> are considered the same inline tag;
the same is valid for the <HR> tag.
Diffstat (limited to 'alpine/arg.c')
-rw-r--r-- | alpine/arg.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/alpine/arg.c b/alpine/arg.c index b256de62..592adb64 100644 --- a/alpine/arg.c +++ b/alpine/arg.c @@ -4,8 +4,8 @@ static char rcsid[] = "$Id: arg.c 900 2008-01-05 01:13:26Z hubert@u.washington.e /* * ======================================================================== - * Copyright 2006-2008 University of Washington * Copyright 2013-2014 Eduardo Chappa + * Copyright 2006-2008 University of Washington * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1190,13 +1190,21 @@ pinerc_cmdline_opt(char *arg) if(!arg || !arg[0]) return 0; + if((value = strchr(arg, '=')) != NULL){ + i = value - arg; + arg[i] = '\0'; + } + else + i = -1; + for(v = ps_global->vars; v->name != NULL; v++){ - if(v->is_used && struncmp(v->name, arg, strlen(v->name)) == 0){ + if(v->is_used && strucmp(v->name, arg) == 0){ p1 = arg + strlen(v->name); + if(i > 0) arg[i] = '='; - /*----- Skip to '=' -----*/ + /*----- Skip to '=' -----*/ while(*p1 && (*p1 == '\t' || *p1 == ' ')) - p1++; + p1++; if(*p1 != '='){ char buf[MAILTMPLEN]; @@ -1208,8 +1216,11 @@ pinerc_cmdline_opt(char *arg) p1++; break; - } + } } + + + if(i > 0) arg[i] = '='; /* no match, check for a feature name used directly */ if(v->name == NULL){ |