Skip to content

Commit d411207

Browse files
committed
eml2mt: stop emitting an anchor for --ical/--vcard mode
Outlook supports opening IPM.Appointment messages even when they are in regular (non-calendar) IPM.Note folders. The emission of an anchor thus is not warrented. In fact, it blocks the use of ical2mt 1.ics | mt2exm -u [email protected] -B 'CALENDAR/subcalendar'
1 parent 219798a commit d411207

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

doc/gromox-eml2mt.8

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ When called as gromox\-tnef2mt, the input is treated as a MS-OXTNEF object.
3333
eml2mt will resolve email addresses to Gromox objects already, so the emitted
3434
data stream should be consumed by an mt2exm invocation on the \fIsame\fP Gromox
3535
cluster.
36+
.PP
37+
All objects in the output stream are unanchored so that the \-B option of
38+
gromox\-mt2exm can be used to select placement. (Prior to Gromox 2.46,
39+
some modes like \-\-ical and \-\-vcard emitted an anchor.)
3640
.SH Options
3741
.TP
3842
\fB\-\-decap\fP=\fIn\fP
@@ -42,18 +46,15 @@ message. \fIn\fP is 1-based.
4246
.TP
4347
\fB\-\-ical\fP
4448
Treat all file arguments as iCalendar input. This is the default if the program
45-
was invoked as gromox\-ical2mt. Messages will be anchored to the calendar
46-
folder.
49+
was invoked as gromox\-ical2mt.
4750
.TP
4851
\fB\-\-mail\fP
4952
Treat all file arguments as Internet Mail input. This is the default if the
50-
program was invoked as gromox\-eml2mt. Messages remain unanchored, and you can
51-
use the mt2exm \-B option.
53+
program was invoked as gromox\-eml2mt.
5254
.TP
5355
\fB\-\-mbox\fP
5456
Treat all file arguments as Unix mboxes. This is the default if the program was
55-
invoked as gromox\-mbox2mt. Messages remain unanchored, and you can use the
56-
mt2exm \-B option.
57+
invoked as gromox\-mbox2mt.
5758
.TP
5859
\fB\-\-oneoff\fP
5960
Do not resolve email addresses to EX addresses, but to ONEOFF instead. This
@@ -62,12 +63,11 @@ clusters that do not have the same user set.
6263
.TP
6364
\fB\-\-tnef\fP
6465
Treat all file arguments as Transport Neutral Encapsulation Format objects.
65-
This is the default if the program was invoked as gromox\-tnef2mt. Messages
66-
remain unanchored, and you can use the mt2exm \-B option.
66+
This is the default if the program was invoked as gromox\-tnef2mt.
6767
.TP
6868
\fB\-\-vcard\fP
6969
Treat all file arguments as vCard input. This is the default if the program was
70-
invoked as gromox\-vcf2mt. Messages will be anchored to the contacts folder.
70+
invoked as gromox\-vcf2mt.
7171
.TP
7272
\fB\-P\fP
7373
Enable super-pedantic mode when parsing VCARDs and reject everything that is

tools/eml2mt.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,6 @@ int main(int argc, char **argv) try
389389
if (HXio_fullwrite(STDOUT_FILENO, &flag, sizeof(flag)) < 0) /* public store flag */
390390
throw YError("PG-1016: %s", strerror(errno));
391391
gi_folder_map_t fmap;
392-
if (g_import_mode == IMPORT_ICAL)
393-
fmap.emplace(MAILBOX_FID_UNANCHORED, tgt_folder{false, PRIVATE_FID_CALENDAR, ""});
394-
else if (g_import_mode == IMPORT_VCARD)
395-
fmap.emplace(MAILBOX_FID_UNANCHORED, tgt_folder{false, PRIVATE_FID_CONTACTS, ""});
396392
gi_folder_map_write(fmap);
397393
gi_dump_name_map(static_namedprop_map.fwd);
398394
gi_name_map_write(static_namedprop_map.fwd);

0 commit comments

Comments
 (0)