Updated
Showing
3 changed files
with
90 additions
and
15 deletions
1 | 2003-01-16 Sergey Poznyakoff | ||
2 | |||
3 | * include/mailutils/mutil.h (mu_rfc2822_references) | ||
4 | (mu_rfc2822_in_reply_to): New functions. | ||
5 | * mail/reply.c (concat,strip_message_id) | ||
6 | (get_msgid_header): Removed | ||
7 | (make_in_reply_to,make_references): Rewritten using new rfc2822 | ||
8 | functions. | ||
9 | * mailbox/mutil.c (mu_rfc2822_references) | ||
10 | (mu_rfc2822_in_reply_to): New functions. | ||
11 | |||
12 | * mh/replcomps: New file. Default format for repl utility. | ||
13 | * mh/Makefile.am: Added mhlibdir | ||
14 | |||
15 | * mh/mh_getopt.h (struct mh_option): Replaced `int key' | ||
16 | with `char *longopt'. | ||
17 | (mh_argv_preproc): New function. | ||
18 | (mh_optind,mh_optarg): Globals removed. | ||
19 | |||
20 | * mh/mh_argp.c (struct mh_argp_data): Moved to mh_getopt.h | ||
21 | (parse_opt,mh_argp_parse): Rewritten. Argument parsing goes | ||
22 | in two stages: first any old-style mh arguments are expanded | ||
23 | to corresponding GNU long options, then argp_parse is run | ||
24 | over the constructed argv array. | ||
25 | * mh/mh_getopt.c (mh_getopt): Rewritten. The main purpose is | ||
26 | to expand old-style options to their double-dash equivalents. | ||
27 | (mh_argv_preproc): New function. Preprocess the argv array. | ||
28 | |||
29 | * mh/mh_fmtgram.y (want_arg): New lexical tie-in to correctly | ||
30 | process trailing whitespace in calls like %(putaddr To: ). | ||
31 | |||
32 | * mh/mh_format.c (builtin_in_reply_to, builtin_references): | ||
33 | New functions. Interfaces to rfc2822 functions. | ||
34 | |||
35 | * mh/mh.h (RCPT_DEFAULT): Default value for rcpt_mask | ||
36 | * mh/mh_global.c: Initialize rcpt_mask with RCPT_DEFAULT. | ||
37 | * mh/mh_init.c (mh_expand_name): Correctly handle full and | ||
38 | relative pathname specifications. | ||
39 | |||
40 | * mh/fmtcheck.c: Use new struct mh_option | ||
41 | * mh/folder.c: Likewise. | ||
42 | * mh/inc.c: Likewise. | ||
43 | * mh/refile.c: Likewise. | ||
44 | * mh/repl.c: Likewise. | ||
45 | * mh/rmf.c: Likewise. | ||
46 | * mh/scan.c: Likewise. | ||
47 | * mh/whatnow.c: Likewise. | ||
48 | |||
49 | * mh/README: Updated. | ||
50 | * mh/TODO: Updated. | ||
51 | |||
1 | 2003-01-15 Wojciech Polak | 52 | 2003-01-15 Wojciech Polak |
2 | 53 | ||
3 | * auth/tls.c: Fixed typo. | 54 | * auth/tls.c: Fixed typo. | ... | ... |
... | @@ -5,31 +5,55 @@ README -- Differences between Mailutils and the RAND implementation of MH: | ... | @@ -5,31 +5,55 @@ README -- Differences between Mailutils and the RAND implementation of MH: |
5 | options is provided for backward compatibility. | 5 | options is provided for backward compatibility. |
6 | 6 | ||
7 | * Format specifications | 7 | * Format specifications |
8 | ** Function unre | 8 | |
9 | This function is a GNU extension. It removes any leading whitespace | 9 | ** New functions |
10 | and eventual "Re:" prefix from its string argument. Useful for creating | 10 | |
11 | subjects in reply messages: | 11 | *** unre |
12 | Argument: string | ||
13 | Return: string | ||
14 | |||
15 | The function removes any leading whitespace and eventual "Re:" prefix | ||
16 | from its argument. Useful for creating subjects in reply messages: | ||
12 | 17 | ||
13 | %<{subject}Subject: Re: %(unre{subject})\\n%> | 18 | %<{subject}Subject: Re: %(unre{subject})\\n%> |
14 | 19 | ||
15 | ** Function rcpt | 20 | *** rcpt |
16 | Mailutils provides new format function rcpt. The function takes a | 21 | Argument: string, one of "to", "cc", "me", "all" |
17 | string argument (one of "to", "cc", "me", "all") and returns true | 22 | Return: boolean |
18 | if the given element is present in the recipient mask (as modified | 23 | |
19 | by any --cc and --nocc options) and false otherwise. It is used in | 24 | This function returns true if the given element is present in the |
20 | default formats for repl and comp, e.g.: | 25 | recipient mask (as modified by any --cc and --nocc options) and |
26 | false otherwise. It is used in default formats for repl and comp, e.g.: | ||
21 | 27 | ||
22 | %(lit)%<(rcpt to)%(formataddr{to})%> | 28 | %(lit)%<(rcpt to)%(formataddr{to})%> |
23 | 29 | ||
24 | Notice that this means that usual replcomps file will be ignoring | 30 | Notice that this means that usual replcomps file will be ignoring |
25 | --cc and --nocc options, unless it has been modified as shown above. | 31 | --cc and --nocc options, unless it has been modified as shown above. |
26 | 32 | ||
27 | ** Function concat | 33 | *** concat |
28 | Appends whitespace + arg to str. | 34 | Argument: string |
35 | Return: none | ||
36 | |||
37 | Appends whitespace + arg to string register. | ||
38 | |||
39 | *** printstr | ||
40 | Argument: string | ||
41 | Return: none | ||
29 | 42 | ||
30 | ** Function printstr | ||
31 | Prints the value of string register, prefixed by the given argument. | 43 | Prints the value of string register, prefixed by the given argument. |
32 | 44 | ||
45 | *** in_reply_to | ||
46 | Argument: none | ||
47 | Return: string | ||
48 | |||
49 | Generates the value for the In-reply-to: header according to RFC 2822. | ||
50 | |||
51 | *** references | ||
52 | Argument: none | ||
53 | Return: string | ||
54 | |||
55 | Generates the value for the References: header according to RFC 2822. | ||
56 | |||
33 | * rmm | 57 | * rmm |
34 | 58 | ||
35 | ** Different behaviour if one of the messages in the list does not exist. | 59 | ** Different behaviour if one of the messages in the list does not exist. | ... | ... |
... | @@ -19,7 +19,7 @@ State Nice Utility Comments | ... | @@ -19,7 +19,7 @@ State Nice Utility Comments |
19 | ------------------------------------------- | 19 | ------------------------------------------- |
20 | + -20 scan | 20 | + -20 scan |
21 | + -20 inc | 21 | + -20 inc |
22 | * -20 repl Does not actually send the message. | 22 | * -20 repl See comments for whatnow |
23 | - -20 comp | 23 | - -20 comp |
24 | - -20 forw | 24 | - -20 forw |
25 | - -20 send | 25 | - -20 send |
... | @@ -36,7 +36,7 @@ State Nice Utility Comments | ... | @@ -36,7 +36,7 @@ State Nice Utility Comments |
36 | - 10 burst | 36 | - 10 burst |
37 | - 10 whom | 37 | - 10 whom |
38 | + 10 mhpath | 38 | + 10 mhpath |
39 | * 10 whatnow push,refile,send. | 39 | * 10 whatnow push,refile,send are not supported. |
40 | - 20 sortm | 40 | - 20 sortm |
41 | 41 | ||
42 | Utilities In Alphabetical Order | 42 | Utilities In Alphabetical Order | ... | ... |
-
Please register or sign in to post a comment