On Fri, Oct 9, 2015 at 11:09 AM, Steffen Nurpmeso <[email protected]>
wrote:

> Aaaand, to answer your question,
>
>  |Michael Convey <[email protected]> wrote:
>  ||Does mail distinguish 'Cc:' and 'Bcc:' from 'To:' by a spa\
>  ||ce? In other words, is the only way to have multiple ​Cc: a\
>  ||nd multiple Bcc: to use commas with
>  ||no spaces?
>
> whitespace should be trimmed away from the beginning and the end
> of each recipient.


>  ||For example:
>  ||
>  ||$ mail -s test -c recip1,recip2,recip3 -b recip4,recip5,recip6 recip7
>  ||
>  ||##no spaces between the -c recipients and no spaces betwee\
>  ||n the -b recipients##
>
> You could say "-c 'r1   ,     r2    , r3      '" and it's a bug if
> that doesn't work.


​I tested this (in mailx)​ and spaces cause an error as follows:

# mail -s 'test bcc' -b root , lab lab2
bcc test in progress.
.
Cc:
Bcc: root

No spaces, no error, as follows:

​
# mail -s 'test bcc 2' -b root,lab lab2
bcc test 2 in progress.
.
Cc:
Bcc: root lab
You have new mail in /var/spool/mail/root


 |The short answer is: maybe use -c multiple times instead, that
>  |worked already with BSD Mail 8.1[.1] from 1996-06-14.


​That works, as follows:

​
# mail -s 'test bcc3' -b root -b lab lab2
bcc test 3 in progress.
.
Cc:
Bcc: root lab
You have new mail in /var/spool/mail/root
# ​
​
Thanks for all your guidance.
------------------------------------------------------------------------------
_______________________________________________
nail-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nail-devel

Reply via email to