Hi,
When I try to send mail with attachment directly with "Send" button
in the "Attachements" template, sqwebmail dumps core.
My sqwebmail version is 1.2.0.
I guess it's because filter_start() is not called before
filter_end().
There is the debugger trace :
# gdb /usr/local/www/cgi-bin/sqwebmail sqwebmail.core
This GDB was configured as "i386-unknown-freebsd"...
Core was generated by `sqwebmail'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x0 in ?? ()
(gdb) where
#0 0x0 in ?? ()
#1 0x804e1e4 in filter_end () at filter.c:52
#2 0x806355d in sentmsg_reformat (f=0x28152a20, p=0x8094c00)
at newmsg_create.c:828
#3 0x806309e in newmsg_createsentmsg (
draftname=0x8093080 "979666689.71286.philo.teaser.net,S=164")
at newmsg_create.c:690
#4 0x8060f73 in dosendmsg (
origdraft=0x80930c0 "979666689.71286.philo.teaser.net,S=164")
at newmsg.c:540
#5 0x80617ea in newmsg_do (folder=0x80913a0 "INBOX") at newmsg.c:757
#6 0x804d268 in doattach (folder=0x80913a0 "INBOX",
draft=0x80930c0 "979666689.71286.philo.teaser.net,S=164")
at attachments.c:817
#7 0x8067223 in output_user_form (formname=0x80913d0 "doattach")
at sqwebmail.c:1127
#8 0x8067c16 in main2 () at sqwebmail.c:1565
#9 0x806873b in main () at sqwebmail.c:1382
#10 0x8049ab3 in _start ()