mutt stable branch with some hacks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Convert pop_read_header() to use buffer pool.

+11 -6
+11 -6
pop.c
··· 85 85 int ret, index; 86 86 long length; 87 87 char buf[LONG_STRING]; 88 - char tempfile[_POSIX_PATH_MAX]; 88 + BUFFER *tempfile; 89 89 90 - mutt_mktemp (tempfile, sizeof (tempfile)); 91 - if (!(f = safe_fopen (tempfile, "w+"))) 90 + tempfile = mutt_buffer_pool_get (); 91 + mutt_buffer_mktemp (tempfile); 92 + if (!(f = safe_fopen (mutt_b2s (tempfile), "w+"))) 92 93 { 93 - mutt_perror (tempfile); 94 - return -3; 94 + mutt_perror (mutt_b2s (tempfile)); 95 + ret = -3; 96 + goto cleanup; 95 97 } 96 98 97 99 snprintf (buf, sizeof (buf), "LIST %d\r\n", h->refno); ··· 151 153 } 152 154 153 155 safe_fclose (&f); 154 - unlink (tempfile); 156 + unlink (mutt_b2s (tempfile)); 157 + 158 + cleanup: 159 + mutt_buffer_pool_release (&tempfile); 155 160 return ret; 156 161 } 157 162