X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=textclient%2Fcitadel_ipc.c;h=f9ebf8a8ff3c8721723e3fc5d13e43746bbc86b1;hp=5f3656e7ba47ca657d3ca09d476761a6ecb8f10d;hb=8933df1f26595cfa3d9bb77f9b5a18d6b806d159;hpb=d8569b016fa45a29156c30171237ad93558cc472 diff --git a/textclient/citadel_ipc.c b/textclient/citadel_ipc.c index 5f3656e7b..f9ebf8a8f 100644 --- a/textclient/citadel_ipc.c +++ b/textclient/citadel_ipc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1987-2019 by the citadel.org team + * Copyright (c) 1987-2020 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -622,6 +622,7 @@ int CtdlIPCGetSingleMessage(CtdlIPC * ipc, long msgnum, int headers, int as_mime strcpy(encoding, ""); strcpy(mret[0]->content_type, ""); + mret[0]->is_local = 0; sprintf(aaa, "MSG%d %ld|%d", as_mime, msgnum, headers); ret = CtdlIPCGenericCommand(ipc, aaa, NULL, 0, &bbb, &bbb_len, cret); if (ret / 100 == 1) { @@ -651,6 +652,8 @@ int CtdlIPCGetSingleMessage(CtdlIPC * ipc, long msgnum, int headers, int as_mime safestrncpy(mret[0]->references, &aaa[5], SIZ); else if (!strncasecmp(aaa, "time=", 5)) mret[0]->time = atol(&aaa[5]); + else if (!strncasecmp(aaa, "locl", 4)) + mret[0]->is_local = 1; /* Multipart/alternative prefix & suffix strings help * us to determine which part we want to download.