65
65
To report a bug, please visit http://bugs.mutt.org/.\n");
67
67
static const char *Notice = N_("\
68
Copyright (C) 1996-2008 Michael R. Elkins and others.\n\
68
Copyright (C) 1996-2009 Michael R. Elkins and others.\n\
69
69
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.\n\
70
70
Mutt is free software, and you are welcome to redistribute it\n\
71
71
under certain conditions; type `mutt -vv' for details.\n");
73
73
static const char *Copyright = N_("\
74
74
Copyright (C) 1996-2007 Michael R. Elkins <me@mutt.org>\n\
75
75
Copyright (C) 1996-2002 Brandon Long <blong@fiction.net>\n\
76
Copyright (C) 1997-2007 Thomas Roessler <roessler@does-not-exist.org>\n\
76
Copyright (C) 1997-2008 Thomas Roessler <roessler@does-not-exist.org>\n\
77
77
Copyright (C) 1998-2005 Werner Koch <wk@isil.d.shuttle.de>\n\
78
Copyright (C) 1999-2008 Brendan Cully <brendan@kublai.com>\n\
78
Copyright (C) 1999-2009 Brendan Cully <brendan@kublai.com>\n\
79
79
Copyright (C) 1999-2002 Tommi Komulainen <Tommi.Komulainen@iki.fi>\n\
80
80
Copyright (C) 2000-2002 Edmund Grimley Evans <edmundo@rano.org>\n\
81
Copyright (C) 2006-2008 Rocco Rutte <pdmef@gmx.net>\n\
82
83
Many others not mentioned here contributed code, fixes,\n\
83
84
and suggestions.\n");
112
113
"usage: mutt [<options>] [-z] [-f <file> | -yZ]\n\
113
114
mutt [<options>] [-x] [-Hi <file>] [-s <subj>] [-bc <addr>] [-a <file> [...]] [--] <addr> [...]\n\
115
mutt [<options>] [-x] [-s <subj>] [-bc <addr>] [-a <file> [...]] [--] <addr> [...] < message\n\
114
116
mutt [<options>] -p\n\
115
117
mutt [<options>] -A <alias> [...]\n\
116
118
mutt [<options>] -Q <query> [...]\n\
572
571
memset (Options, 0, sizeof (Options));
573
572
memset (QuadOptions, 0, sizeof (QuadOptions));
575
for (i = 1; i < argc; i++)
576
if (!strcmp(argv[i], "--"))
574
for (optind = 1; optind < double_dash; )
576
/* We're getopt'ing POSIXLY, so we'll be here every time getopt()
577
* encounters a non-option. That could be a file to attach
578
* (all non-options between -a and --) or it could be an address
579
* (which gets collapsed to the front of argv).
581
for (; optind < argc; optind++)
583
if (argv[optind][0] == '-' && argv[optind][1] != '\0')
585
if (argv[optind][1] == '-' && argv[optind][2] == '\0')
586
double_dash = optind; /* quit outer loop after getopt */
587
break; /* drop through to getopt */
590
/* non-option, either an attachment or address */
592
attach = mutt_add_list (attach, argv[optind]);
594
argv[nargc++] = argv[optind];
582
while ((i = getopt (argc, argv, "A:a:b:F:f:c:Dd:e:H:s:i:hm:npQ:RvxyzZ")) != EOF)
597
if ((i = getopt (argc, argv, "+A:a:b:F:f:c:Dd:e:H:s:i:hm:npQ:RvxyzZ")) != EOF)
586
601
alias_queries = mutt_add_list (alias_queries, optarg);