GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: Reading Mail   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index

3.5.2.14 Replying

Mail command: mail [address...]
Mail command: m [address...]

Switches to compose mode. After composing the message, sends messages to the specified addresses.

Mail command: reply [msglist]
Mail command: respond [msglist]
Mail command: r [msglist]

For each message in msglist, switches to compose mode and sends the composed message to the sender and all recipients of the message.

Mail command: Reply [msglist]
Mail command: Respond [msglist]
Mail command: R [msglist]

Like reply, except that the composed message is sent only to originators of the specified messages.

Notice, that setting mail variable flipr (see Mail Variables) swaps the meanings of the two above commands, so that reply sends the message to the sender and all recipients of the message, whereas Reply sends it to originators only.

Mail command: followup [msglist]
Mail command: fo [msglist]

Switches to compose mode. After composing, sends the message to the originators and recipients of all messages in msglist.

Mail command: Followup [msglist]
Mail command: F [msglist]

Similar to followup, but reply message is sent only to originators of messages in msglist.

To determine the sender of the message mail uses the list of sender fields (see Controlling Sender Fields). The first field from this list is looked up in message headers. If it is found and contains a valid email address, this address is used as the sender address. If not, the second field is searched and so on. This process continues until a field is found in the headers, or the sender field list is exhausted, whichever happens first.

If the previous step did not determine the sender address, the address from SMTP envelope is used.

Let’s illustrate this. Suppose your mailbox contains the following:

 U  1 block@helsingor.org  Fri Jun 30 18:30  8/245    Re: The Sa
? Print 1
From: Antonius Block <block@helsingor.org>
To: Smeden Plog <plog@helsingor.org>
Date: Tue, 27 Apr 2004 13:23:41 +0300
Reply-To: <root@helsingor.org>
Subject: News

Hi

Now, you issue the following commands:

? sender mail-followup-to reply-to from
? reply
To: <root@helsingor.org>
Subject: Re: News

As you see, the value of Reply-To field was taken as the sender address.

Now, let’s try the following command sequence:

# Clear the sender list
? nosender
# Set new sender list
? sender From

Now, the From address will be taken:

? reply
To: Antonius Block <block@helsingor.org>
Subject: Re: News

GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: Reading Mail   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index