head 1.9; access; symbols pkgsrc-2020Q3:1.8.0.16 pkgsrc-2020Q3-base:1.8 pkgsrc-2020Q2:1.8.0.14 pkgsrc-2020Q2-base:1.8 pkgsrc-2020Q1:1.8.0.10 pkgsrc-2020Q1-base:1.8 pkgsrc-2019Q4:1.8.0.12 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.8.0.8 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.6 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.4 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.8.0.2 pkgsrc-2018Q4-base:1.8 pkgsrc-2018Q3:1.7.0.22 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.20 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.18 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.16 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.14 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.7.0.10 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.7.0.8 pkgsrc-2017Q1-base:1.7 pkgsrc-2016Q4:1.7.0.6 pkgsrc-2016Q4-base:1.7 pkgsrc-2016Q3:1.7.0.4 pkgsrc-2016Q3-base:1.7 pkgsrc-2016Q2:1.7.0.2 pkgsrc-2016Q2-base:1.7 pkgsrc-2016Q1:1.6.0.6 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.4 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.2 pkgsrc-2015Q3-base:1.6 pkgsrc-2013Q2:1.5.0.48 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.46 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.44 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.42 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.40 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.38 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.36 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.34 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.32 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.5.0.30 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.28 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.26 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.24 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.22 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.20 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.18 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.16 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.14 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.12 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.10 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.8 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.6 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.4 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.5.0.2 pkgsrc-2004Q3-base:1.5 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 netbsd-1-6-1:1.3.0.2 netbsd-1-6-1-base:1.3 buildlink2:1.1.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.1 netbsd-1-5-PATCH001:1.1 netbsd-1-5-RELEASE:1.1 netbsd-1-4-PATCH003:1.1; locks; strict; comment @# @; 1.9 date 2020.11.08.17.42.45; author tron; state dead; branches; next 1.8; commitid f72w3INbLsWoQ6vC; 1.8 date 2018.11.26.12.26.19; author tron; state Exp; branches; next 1.7; commitid D4T0myJWZhju0s1B; 1.7 date 2016.04.09.08.47.36; author tron; state Exp; branches; next 1.6; commitid r7ujfVc46YNyGV1z; 1.6 date 2015.09.03.14.49.02; author wiz; state Exp; branches; next 1.5; commitid n6Uiw6tqIuekJOzy; 1.5 date 2004.08.05.07.19.25; author jlam; state dead; branches; next 1.4; 1.4 date 2003.03.20.04.38.22; author jschauma; state Exp; branches; next 1.3; 1.3 date 2002.12.03.21.21.57; author jmmv; state Exp; branches 1.3.2.1; next 1.2; 1.2 date 2002.05.29.12.13.53; author tron; state dead; branches; next 1.1; 1.1 date 2000.05.20.18.41.43; author kim; state Exp; branches 1.1.2.1; next ; 1.3.2.1 date 2003.03.20.16.39.12; author grant; state Exp; branches; next ; 1.1.2.1 date 2002.06.23.18.51.42; author jlam; state dead; branches; next ; desc @@ 1.9 log @mutt: Update to version 2.0.0 Change since version 1.14.7: + Domain-literal support for email addresses, e.g user@@[IPv6:fcXX:...] ! Buffy completion only occurs for the "change-folder" set of functions. It has been disabled for , , the fcc mailbox prompt, and the autocrypt scan mailbox prompt. ! The "save/copy message to mailbox" set of functions use the "mailbox" history list, instead of the "filename" list. ! Message-ID extraction permits values missing angle brackets and '@@' to allow properly threading the garbage sent by some providers. Mutt will add missing angle brackets when sending out replies, however. ! When adding multiple attachments, via in the compose menu, the browser menu can be exiting via after tagging the files. Previously, had to be used. ! ctrl-p/ctrl-n are by default bound to / in the editor menu. + The "cd" command allows changing the current working directory. As part of this, Mutt expands relative paths internally. There may be a change to some "prettified" relative paths because of this. ! Some configuration variable default values are localizable by translators. Currently these are: $attribution, $compose_format, $forward_attribution_intro, $forward_attribution_trailer, $status_format, $ts_icon_format, $ts_status_format. + Mutt will try to automatically reconnect to an IMAP mailbox on error, and will merge unsync'ed changes if possible. ! $crypt_protected_headers_subject defaults to "...", following the protected headers revised specification. ! Date, From, To, Cc, and Reply-To headers are stored as protected headers. + XOAUTH2 support. Please see the manual, contrib script mutt_oauth2.py, and mutt_oauth.py.README for more details. + $tunnel_is_secure, default set, assumes a connection via $tunnel is encrypted. Unsetting this will cause $ssl_starttls and $ssl_force_tls to be respected. + Patterns are tab-completable in the editor menu. ! $reply_to is consulted before $reply_self. + $copy_decode_weed, default unset, controls header weeding for and . + $pipe_decode_weed, default set, enables header weeding for . + $print_decode_weed, default set, enables header weeding for . ! format=flowed attachments are space-unstuffed when viewed, saved, piped, and printed. + The "run" command will execute MuttLisp. $muttlisp_inline_eval, if set, will execute unquoted parenthesized command arguments as MuttLisp. Please see the manual for more details about both. + $cursor_overlay, when set, will overlay the indicator, tree, sidebar_highlight, and sidebar_indicator colors onto the current line. "default" colors will be overridden and attributes will be merged. ! The message-id generation algorithm uses a random number instead of the step counter and PID. ! $ssl_force_tls defaults set. (Trying this again for 2.0). ! $hostname is set *after* muttrc processing. It can be manually set in the muttrc to avoid using DNS calls to obtain the FQDN. + $attach_save_dir specifies a directory to use when saving attachments. @ text @$NetBSD: patch-af,v 1.8 2018/11/26 12:26:19 tron Exp $ On some systems, curses.h defines TRUE and FALSE, so conditionalise them here to avoid compiler complaints about duplicate definitions. --- lib.h.orig 2018-10-06 23:43:41.000000000 +0100 +++ lib.h 2018-11-26 12:02:07.000000000 +0000 @@@@ -54,8 +54,12 @@@@ # define N_(a) a # endif -# define TRUE 1 -# define FALSE 0 +# ifndef TRUE +# define TRUE 1 +# endif +# ifndef FALSE +# define FALSE 0 +# endif # define HUGE_STRING 8192 # define LONG_STRING 1024 @ 1.8 log @mutt: Update to version 1.11.0 Changes since version 1.10.1: + inotify is used for local mailbox monitoring on Linux. Configuration flag --disable-filemonitor turns this off. + OAUTHBEARER support for IMAP, SMTP and POP via $imap_oauth_refresh_command, $smtp_oauth_refresh_command, and $pop_oauth_refresh_command. ! $pgp_timeout and $smime_timeout support 32-bit numbers. + manually updates mailbox statistics, the same way $mail_check_stats does when set. ! Thread limited views, e.g. ~(pattern), now show new mail as it arrives. ! Command line argument -z and -Z options also work for IMAP mailboxes. + $imap_condstore and $imap_qresync enable IMAP CONDSTORE and QRESYNC support, respectively. QRESYNC should provide much faster mailbox opening. ! $abort_noattach skips quoted lines (as defined by $quote_regexp and $smileys). ! Initial IMAP header downloading can be aborted with ctrl-c. + composes a message to the sender of the selected message, in the index or attachment menu. ! Address book queries ($query_format) now support multibyte characters. + Finnish translation. ! pgpring has been renamed to mutt_pgpring. ! Certificate prompts show sha-256 instead of md5 fingerprints. ! Non-threaded $sort_aux "reverse-" settings now work properly. + The manual can be generated and installed in GNU Info format. + index-format-hook and the new %@@name@@ expando for $index_format enable dynamic index formats using pattern matching against the current message. This can be used, for example, to format dates based on the age of the message. ! Relative date matching allows hour, minute, and second units: HMS. @ text @d1 1 a1 1 $NetBSD$ @ 1.7 log @Update "mutt" package to version 1.6.0. Changes since version 1.5.4: + Enabled utf-8 mailbox support for IMAP. + New expandos %r and %R for comma separated list of To: and Cc: recipients respectively. + Improved support for internationalized email and SMTPUTF8 (RFC653[0-3]). ! $use_idn has been renamed to $idn_decode. + $idn_encode controls whether outgoing email address domains will be IDNA encoded. If your MTA supports it, unset to use utf-8 email address domains. + The S/MIME message digest algorithm is now specified using the option $smime_sign_digest_alg. Note that $smime_sign_command should be modified to include "-md %d". Please see contrib/smime.rc. + $reflow_space_quotes allows format=flowed email quotes to be displayed with spacing between them. ! multipart draft files are now supported. + The "-E" command line argument causes mutt to edit draft or include files. All changes made in mutt will be saved back out to those files. + $resume_draft_files and $resume_edited_draft_files control how mutt processes draft files. + For classic gpg mode, $pgp_decryption_okay should be set to verify multipart/encrypted are actually encrypted. Please see contrib/gpg.rc for the suggested value. ! mailto URL header parameters by default are now restricted to 'body' and 'subject'. + mailto_allow and unmailto_allow can be used to add or remove allowed mailto header parameters. ! The method of setting $hostname has been changed. Rather than scanning /etc/resolv.conf, the domain will now be determined using DNS calls. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.6 2015/09/03 14:49:02 wiz Exp $ d3 2 a4 2 1.) On some systems, curses.h defines TRUE and FALSE, so conditionalise them here to avoid compiler complaints about duplicate definitions. d6 2 a7 2 --- lib.h.orig 2016-04-02 19:12:22.000000000 +0100 +++ lib.h 2016-04-09 09:34:25.000000000 +0100 d21 2 a22 2 # define HUGE_STRING 8192 # define LONG_STRING 1024 @ 1.6 log @Update to 1.5.23 using mail/mutt-devel. Upstream now calls this the stable version @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.3 2015/02/19 10:50:44 jperkin Exp $ d6 2 a7 2 --- lib.h.orig 2014-03-12 16:03:45.000000000 +0000 +++ lib.h 2014-12-19 20:41:07.000000000 +0000 d21 1 a21 1 # define HUGE_STRING 5120 @ 1.5 log @Make the mail/mutt and mail/mutt-devel packages more closely resemble each other to facilitate easier updates of the mail/mutt package when the next mutt is released. The changes to mail/mutt include: * convert mail/mutt to use bsd.options.mk * remove unnecessary patches and use subst.mk instead Approved by . @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.4 2003/03/20 04:38:22 jschauma Exp $ d3 20 a22 36 --- doc/mutt.man.in.orig Wed Mar 19 23:25:40 2003 +++ doc/mutt.man.in Wed Mar 19 23:27:11 2003 @@@@ -124,21 +124,19 @@@@ .PP .IP "~/.muttrc or ~/.mutt/muttrc" User configuration file. -.IP "/etc/Muttrc" +.IP "@@PKG_SYSCONFDIR@@/Muttrc" System-wide configuration file. .IP "/tmp/muttXXXXXX" Temporary files created by Mutt. .IP "~/.mailcap" User definition for handling non-text MIME types. -.IP "/etc/mailcap" +.IP "@@PKG_SYSCONFDIR@@/mailcap" System definition for handling non-text MIME types. .IP "~/.mime.types" User's personal mapping between MIME types and file extensions. -.IP "/etc/mime.types" +.IP "@@PKG_SYSCONFDIR@@/mime.types" System mapping between MIME types and file extensions. -.IP "/usr/local/bin/mutt_dotlock" -The privileged dotlocking program. -.IP "/usr/local/doc/mutt/manual.txt" +.IP "@@PREFIX@@/share/doc/mutt/manual.txt" The Mutt manual. .SH BUGS .PP @@@@ -174,7 +172,6 @@@@ .BR mailcap (5), .BR maildir (5), .BR mbox (5), -.BR mutt_dotlock (1), .BR muttrc (5), .BR ncurses (3), .BR sendmail (1), @ 1.4 log @Update mutt to 1.4.1: fix a buffer overflow in mutt's IMAP client code which was identified by Core Security Technologies, and fixed by Edmund Grimley Evans. A more detailed advisory will be published by Core Security. This happens to close PR pkg/20814, filed while I was updating the package. :-) @ text @d1 1 a1 1 $NetBSD: $ @ 1.3 log @Fix mutt(1) manpage so paths in the FILES section appear properly (/etc -> PKG_SYSCONFDIR and /usr/local -> PREFIX). Also remove references to the mutt_dotlock program and do not install its manpage because it does not get installed. Bump PKGREVISION to 3. Approved by tron, the maintainer. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- doc/mutt.man.in.orig Thu Aug 30 14:55:37 2001 +++ doc/mutt.man.in @@@@ -124,21 +124,19 @@@@ Editor to invoke when the ~v command is d18 1 a18 1 System definition for handing non-text MIME types. d31 1 a31 1 @@@@ -174,7 +172,6 @@@@ GNU General Public License for more deta @ 1.3.2.1 log @Pull up revision 1.4 (requested by jschauma in ticket #1223): Update mutt to 1.4.1: fix a buffer overflow in mutt's IMAP client code which was identified by Core Security Technologies, and fixed by Edmund Grimley Evans. A more detailed advisory will be published by Core Security. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.4 2003/03/20 04:38:22 jschauma Exp $ d3 3 a5 3 --- doc/mutt.man.in.orig Wed Mar 19 23:25:40 2003 +++ doc/mutt.man.in Wed Mar 19 23:27:11 2003 @@@@ -124,21 +124,19 @@@@ d18 1 a18 1 System definition for handling non-text MIME types. d31 1 a31 1 @@@@ -174,7 +172,6 @@@@ @ 1.2 log @Update "mutt" package to version 1.4. Visible changes since version 1.2.5.1 include: - Better mh support: Mutt now supports .mh_sequences files. Currently, the "unseen", "flagged", and "replied" sequences are used to store mutt flags (the names are configurable using the $mh_seq_unseen, $mh_seq_flagged, and $mh_seq_replied configuration variables). As a side effect, messages in MH folders are no longer rewritten upon status changes. - The "trashed" flag is supported for maildir folders. See $maildir_trash. - POP folder support. You can now access a POP mailbox just like an IMAP folder (with obvious restrictions due to the protocol). - URL syntax for remote folders. You can pass things like pop://account@@host and imap://account@@host/folder as arguments for the -f command line flag. - STARTTLS support. If $ssl_starttls is set (the default), mutt will attempt to use STARTTLS on servers advertising that capability. - $preconnect. If set, a shell command to be executed if mutt fails to establish a connection to the server. This is useful for setting up secure connections; see the muttrc(5) for details. - $tunnel. Use a pipe to a command instead of a raw socket. See muttrc(5) for details. (Basically, it's another way for setting up secure connections.) - More new IMAP/POP-related variables (see muttrc(5) for details): $connect_timeout, $imap_authenticators, $imap_delim_chars, $imap_peek, $pop_authenticators, $pop_auth_try_all, $pop_checkinterval, $pop_delete, $pop_reconnect, $use_ipv6. - The following IMAP/POP-related variables are gone: $imap_checkinterval, $imap_cramkey, $pop_port. - There's a new imap-fetch-mail function, which forces a check for new messages on an IMAP server. - The new-mailbox function was renamed to create-mailbox, and is bound to C instead of n by default. For a complete overview of all new features look in the "NEWS" file. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.1 2000/05/20 18:41:43 kim Exp $ d3 36 a38 63 --- muttlib.c 2000/05/16 15:23:02 2.19 +++ muttlib.c 2000/05/20 07:46:06 @@@@ -33,10 +33,12 @@@@ #include #include #include -#include #include #include +#define MIN(a,b) ((a) < (b) ? (a) : (b)) +#define MAX(a,b) ((a) < (b) ? (b) : (a)) + BODY *mutt_new_body (void) { BODY *p = (BODY *) safe_calloc (1, sizeof (BODY)); @@@@ -452,6 +454,46 @@@@ return (s); } + +char *mutt_gecos_name (char *dest, size_t destlen, struct passwd *pw) +{ + regmatch_t pat_match[1]; + size_t pwnl; + int idx; + char *p; + + if (!pw || !pw->pw_gecos) + return NULL; + + memset (dest, 0, destlen); + + if (GecosMask.rx) + { + if (regexec (GecosMask.rx, pw->pw_gecos, 1, pat_match, 0) == 0) + strfcpy (dest, pw->pw_gecos + pat_match[0].rm_so, + MIN (pat_match[0].rm_eo - pat_match[0].rm_so + 1, destlen)); + } + else if ((p = strchr (pw->pw_gecos, ','))) + strfcpy (dest, pw->pw_gecos, MIN (destlen, p - pw->pw_gecos + 1)); + else + strfcpy (dest, pw->pw_gecos, destlen); + + pwnl = strlen (pw->pw_name); + + for (idx = 0; dest[idx]; idx++) + { + if (dest[idx] == '&') + { + memmove (&dest[idx + pwnl], &dest[idx + 1], + MAX(destlen - idx - pwnl - 1, 0)); + memcpy (&dest[idx], pw->pw_name, MIN(destlen - idx - 1, pwnl)); + dest[idx] = toupper (dest[idx]); + } + } + + return dest; +} + char *mutt_get_parameter (const char *s, PARAMETER *p) { @ 1.1 log @This is the version of the "& expansion in pw_gecos" fix that will be in future versions of mutt. @ text @d1 1 a1 1 $NetBSD$ @ 1.1.2.1 log @Merge from pkgsrc-current to buildlink2 branch. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.1 2000/05/20 18:41:43 kim Exp $ @