2013-10-22 11:53:24 +02:00
|
|
|
---
|
|
|
|
imap/src/osdep/unix/dummy.c | 14 ++++++++++++--
|
|
|
|
pith/send.c | 1 +
|
|
|
|
2 files changed, 13 insertions(+), 2 deletions(-)
|
|
|
|
|
2015-03-30 19:33:58 +02:00
|
|
|
Index: alpine-2.20/imap/src/osdep/unix/dummy.c
|
2013-10-22 11:53:24 +02:00
|
|
|
===================================================================
|
2015-03-30 19:33:58 +02:00
|
|
|
--- alpine-2.20.orig/imap/src/osdep/unix/dummy.c
|
|
|
|
+++ alpine-2.20/imap/src/osdep/unix/dummy.c
|
|
|
|
@@ -734,6 +734,17 @@ long dummy_copy (MAILSTREAM *stream,char
|
2009-06-02 13:18:04 +02:00
|
|
|
return NIL;
|
|
|
|
}
|
|
|
|
|
|
|
|
+static MAILSTREAM *dummy_rewrite_code(MAILSTREAM *ts)
|
|
|
|
+{
|
|
|
|
+ if (ts)
|
|
|
|
+ return ts;
|
|
|
|
+
|
|
|
|
+ ts = default_proto (NIL);
|
|
|
|
+ if (!(*ts->dtb->create)(ts,"INBOX"))
|
|
|
|
+ return NIL;
|
|
|
|
+
|
|
|
|
+ return ts;
|
|
|
|
+}
|
|
|
|
|
|
|
|
/* Dummy append message string
|
|
|
|
* Accepts: mail stream
|
2015-03-30 19:33:58 +02:00
|
|
|
@@ -753,8 +764,7 @@ long dummy_append (MAILSTREAM *stream,ch
|
2009-06-02 13:18:04 +02:00
|
|
|
/* append to INBOX? */
|
|
|
|
if (!compare_cstring (mailbox,"INBOX")) {
|
|
|
|
/* yes, if no empty proto try creating */
|
|
|
|
- if (!ts && !(*(ts = default_proto (NIL))->dtb->create) (ts,"INBOX"))
|
|
|
|
- ts = NIL;
|
|
|
|
+ ts = dummy_rewrite_code(ts);
|
|
|
|
}
|
|
|
|
else if (dummy_file (tmp,mailbox) && ((fd = open (tmp,O_RDONLY,NIL)) < 0)) {
|
|
|
|
if ((e = errno) == ENOENT) /* failed, was it no such file? */
|
2015-03-30 19:33:58 +02:00
|
|
|
Index: alpine-2.20/pith/send.c
|
2013-10-22 11:53:24 +02:00
|
|
|
===================================================================
|
2015-03-30 19:33:58 +02:00
|
|
|
--- alpine-2.20.orig/pith/send.c
|
|
|
|
+++ alpine-2.20/pith/send.c
|
|
|
|
@@ -4159,6 +4159,7 @@ set_parameter(PARAMETER **param, char *p
|
|
|
|
pm->value = cpystr(new_value);
|
2009-06-02 13:18:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|