Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Fri, 6 May 2005 18:59:27 +0000 (18:59 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Fri, 6 May 2005 18:59:27 +0000 (18:59 +0000)
- fix bug #3964
- clarify documentation about $msgid_format and $hostname

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@287 e385b8ad-14ed-0310-8656-cc95a2468c6d

doc/manual.txt
init.h
sendlib.c

index c127ae9..bef333f 100644 (file)
 
        Default: ''
 
-       Specifies the hostname to use after the ``@'' in local e-mail addresses.  This
-       overrides the compile time definition obtained from /etc/resolv.conf.
+       Specifies the hostname to use after the ``@'' in local e-mail addresses and
+       during generation of Message-Id: headers.
+
+       Please be sure to really know what you are doing when changing this variable to
+       configure a custom domain part of Message-IDs.
 
        _\b6_\b._\b3_\b._\b9_\b3  _\bi_\bg_\bn_\bo_\br_\be_\b__\bl_\bi_\bs_\bt_\b__\br_\be_\bp_\bl_\by_\b__\bt_\bo
 
        mailing lists.  When _\bs_\be_\bt, if the ``Reply-To:'' header field is set to the same
        value as the ``To:'' header field, Mutt-ng assumes that the ``Reply-To:''
        header field was set by the mailing list to automate responses to the list, and
+
+       The Mutt-ng E-Mail Client                                                    87
+
        will ignore this field.  To direct a response to the mailing list when this
        option is set, use the _\bl_\bi_\bs_\bt_\b-_\br_\be_\bp_\bl_\by function; _\bg_\br_\bo_\bu_\bp_\b-_\br_\be_\bp_\bl_\by will reply to both the
        sender and the list.
 
-       The Mutt-ng E-Mail Client                                                    87
-
        _\b6_\b._\b3_\b._\b9_\b4  _\bi_\bm_\ba_\bp_\b__\ba_\bu_\bt_\bh_\be_\bn_\bt_\bi_\bc_\ba_\bt_\bo_\br_\bs
 
        Type: string
 
        Type: string
 
+       The Mutt-ng E-Mail Client                                                    88
+
        Default: ''
 
        Availability: IMAP
 
-       The Mutt-ng E-Mail Client                                                    88
-
        Mutt-ng requests these header fields in addition to the default headers (``DATE
        FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-
        REPLY-TO REPLY-TO LINES X-LABEL'') from IMAP servers before displaying the
        scribed folders or all folders.  This can be toggled in the IMAP browser with
        the _\bt_\bo_\bg_\bg_\bl_\be_\b-_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bb_\be_\bd function.
 
+       The Mutt-ng E-Mail Client                                                    89
+
        _\b6_\b._\b3_\b._\b1_\b0_\b1  _\bi_\bm_\ba_\bp_\b__\bm_\ba_\bi_\bl_\b__\bc_\bh_\be_\bc_\bk
 
        Type: number
 
-       The Mutt-ng E-Mail Client                                                    89
-
        Default: 5
 
        This variable configures how often (in seconds) Mutt-ng should look for new
        closing an IMAP folder somewhat slower. This option exists to appease speed
        freaks.
 
+       The Mutt-ng E-Mail Client                                                    90
+
        _\b6_\b._\b3_\b._\b1_\b0_\b5  _\bi_\bm_\ba_\bp_\b__\br_\be_\bc_\bo_\bn_\bn_\be_\bc_\bt
 
        Type: quadoption
 
-       The Mutt-ng E-Mail Client                                                    90
-
        Default: ask-yes
 
        Availability: IMAP
        Default: ask-yes
 
        Controls whether or not a copy of the message(s) you are replying to is
+
+       The Mutt-ng E-Mail Client                                                    91
+
        included in your reply.
 
        _\b6_\b._\b3_\b._\b1_\b1_\b0  _\bi_\bn_\bc_\bl_\bu_\bd_\be_\b__\bo_\bn_\bl_\by_\bf_\bi_\br_\bs_\bt
 
-       The Mutt-ng E-Mail Client                                                    91
-
        Type: boolean
 
        Default: no
              %C
                    current message number
 
+       The Mutt-ng E-Mail Client                                                    92
+
              %d
                    date and time of the message in the format specified by ``date_for-
                    mat'' converted to sender's time zone
 
-       The Mutt-ng E-Mail Client                                                    92
-
              %D
                    date and time of the message in the format specified by ``date_for-
                    mat'' converted to the local time zone
                    (_O_riginal save folder)  Where Mutt-ng would formerly have stashed
                    the message: list name or recipient name if no list
 
+       The Mutt-ng E-Mail Client                                                    93
+
              %s
                    subject of the message
 
-       The Mutt-ng E-Mail Client                                                    93
-
              %S
                    status of the message (N/D/d/!/r/*)
 
                    the current local time. ``fmt'' is expanded by the library function
                    ``strftime''; a leading bang disables locales.
 
+       The Mutt-ng E-Mail Client                                                    94
+
              %>X
                    right justify the rest of the string and pad with character 'X'
 
-       The Mutt-ng E-Mail Client                                                    94
-
              %|X
                    pad to the end of the line with character 'X'
 
        (instead to the author only). Setting this option to ``_\ba_\bs_\bk_\b-_\by_\be_\bs'' or ``_\ba_\bs_\bk_\b-_\bn_\bo''
        will ask if you really intended to reply to the author only.
 
+       The Mutt-ng E-Mail Client                                                    95
+
        _\b6_\b._\b3_\b._\b1_\b1_\b7  _\bl_\bo_\bc_\ba_\bl_\be
 
        Type: string
 
-       The Mutt-ng E-Mail Client                                                    95
-
        Default: 'C'
 
        The locale used by strftime(3) to format dates. Legal values are the strings
        files when the header cache is in use. This incurs one stat(2) per message
        every time the folder is opened.
 
+       The Mutt-ng E-Mail Client                                                    96
+
        _\b6_\b._\b3_\b._\b1_\b2_\b2  _\bm_\ba_\bi_\bl_\bd_\bi_\br_\b__\bt_\br_\ba_\bs_\bh
 
        Type: boolean
 
-       The Mutt-ng E-Mail Client                                                    96
-
        Default: no
 
        If _\bs_\be_\bt, messages marked as deleted will be saved with the maildir (T)rashed
        Default: 0
 
        When _\bs_\be_\bt, the maximum line length for displaying ``format = flowed'' messages
+
+       The Mutt-ng E-Mail Client                                                    97
+
        is limited to this length. A value of 0 (which is also the default) means that
        the maximum line length is determined by the terminal width and _\b$_\bw_\br_\ba_\bp_\bm_\ba_\br_\bg_\bi_\bn
        (section 6.3.328  , page 145).
 
-       The Mutt-ng E-Mail Client                                                    97
-
        _\b6_\b._\b3_\b._\b1_\b2_\b7  _\bm_\bb_\bo_\bx
 
        Type: path
        vious page of the menu is displayed (useful for slow links to avoid many
        redraws).
 
+       The Mutt-ng E-Mail Client                                                    98
+
        _\b6_\b._\b3_\b._\b1_\b3_\b2  _\bm_\be_\bs_\bs_\ba_\bg_\be_\b__\bf_\bo_\br_\bm_\ba_\bt
 
        Type: string
 
        Default: '%s'
 
-       The Mutt-ng E-Mail Client                                                    98
-
        This is the string displayed in the ``attachment'' menu for attachments of type
        message/rfc822.  For a full listing of defined printf(3)-like sequences see the
        section on ``_\b$_\bi_\bn_\bd_\be_\bx_\b__\bf_\bo_\br_\bm_\ba_\bt (section 6.3.112  , page 91)''.
 
        Type: string
 
+       The Mutt-ng E-Mail Client                                                    99
+
        Default: 'replied'
 
        The name of the MH sequence used to tag replied messages.
 
        _\b6_\b._\b3_\b._\b1_\b3_\b8  _\bm_\bh_\b__\bs_\be_\bq_\b__\bu_\bn_\bs_\be_\be_\bn
 
-       The Mutt-ng E-Mail Client                                                    99
-
        Type: string
 
        Default: 'unseen'
 
        Default: yes
 
+       The Mutt-ng E-Mail Client                                                   100
+
        Availability: NNTP
 
        If _\bu_\bn_\bs_\be_\bt, an 8-bit ``Subject:'' header field in a news article will not be
 
        N\bNo\bot\bte\be:\b: Only change this setting if you know what you are doing.
 
-       The Mutt-ng E-Mail Client                                                   100
-
        _\b6_\b._\b3_\b._\b1_\b4_\b3  _\bm_\bi_\bx_\b__\be_\bn_\bt_\br_\by_\b__\bf_\bo_\br_\bm_\ba_\bt
 
        Type: string
 
        _\b6_\b._\b3_\b._\b1_\b4_\b6  _\bm_\bs_\bg_\bi_\bd_\b__\bf_\bo_\br_\bm_\ba_\bt
 
+       The Mutt-ng E-Mail Client                                                   101
+
        Type: string
 
        Default: '%Y%m%d%h%M%s.G%P%p'
        This is the format for the ``local part'' of the Message-Id: header field gen-
        erated by Mutt-ng. The format string contains of one or more characters. The
        '%' character marks that certain data will be added to the string, similar to
-
-       The Mutt-ng E-Mail Client                                                   101
-
        printf(3). The following characters are allowed:
 
              %d
        N\bNo\bot\bte\be:\b: Please only change this setting if you know what you are doing.  Also
        make sure to consult RFC2822 to produce technically _\bv_\ba_\bl_\bi_\bd strings.
 
+       The Mutt-ng E-Mail Client                                                   102
+
        _\b6_\b._\b3_\b._\b1_\b4_\b7  _\bn_\ba_\br_\br_\bo_\bw_\b__\bt_\br_\be_\be
 
        Type: boolean
 
        Default: no
 
-       The Mutt-ng E-Mail Client                                                   102
-
        This variable, when _\bs_\be_\bt, makes the thread tree narrower, allowing deeper
        threads to fit on the screen.
 
 
        Availability: NNTP
 
+       The Mutt-ng E-Mail Client                                                   103
+
        This file contains information about subscribed newsgroup and articles read so
        far.
 
        To ease the use of multiple news servers, the following printf(3)-style
        sequence is understood:
 
-       The Mutt-ng E-Mail Client                                                   103
-
             %s      newsserver name
 
        _\b6_\b._\b3_\b._\b1_\b5_\b1  _\bn_\bn_\bt_\bp_\b__\bc_\bo_\bn_\bt_\be_\bx_\bt
 
        Default: 60
 
+       The Mutt-ng E-Mail Client                                                   104
+
        Availability: NNTP
 
        The time in seconds until any operations on a newsgroup except posting a new
        article will cause a recheck for new news. If set to 0, Mutt-ng will recheck on
        each operation in index (stepping, read article, etc.).
 
-       The Mutt-ng E-Mail Client                                                   104
-
        _\b6_\b._\b3_\b._\b1_\b5_\b5  _\bn_\bn_\bt_\bp_\b__\br_\be_\bc_\bo_\bn_\bn_\be_\bc_\bt
 
        Type: quadoption
        screen resizes cause lines longer than the screen width to be badly formatted
        in the help menu.
 
+       The Mutt-ng E-Mail Client                                                   105
+
        _\b6_\b._\b3_\b._\b1_\b5_\b9  _\bp_\ba_\bg_\be_\br_\b__\bc_\bo_\bn_\bt_\be_\bx_\bt
 
        Type: number
 
        Default: 0
 
-       The Mutt-ng E-Mail Client                                                   105
-
        This variable controls the number of lines of context that are given when dis-
        playing the next or previous page in the internal pager.  By default, Mutt-ng
        will display the line after the last one on the screen at the top of the next
 
        Default: no
 
+       The Mutt-ng E-Mail Client                                                   106
+
        If _\bs_\be_\bt, Mutt-ng will automatically attempt to decrypt traditional PGP messages
        whenever the user performs an operation which ordinarily would result in the
        contents of the message being operated on.  For example, if the user displays a
        ditional-pgp function, Mutt-ng will automatically check the message for tradi-
        tional pgp.
 
-       The Mutt-ng E-Mail Client                                                   106
-
        _\b6_\b._\b3_\b._\b1_\b6_\b4  _\bp_\bg_\bp_\b__\ba_\bu_\bt_\bo_\bi_\bn_\bl_\bi_\bn_\be
 
        Type: boolean
 
        The PGP command formats have their own set of printf(3)-like sequences:
 
+       The Mutt-ng E-Mail Client                                                   107
+
              %p
                    Expands to PGPPASSFD=0 when a pass phrase is needed, to an empty
                    string otherwise. Note: This may be used with a %? construct.
              %f
                    Expands to the name of a file containing a message.
 
-       The Mutt-ng E-Mail Client                                                   107
-
              %s
                    Expands to the name of a file containing the signature part of a
                    multipart/signed attachment when verifying it.
 
        This variable allows you to customize the PGP key selection menu to your per-
        sonal taste. This string is similar to ``_\b$_\bi_\bn_\bd_\be_\bx_\b__\bf_\bo_\br_\bm_\ba_\bt (section 6.3.112  , page
+
+       The Mutt-ng E-Mail Client                                                   108
+
        91)'', but has its own set of printf(3)-like sequences:
 
              %n
              %k
                    key id
 
-       The Mutt-ng E-Mail Client                                                   108
-
              %u
                    user id
 
 
        Default: ''
 
+       The Mutt-ng E-Mail Client                                                   109
+
        If you assign a text to this variable, then a PGP signature is only considered
        verified if the output from _\b$_\bp_\bg_\bp_\b__\bv_\be_\br_\bi_\bf_\by_\b__\bc_\bo_\bm_\bm_\ba_\bn_\bd (section 6.3.190  , page 112)
        contains the text. Use this variable if the exit code from the command is 0
 
        _\b6_\b._\b3_\b._\b1_\b7_\b5  _\bp_\bg_\bp_\b__\bi_\bg_\bn_\bo_\br_\be_\b__\bs_\bu_\bb_\bk_\be_\by_\bs
 
-       The Mutt-ng E-Mail Client                                                   109
-
        Type: boolean
 
        Default: yes
 
        Default: no
 
+       The Mutt-ng E-Mail Client                                                   110
+
        If _\bs_\be_\bt, use 64 bit PGP key IDs. _\bU_\bn_\bs_\be_\bt uses the normal 32 bit Key IDs.  (PGP
        only)
 
 
        Type: quadoption
 
-       The Mutt-ng E-Mail Client                                                   110
-
        Default: ask-yes
 
        This option controls whether Mutt-ng will prompt you for automatically sending
 
        Type: boolean
 
+       The Mutt-ng E-Mail Client                                                   111
+
        Default: yes
 
        If _\bs_\be_\bt, Mutt-ng will display non-usable keys on the PGP key selection menu.
        This includes keys which have been revoked, have expired, or have been marked
        as ``disabled'' by the user.  (PGP only)
 
-       The Mutt-ng E-Mail Client                                                   111
-
        _\b6_\b._\b3_\b._\b1_\b8_\b4  _\bp_\bg_\bp_\b__\bs_\bi_\bg_\bn_\b__\ba_\bs
 
        Type: string
 
        Default: yes
 
+       The Mutt-ng E-Mail Client                                                   112
+
        If _\bs_\be_\bt, Mutt-ng will automatically encode PGP/MIME signed messages as quoted-
        printable.  Please note that unsetting this variable may lead to problems with
        non-verifyable PGP signatures, so only change this if you know what you are
        doing.  (PGP only)
 
-       The Mutt-ng E-Mail Client                                                   112
-
        _\b6_\b._\b3_\b._\b1_\b8_\b8  _\bp_\bg_\bp_\b__\bt_\bi_\bm_\be_\bo_\bu_\bt
 
        Type: number
 
        Default: '\n'
 
+       The Mutt-ng E-Mail Client                                                   113
+
        The separator to add between messages when piping a list of tagged messages to
        an external Unix command.
 
-       The Mutt-ng E-Mail Client                                                   113
-
        _\b6_\b._\b3_\b._\b1_\b9_\b4  _\bp_\bi_\bp_\be_\b__\bs_\bp_\bl_\bi_\bt
 
        Type: boolean
 
        Default: 60
 
+       The Mutt-ng E-Mail Client                                                   114
+
        Availability: POP
 
        This variable configures how often (in seconds) POP should look for new mail.
 
-       The Mutt-ng E-Mail Client                                                   114
-
        _\b6_\b._\b3_\b._\b1_\b9_\b8  _\bp_\bo_\bp_\b__\bd_\be_\bl_\be_\bt_\be
 
        Type: quadoption
        Specifies the password for your POP account.  If _\bu_\bn_\bs_\be_\bt, Mutt-ng will prompt you
        for your password when you open POP mailbox.
 
+       The Mutt-ng E-Mail Client                                                   115
+
        N\bNo\bot\bte\be:\b: Storing passwords in a configuration file presents a security risk since
        the superuser of your machine may read it regardless of the file's permissions.
 
-       The Mutt-ng E-Mail Client                                                   115
-
        _\b6_\b._\b3_\b._\b2_\b0_\b2  _\bp_\bo_\bp_\b__\br_\be_\bc_\bo_\bn_\bn_\be_\bc_\bt
 
        Type: quadoption
 
        Type: quadoption
 
+       The Mutt-ng E-Mail Client                                                   116
+
        Default: ask-yes
 
        Controls whether or not messages are saved in the ``_\b$_\bp_\bo_\bs_\bt_\bp_\bo_\bn_\be_\bd (section
-
-       The Mutt-ng E-Mail Client                                                   116
-
        6.3.207  , page 115)'' mailbox when you elect not to send immediately.
 
        _\b6_\b._\b3_\b._\b2_\b0_\b7  _\bp_\bo_\bs_\bt_\bp_\bo_\bn_\be_\bd
 
        _\b6_\b._\b3_\b._\b2_\b1_\b1  _\bp_\br_\bi_\bn_\bt_\b__\bd_\be_\bc_\bo_\bd_\be
 
+       The Mutt-ng E-Mail Client                                                   117
+
        Type: boolean
 
        Default: yes
 
-       The Mutt-ng E-Mail Client                                                   117
-
        Used in connection with the print-message command.  If this option is _\bs_\be_\bt, the
        message is decoded before it is passed to the external command specified by
        _\b$_\bp_\br_\bi_\bn_\bt_\b__\bc_\bo_\bm_\bm_\ba_\bn_\bd (section 6.3.210  , page 116).  If this option is _\bu_\bn_\bs_\be_\bt, no pro-
 
        Default: yes
 
+       The Mutt-ng E-Mail Client                                                   118
+
        This variable controls whether ``quit'' and ``exit'' actually quit from Mutt-
        ng.  If it set to _\by_\be_\bs, they do quit, if it is set to _\bn_\bo, they have no effect,
        and if it is set to _\ba_\bs_\bk_\b-_\by_\be_\bs or _\ba_\bs_\bk_\b-_\bn_\bo, you are prompted for confirmation when
-
-       The Mutt-ng E-Mail Client                                                   118
-
        you try to quit.
 
        _\b6_\b._\b3_\b._\b2_\b1_\b6  _\bq_\bu_\bo_\bt_\be_\b__\be_\bm_\bp_\bt_\by
 
        Also see the ``_\b$_\bw_\br_\bi_\bt_\be_\b__\bi_\bn_\bc (section 6.3.330  , page 145)'' variable.
 
+       The Mutt-ng E-Mail Client                                                   119
+
        _\b6_\b._\b3_\b._\b2_\b2_\b0  _\br_\be_\ba_\bd_\b__\bo_\bn_\bl_\by
 
        Type: boolean
 
-       The Mutt-ng E-Mail Client                                                   119
-
        Default: no
 
        If set, all folders are opened in read-only mode.
 
        Default: '^(re([\[0-9\]+])*|aw):[ \t]*'
 
+       The Mutt-ng E-Mail Client                                                   120
+
        A regular expression used to recognize reply messages when threading and reply-
        ing. The default value corresponds to the English ``Re:'' and the German
        ``Aw:''.
 
-       The Mutt-ng E-Mail Client                                                   120
-
        _\b6_\b._\b3_\b._\b2_\b2_\b5  _\br_\be_\bp_\bl_\by_\b__\bs_\be_\bl_\bf
 
        Type: boolean
 
        From: abd30425@somewhere.net
 
+       The Mutt-ng E-Mail Client                                                   121
+
        It would be displayed in the index menu as ``Joe User'' instead of
        ``abd30425@somewhere.net.''  This is useful when the person's e-mail address is
        not human friendly (like CompuServe addresses).
 
-       The Mutt-ng E-Mail Client                                                   121
-
        _\b6_\b._\b3_\b._\b2_\b2_\b9  _\br_\be_\bv_\be_\br_\bs_\be_\b__\bn_\ba_\bm_\be
 
        Type: boolean
 
        _\b6_\b._\b3_\b._\b2_\b3_\b2  _\bs_\ba_\bv_\be_\b__\ba_\bd_\bd_\br_\be_\bs_\bs
 
+       The Mutt-ng E-Mail Client                                                   122
+
        Type: boolean
 
        Default: no
 
-       The Mutt-ng E-Mail Client                                                   122
-
        If _\bs_\be_\bt, Mutt-ng will take the sender's full address when choosing a default
        folder for saving a mail. If ``_\b$_\bs_\ba_\bv_\be_\b__\bn_\ba_\bm_\be (section 6.3.234  , page 122)'' or
        ``_\b$_\bf_\bo_\br_\bc_\be_\b__\bn_\ba_\bm_\be (section 6.3.70  , page 81)'' is _\bs_\be_\bt too, the selection of the
 
        Default: yes
 
+       The Mutt-ng E-Mail Client                                                   123
+
        When this variable is _\bu_\bn_\bs_\be_\bt, scoring is turned off.  This can be useful to
        selectively disable scoring for certain folders when the ``_\b$_\bs_\bc_\bo_\br_\be_\b__\bt_\bh_\br_\be_\bs_\bh_\b-
        _\bo_\bl_\bd_\b__\bd_\be_\bl_\be_\bt_\be (section 6.3.237  , page 122)'' variable and friends are used.
 
-       The Mutt-ng E-Mail Client                                                   123
-
        _\b6_\b._\b3_\b._\b2_\b3_\b7  _\bs_\bc_\bo_\br_\be_\b__\bt_\bh_\br_\be_\bs_\bh_\bo_\bl_\bd_\b__\bd_\be_\bl_\be_\bt_\be
 
        Type: number
 
        Default: '/usr/sbin/sendmail -oem -oi'
 
+       The Mutt-ng E-Mail Client                                                   124
+
        Specifies the program and arguments used to deliver mail sent by Mutt-ng.
        Mutt-ng expects that the specified program interprets additional arguments as
        recipient addresses.
 
-       The Mutt-ng E-Mail Client                                                   124
-
        _\b6_\b._\b3_\b._\b2_\b4_\b2  _\bs_\be_\bn_\bd_\bm_\ba_\bi_\bl_\b__\bw_\ba_\bi_\bt
 
        Type: number
 
        Type: boolean
 
+       The Mutt-ng E-Mail Client                                                   125
+
        Default: no
 
        Availability: NNTP
 
-       The Mutt-ng E-Mail Client                                                   125
-
        If _\bs_\be_\bt, only subscribed newsgroups that contain unread articles will be dis-
        played in the newsgroup browser.
 
              %f
                    Number of flagged messages.
 
+       The Mutt-ng E-Mail Client                                                   126
+
              %n
                    Number of new messages.
 
        The %f and %n expandos may optionally be printed non-zero.
 
-       The Mutt-ng E-Mail Client                                                   126
-
        _\b6_\b._\b3_\b._\b2_\b5_\b0  _\bs_\bi_\bd_\be_\bb_\ba_\br_\b__\bs_\bh_\bo_\br_\bt_\be_\bn_\b__\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by
 
        Type: boolean
        For example, Mutt-ng has the ability to highlight the signature in a different
        color in the builtin pager.
 
+       The Mutt-ng E-Mail Client                                                   127
+
        _\b6_\b._\b3_\b._\b2_\b5_\b4  _\bs_\bi_\bg_\b__\bo_\bn_\b__\bt_\bo_\bp
 
        Type: boolean
 
        Default: no
 
-       The Mutt-ng E-Mail Client                                                   127
-
        If _\bs_\be_\bt, the signature will be included before any quoted or forwarded text.  It
        is s\bst\btr\bro\bon\bng\bgl\bly\by recommended that you do not set this variable unless you really
        know what you are doing, and are prepared to take some heat from netiquette
 
        Type: number
 
+       The Mutt-ng E-Mail Client                                                   128
+
        Default: 1
 
        Specifies time, in seconds, to pause while displaying certain informational
        the current folder.  The default is to pause one second, so a value of zero for
        this option suppresses the pause.
 
-       The Mutt-ng E-Mail Client                                                   128
-
        _\b6_\b._\b3_\b._\b2_\b5_\b9  _\bs_\bm_\ba_\br_\bt_\b__\bw_\br_\ba_\bp
 
        Type: boolean
        Default: ''
 
        Since there is no pubring/secring as with PGP, Mutt-ng has to handle storage
+
+       The Mutt-ng E-Mail Client                                                   129
+
        and retrieval of keys by itself. This is very basic right now, and keys and
        certificates are stored in two different directories, both named as the hash-
        value retrieved from OpenSSL. There is an index file which contains mailbox-
        address keyid pairs, and which can be manually edited. This one points to the
        location of the certificates.  (S/MIME only)
 
-       The Mutt-ng E-Mail Client                                                   129
-
        _\b6_\b._\b3_\b._\b2_\b6_\b4  _\bs_\bm_\bi_\bm_\be_\b__\bd_\be_\bc_\br_\by_\bp_\bt_\b__\bc_\bo_\bm_\bm_\ba_\bn_\bd
 
        Type: string
        If _\bs_\be_\bt (default) this tells Mutt-ng to use the default key for decryption. Oth-
        erwise, if manage multiple certificate-key-pairs, Mutt-ng will try to use the
        mailbox-address to determine the key to use. It will ask you to supply a key,
+
+       The Mutt-ng E-Mail Client                                                   130
+
        if it can't find one.  (S/MIME only)
 
        _\b6_\b._\b3_\b._\b2_\b6_\b6  _\bs_\bm_\bi_\bm_\be_\b__\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bk_\be_\by
 
        Type: string
 
-       The Mutt-ng E-Mail Client                                                   130
-
        Default: ''
 
        This is the default key-pair to use for signing. This must be set to the keyid
 
        Default: ''
 
+       The Mutt-ng E-Mail Client                                                   131
+
        This command is used to extract only the signers X509 certificate from a S/MIME
        signature, so that the certificate's owner may get compared to the email's
        ``From:'' header field.  (S/MIME only)
 
-       The Mutt-ng E-Mail Client                                                   131
-
        _\b6_\b._\b3_\b._\b2_\b7_\b2  _\bs_\bm_\bi_\bm_\be_\b__\bi_\bm_\bp_\bo_\br_\bt_\b__\bc_\be_\br_\bt_\b__\bc_\bo_\bm_\bm_\ba_\bn_\bd
 
        Type: string
 
        Default: ''
 
+       The Mutt-ng E-Mail Client                                                   132
+
        This command is used to created S/MIME signatures of type multipart/signed,
        which can be read by all mail clients.  (S/MIME only)
 
-       The Mutt-ng E-Mail Client                                                   132
-
        _\b6_\b._\b3_\b._\b2_\b7_\b7  _\bs_\bm_\bi_\bm_\be_\b__\bs_\bi_\bg_\bn_\b__\bo_\bp_\ba_\bq_\bu_\be_\b__\bc_\bo_\bm_\bm_\ba_\bn_\bd
 
        Type: string
        N\bNo\bot\bte\be:\b: Storing passwords in a configuration file presents a security risk since
        the superuser of your machine may read it regardless of the file's permissions.
 
-       _\b6_\b._\b3_\b._\b2_\b8_\b2  _\bs_\bm_\bt_\bp_\b__\ba_\bu_\bt_\bh_\b__\bu_\bs_\be_\br_\bn_\ba_\bm_\be
-
        The Mutt-ng E-Mail Client                                                   133
 
+       _\b6_\b._\b3_\b._\b2_\b8_\b2  _\bs_\bm_\bt_\bp_\b__\ba_\bu_\bt_\bh_\b__\bu_\bs_\be_\br_\bn_\ba_\bm_\be
+
        Type: string
 
        Default: ''
 
        Specifies how to sort messages in the _\bi_\bn_\bd_\be_\bx menu.  Valid values are:
 
+       The Mutt-ng E-Mail Client                                                   134
+
                date or date-sent
                date-received
                from
                threads
                to
 
-       The Mutt-ng E-Mail Client                                                   134
-
        You may optionally use the ``reverse-'' prefix to specify reverse sorting order
        (example: set sort=reverse-date-sent).
 
        (section 6.3.287  , page 134) is reversed again (which is not the right thing
        to do, but kept to not break any existing configuration setting).
 
+       The Mutt-ng E-Mail Client                                                   135
+
        _\b6_\b._\b3_\b._\b2_\b8_\b8  _\bs_\bo_\br_\bt_\b__\bb_\br_\bo_\bw_\bs_\be_\br
 
        Type: sort order
                alpha (alphabetically)
                date
                size
-
-       The Mutt-ng E-Mail Client                                                   135
-
                unsorted
 
        You may optionally use the ``reverse-'' prefix to specify reverse sorting order
        Default: ''
 
        If your spool mailbox is in a non-default place where Mutt-ng cannot find it,
+
+       The Mutt-ng E-Mail Client                                                   136
+
        you can specify its location with this variable.  Mutt-ng will automatically
        set this variable to the value of the environment variable $MAIL if it is not
        set.
        certificate that is signed with one of these CA certificates are also automati-
        cally accepted.
 
-       The Mutt-ng E-Mail Client                                                   136
-
        Example: set ssl_ca_certificates_file=/etc/ssl/certs/ca-certificates.crt
 
        _\b6_\b._\b3_\b._\b2_\b9_\b3  _\bs_\bs_\bl_\b__\bc_\bl_\bi_\be_\bn_\bt_\b__\bc_\be_\br_\bt
 
        Type: boolean
 
+       The Mutt-ng E-Mail Client                                                   137
+
        Default: yes
 
        Availability: SSL or NSS or GNUTLS
 
        Availability: SSL or NSS or GNUTLS
 
-       The Mutt-ng E-Mail Client                                                   137
-
        This variables specifies whether to attempt to use TLSv1 in the SSL authentica-
        tion process.
 
              %d
                    number of deleted messages *
 
+       The Mutt-ng E-Mail Client                                                   138
+
              %f
                    the full pathname of the current mailbox
 
                    size (in bytes) of the current mailbox *
 
              %L
-                   size (in bytes) of the messages shown (i.e., which match the
-
-       The Mutt-ng E-Mail Client                                                   138
-
-                   current limit) *
+                   size (in bytes) of the messages shown (i.e., which match the cur-
+                   rent limit) *
 
              %m
                    the number of messages in the mailbox *
              %v
                    Mutt-ng version string
 
+       The Mutt-ng E-Mail Client                                                   139
+
              %V
                    currently active limit pattern, if any *
 
 
        Some of the above sequences can be used to optionally print a string if their
        value is nonzero.  For example, you may only want to see the number of flagged
-
-       The Mutt-ng E-Mail Client                                                   139
-
        messages if such messages exist, since zero is not particularly meaningful.  To
        optionally print a string based upon one of the above sequences, the following
        construct is used
        Setting this variable causes the ``status bar'' to be displayed on the first
        line of the screen rather than near the bottom.
 
+       The Mutt-ng E-Mail Client                                                   140
+
        _\b6_\b._\b3_\b._\b3_\b0_\b1  _\bs_\bt_\br_\bi_\bc_\bt_\b__\bm_\bi_\bm_\be
 
        Type: boolean
 
        This option also replaces linear-white-space between encoded-word and *text to
        a single space to prevent the display of MIME-encoded ``Subject:'' header field
-
-       The Mutt-ng E-Mail Client                                                   140
-
        from being devided into multiple lines.
 
        _\b6_\b._\b3_\b._\b3_\b0_\b2  _\bs_\bt_\br_\bi_\bc_\bt_\b__\bt_\bh_\br_\be_\ba_\bd_\bs
 
        Default: no
 
+       The Mutt-ng E-Mail Client                                                   141
+
        If _\bs_\be_\bt, attachments with flowed format will have their quoting ``stuffed'',
        i.e. a space will be inserted between the quote characters and the actual text.
 
        usually CTRL+Z. This is useful if you run Mutt-ng inside an xterm using a com-
        mand like ``xterm -e muttng.''
 
-       The Mutt-ng E-Mail Client                                                   141
-
        _\b6_\b._\b3_\b._\b3_\b0_\b7  _\bt_\be_\bx_\bt_\b__\bf_\bl_\bo_\bw_\be_\bd
 
        Type: boolean
        Default: no
 
        When _\bs_\be_\bt, the internal-pager will pad blank lines to the bottom of the screen
+
+       The Mutt-ng E-Mail Client                                                   142
+
        with a tilde (~).
 
        _\b6_\b._\b3_\b._\b3_\b1_\b1  _\bt_\bi_\bm_\be_\bo_\bu_\bt
        pressed in the main menu before timing out and checking for new mail.  A value
        of zero or less will cause Mutt-ng to never time out.
 
-       The Mutt-ng E-Mail Client                                                   142
-
        _\b6_\b._\b3_\b._\b3_\b1_\b2  _\bt_\bm_\bp_\bd_\bi_\br
 
        Type: path
 
        Type: string
 
+       The Mutt-ng E-Mail Client                                                   143
+
        Default: ''
 
        Setting this variable will cause Mutt-ng to open a pipe to a command instead of
        N\bNo\bot\bte\be:\b: For this example to work you must be able to log in to the remote machine
        without having to enter a password.
 
-       The Mutt-ng E-Mail Client                                                   143
-
        _\b6_\b._\b3_\b._\b3_\b1_\b6  _\bu_\bm_\ba_\bs_\bk
 
        Type: number
 
        _\b6_\b._\b3_\b._\b3_\b2_\b0  _\bu_\bs_\be_\b__\bf_\br_\bo_\bm
 
+       The Mutt-ng E-Mail Client                                                   144
+
        Type: boolean
 
        Default: yes
 
        Type: boolean
 
-       The Mutt-ng E-Mail Client                                                   144
-
        Default: yes
 
        Availability: IDN
 
        Default: yes
 
+       The Mutt-ng E-Mail Client                                                   145
+
        Controls whether Mutt-ng will ask you to press a key after _\bs_\bh_\be_\bl_\bl_\b- _\be_\bs_\bc_\ba_\bp_\be, _\bp_\bi_\bp_\be_\b-
        _\bm_\be_\bs_\bs_\ba_\bg_\be, _\bp_\bi_\bp_\be_\b-_\be_\bn_\bt_\br_\by, _\bp_\br_\bi_\bn_\bt_\b-_\bm_\be_\bs_\bs_\ba_\bg_\be, and _\bp_\br_\bi_\bn_\bt_\b-_\be_\bn_\bt_\br_\by commands.
 
        When _\bs_\be_\bt, Mutt-ng will always ask for a key. When _\bu_\bn_\bs_\be_\bt, Mutt-ng will wait for
        a key only if the external command returned a non-zero status.
 
-       The Mutt-ng E-Mail Client                                                   145
-
        _\b6_\b._\b3_\b._\b3_\b2_\b6  _\bw_\be_\be_\bd
 
        Type: boolean
 
        Default: 10
 
+       The Mutt-ng E-Mail Client                                                   146
+
        When writing a mailbox, a message will be printed every _\bw_\br_\bi_\bt_\be_\b__\bi_\bn_\bc messages to
        indicate progress.  If set to 0, only a single message will be displayed before
        writing a mailbox.
 
        Type: boolean
 
-       The Mutt-ng E-Mail Client                                                   146
-
        Default: no
 
        Availability: NNTP
        what the function does.  The key bindings of these functions can be changed
        with the _\bb_\bi_\bn_\bd (section 3.3  , page 17) command.
 
+       The Mutt-ng E-Mail Client                                                   147
+
        _\b6_\b._\b4_\b._\b1  _\bg_\be_\bn_\be_\br_\bi_\bc
 
        The _\bg_\be_\bn_\be_\br_\bi_\bc menu is not a real menu, but specifies common functions (such as
        tings for this menu will affect the default bindings for all menus (except as
        noted).
 
-       The Mutt-ng E-Mail Client                                                   147
-
             bottom-page                L   move to the bottom of the page
             current-bottom     not bound   move current entry to bottom of page
             current-middle     not bound   move current entry to middle of page
diff --git a/init.h b/init.h
index fc547b7..494616b 100644 (file)
--- a/init.h
+++ b/init.h
@@ -885,8 +885,10 @@ struct option_t MuttVars[] = {
   /*
    ** .pp
    ** Specifies the hostname to use after the ``\fT@\fP'' in local e-mail
-   ** addresses.  This overrides the compile time definition obtained from
-   ** \fT/etc/resolv.conf\fP.
+   ** addresses and during generation of \fTMessage-Id:\fP headers.
+   ** .pp
+   ** Please be sure to really know what you are doing when changing this variable
+   ** to configure a custom domain part of Message-IDs.
    */
   {"ignore_list_reply_to", DT_BOOL, R_NONE, OPTIGNORELISTREPLYTO, 0},
   /*
@@ -1563,8 +1565,8 @@ struct option_t MuttVars[] = {
   /*
    ** .pp
    ** This is the format for the ``local part'' of the \fTMessage-Id:\fP header
-   ** field generated
-   ** by Mutt-ng. The format string contains of one or more characters. The '%'
+   ** field generated by Mutt-ng. If this variable is empty, no \fTMessage-Id:\fP
+   ** headers will be generated. The '%'
    ** character marks that certain data will be added to the string, similar to
    ** \fTprintf(3)\fP. The following characters are allowed:
    ** .pp
index 12f8df5..cade3dc 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -1840,12 +1840,8 @@ char *mutt_gen_msgid (void)
   char buf[SHORT_STRING];
   char localpart[SHORT_STRING];
   unsigned int localpart_length;
-  time_t now;
-  struct tm *tm;
   const char *fqdn;
 
-  now = time (NULL);
-  tm = gmtime (&now);
   if (!(fqdn = mutt_fqdn (0)))
     fqdn = NONULL (Hostname);
 
@@ -2246,7 +2242,7 @@ void mutt_prepare_envelope (ENVELOPE * env, int final)
 
     mutt_set_followup_to (env);
 
-    if (!env->message_id)
+    if (!env->message_id && MsgIdFormat && *MsgIdFormat)
       env->message_id = mutt_gen_msgid ();
   }
 
@@ -2321,7 +2317,8 @@ static int _mutt_bounce_message (FILE * fp, HEADER * h, ADDRESS * to,
     fseek (fp, h->offset, 0);
     fprintf (f, "Resent-From: %s", resent_from);
     fprintf (f, "\nResent-%s", mutt_make_date (date, sizeof (date)));
-    fprintf (f, "Resent-Message-ID: %s\n", mutt_gen_msgid ());
+    if (MsgIdFormat && *MsgIdFormat)
+      fprintf (f, "Resent-Message-ID: %s\n", mutt_gen_msgid ());
     fputs ("Resent-To: ", f);
     mutt_write_address_list (to, f, 11, 0);
     mutt_copy_header (fp, h, f, ch_flags, NULL);