5e07eae87e
OBS-URL: https://build.opensuse.org/package/show/server:mail/alpine?expand=0&rev=35084135f0432b082855d7b1815c8292
112 lines
4.6 KiB
Diff
112 lines
4.6 KiB
Diff
diff -rc alpine-2.10/alpine/mailcmd.c alpine-2.10.ignoresize/alpine/mailcmd.c
|
|
*** alpine-2.10/alpine/mailcmd.c 2013-01-11 15:21:34.000000000 -0700
|
|
--- alpine-2.10.ignoresize/alpine/mailcmd.c 2013-01-11 20:43:20.000000000 -0700
|
|
***************
|
|
*** 3349,3354 ****
|
|
--- 3349,3357 ----
|
|
{-1, 0, NULL, NULL}
|
|
};
|
|
|
|
+ if(F_ON(F_IGNORE_SIZE, ps_global))
|
|
+ return 'y';
|
|
+
|
|
if(flags & SSCP_INIT || flags & SSCP_END){
|
|
if(flags & SSCP_END && possible_corruption)
|
|
q_status_message(SM_ORDER, 3, 3, "There is possible data corruption, check the results");
|
|
diff -rc alpine-2.10/pith/conf.c alpine-2.10.ignoresize/pith/conf.c
|
|
*** alpine-2.10/pith/conf.c 2013-01-11 19:45:41.000000000 -0700
|
|
--- alpine-2.10.ignoresize/pith/conf.c 2013-01-11 20:43:20.000000000 -0700
|
|
***************
|
|
*** 3082,3087 ****
|
|
--- 3082,3089 ----
|
|
F_FULL_AUTO_EXPUNGE, h_config_full_auto_expunge, PREF_MISC, 0},
|
|
{"force-arrow-cursor", NULL,
|
|
F_FORCE_ARROW, h_config_force_arrow, PREF_MISC, 0},
|
|
+ {"ignore-size-changes", NULL,
|
|
+ F_IGNORE_SIZE, h_config_ignore_size, PREF_MISC, 0},
|
|
{"maildrops-preserve-state", NULL,
|
|
F_MAILDROPS_PRESERVE_STATE, h_config_maildrops_preserve_state,
|
|
PREF_MISC, 0},
|
|
diff -rc alpine-2.10/pith/conftype.h alpine-2.10.ignoresize/pith/conftype.h
|
|
*** alpine-2.10/pith/conftype.h 2013-01-11 19:45:41.000000000 -0700
|
|
--- alpine-2.10.ignoresize/pith/conftype.h 2013-01-11 20:43:20.000000000 -0700
|
|
***************
|
|
*** 335,340 ****
|
|
--- 335,341 ----
|
|
F_FORCE_ARROW,
|
|
F_PRUNE_USES_ISO,
|
|
F_ALT_ED_NOW,
|
|
+ F_IGNORE_SIZE,
|
|
F_SHOW_DELAY_CUE,
|
|
F_CANCEL_CONFIRM,
|
|
F_AUTO_OPEN_NEXT_UNREAD,
|
|
diff -rc alpine-2.10/pith/pine.hlp alpine-2.10.ignoresize/pith/pine.hlp
|
|
*** alpine-2.10/pith/pine.hlp 2013-01-11 20:33:27.000000000 -0700
|
|
--- alpine-2.10.ignoresize/pith/pine.hlp 2013-01-11 20:43:20.000000000 -0700
|
|
***************
|
|
*** 3251,3256 ****
|
|
--- 3251,3257 ----
|
|
<li><a href="h_config_full_auto_expunge">FEATURE: <!--#echo var="FEAT_expunge-without-confirm-everywhere"--></a>
|
|
<li><a href="h_config_no_fcc_attach">FEATURE: <!--#echo var="FEAT_fcc-without-attachments"--></a>
|
|
<li><a href="h_config_force_arrow">FEATURE: <!--#echo var="FEAT_force-arrow-cursor"--></a>
|
|
+ <li><a href="h_config_ignore_size">FEATURE: <!--#echo var="FEAT_ignore-size-changes"--></a>
|
|
<li><a href="h_config_forward_as_attachment">FEATURE: <!--#echo var="FEAT_forward-as-attachment"--></a>
|
|
<li><a href="h_config_quell_empty_dirs">FEATURE: <!--#echo var="FEAT_quell-empty-directories"--></a>
|
|
<li><a href="h_config_hide_nntp_path">FEATURE: <!--#echo var="FEAT_hide-nntp-path"--></a>
|
|
***************
|
|
*** 30437,30442 ****
|
|
--- 30438,30477 ----
|
|
|
|
<P>
|
|
<End of help on this topic>
|
|
+ </BODY>
|
|
+ </HTML>
|
|
+ ====== h_config_ignore_size =====
|
|
+ <HTML>
|
|
+ <HEAD>
|
|
+ <TITLE>FEATURE: <!--#echo var="FEAT_ignore-size-changes"--></TITLE>
|
|
+ </HEAD>
|
|
+ <BODY>
|
|
+ <H1>FEATURE: <!--#echo var="FEAT_ignore-size-changes"--></H1>
|
|
+
|
|
+ When you have an account residing in an IMAP server, Alpine gets the size of
|
|
+ each message from the server. However, when Alpine saves a message residing
|
|
+ in an IMAP server, Alpine computes the size of the message independently. If
|
|
+ these two numbers do not match for a message, Alpine asks you if you still
|
|
+ want to take the risk of saving the message, since data corruption or loss
|
|
+ of data could result of this save.
|
|
+
|
|
+ <P>
|
|
+ Sometimes the root of this problem is that the server is defective, and
|
|
+ there will not be loss of information when saving such message. Enabling
|
|
+ this feature will make Aline ignore such error and continue saving the
|
|
+ message. If you can determine that this is the case, enable this feature
|
|
+ so that the saving operation will succeed. An example of a defective server
|
|
+ is the Gmail IMAP server. Another example is some versions of the Exchange
|
|
+ server.
|
|
+
|
|
+ <P>
|
|
+ It is recommended that this feature be disabled most of the time and only
|
|
+ enabled when you find a server which you can determine that has the above
|
|
+ mentioned defect, but be disabled again after making this operation
|
|
+ succeed.
|
|
+
|
|
+ <P>
|
|
+ <End of help on this topic>
|
|
</BODY>
|
|
</HTML>
|
|
====== h_config_force_low_speed =====
|
|
diff -rc alpine-2.10/pith/save.c alpine-2.10.ignoresize/pith/save.c
|
|
*** alpine-2.10/pith/save.c 2013-01-11 11:26:44.000000000 -0700
|
|
--- alpine-2.10.ignoresize/pith/save.c 2013-01-11 20:43:20.000000000 -0700
|
|
***************
|
|
*** 1157,1162 ****
|
|
--- 1157,1163 ----
|
|
snprintf(buf, sizeof(buf),
|
|
"Message to save shrank: source msg # %ld may be saved incorrectly",
|
|
mn_raw2m(pkg->msgmap, raw));
|
|
+ if(F_OFF(F_IGNORE_SIZE, ps_global))
|
|
q_status_message(SM_ORDER, 0, 3, buf);
|
|
}
|
|
else{
|